-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update OpenAI image query default model to GPT-4o #802
Conversation
@@ -69,7 +69,7 @@ class AzureOpenAiStructureConfig(StructureConfig): | |||
) | |||
image_query_driver: BaseImageQueryDriver = field( | |||
default=Factory( | |||
lambda self: AzureOpenAiVisionImageQueryDriver( | |||
lambda self: AzureOpenAiImageQueryDriver( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you update the model to gpt-4o
here too since its available?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sick, will do.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as well as the prompt driver too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need a similar Azure deployment note here for GPT-4o?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nope, gpt-4o
is its own model in the portal
Codecov ReportAll modified and coverable lines are covered by tests ✅ 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, just add a note in the changelog about the azure config updates
from griptape.engines import ImageQueryEngine | ||
from griptape.loaders import ImageLoader | ||
|
||
driver = AzureOpenAiVisionImageQueryDriver( | ||
driver = AzureOpenAiImageQueryDriver( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AZURE_OPENAI_ENDPOINT_3
and AZURE_OPENAI_API_KEY_3
can be changed to use _2
, and the model and azure_deployment can be changed to gpt-4o
. sorry should have clarified this.
Update docs and configurations to use GPT-4o to power image queries. Rename OpenAI Image Query Drivers (and descendants) to not specify Vision in their names.
📚 Documentation preview 📚: https://griptape--802.org.readthedocs.build//802/