diff --git a/examples/image_to_text/main.go b/examples/image_to_text/main.go index 84fb35a..6ffc66a 100644 --- a/examples/image_to_text/main.go +++ b/examples/image_to_text/main.go @@ -8,7 +8,8 @@ import ( _ "github.com/joho/godotenv/autoload" "github.com/neurocult/agency" - "github.com/neurocult/agency/providers/openai" + openAIProvider "github.com/neurocult/agency/providers/openai" + "github.com/sashabaranov/go-openai" ) func main() { @@ -17,8 +18,8 @@ func main() { panic(err) } - result, err := openai.New(openai.Params{Key: os.Getenv("OPENAI_API_KEY")}). - ImageToText(openai.ImageToTextParams{MaxTokens: 300}). + result, err := openAIProvider.New(openAIProvider.Params{Key: os.Getenv("OPENAI_API_KEY")}). + ImageToText(openAIProvider.ImageToTextParams{Model: openai.GPT4o, MaxTokens: 300}). SetPrompt("describe what you see"). Execute( context.Background(),