Skip to content

Commit

Permalink
fix(openai): fix OpenAI image_url field can't work (#170)
Browse files Browse the repository at this point in the history
Because

- The `image_url` field in OpenAI component was not working due to a
typo.

This commit

- Fixes the `image_url` field in OpenAI component.
  • Loading branch information
donch1989 committed Jun 21, 2024
1 parent 481bc83 commit f077309
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ai/openai/v0/text_generation.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ type imageURL struct {
type content struct {
Type string `json:"type"`
Text *string `json:"text,omitempty"`
ImageURL *imageURL `json:"image-url,omitempty"`
ImageURL *imageURL `json:"image_url,omitempty"`
}

type textCompletionResp struct {
Expand Down

0 comments on commit f077309

Please sign in to comment.