feat: support ali image

This commit is contained in:
CalciumIon
2024-07-19 00:45:52 +08:00
parent f96291a25a
commit c9100b219f
5 changed files with 257 additions and 75 deletions

View File

@@ -12,9 +12,11 @@ type ImageRequest struct {
}
type ImageResponse struct {
Created int `json:"created"`
Data []struct {
Url string `json:"url"`
B64Json string `json:"b64_json"`
}
Data []ImageData `json:"data"`
Created int64 `json:"created"`
}
type ImageData struct {
Url string `json:"url"`
B64Json string `json:"b64_json"`
RevisedPrompt string `json:"revised_prompt"`
}