feat: initialize Eino examples and ADK applications
Include chat, weather, image, travel, streaming ASR and text examples, shared model initialization, documentation, and existing tests. Co-authored-by: TRAE CLI <traecli@bytedance.com>
This commit is contained in:
commit
81deca8c8e
75 files changed
+7048
No files matched your search
@@ -0,0 +1,27 @@
|
||||
package model
|
||||
|
||||
// ImageGenerationRequest 是 OpenAI 兼容图片接口的请求。
|
||||
type ImageGenerationRequest struct {
|
||||
Model string `json:"model"`
|
||||
Prompt string `json:"prompt"`
|
||||
N int `json:"n"`
|
||||
}
|
||||
|
||||
type ImageGenerationResponse struct {
|
||||
Data []ImageGenerationData `json:"data"`
|
||||
}
|
||||
|
||||
type ImageGenerationData struct {
|
||||
Base64 string `json:"b64_json"`
|
||||
URL string `json:"url"`
|
||||
}
|
||||
|
||||
// ImageArguments 是生图工具接收的创作提示词。
|
||||
type ImageArguments struct {
|
||||
Prompt string `json:"prompt"`
|
||||
}
|
||||
|
||||
// ImageResult 返回已经保存到本地的图片路径。
|
||||
type ImageResult struct {
|
||||
Path string `json:"path"`
|
||||
}
|
||||
Reference in new issue
Block a user