You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe this has already been answered in #44
I agree that this could be more prominent in the docs. What worked for me was the solution in this comment. Perhaps there is a way to use directly the responses API, to avoid having to pass model=OpenAIChatCompletionsModel(...) for each agent.
For the record the openai Python library does not currently support Azure OpenAI deployments for the responses API, so it looks like model=OpenAIChatCompletionsModel(...) is mandatory for now.
Can you add support for custom Azure Open AI deployments?
Just setting the env vars like:
OPENAI_API_TYPE=azure
OPENAI_API_VERSION=2024-09-01-preview
AZURE_OPENAI_API_KEY=...
AZURE_OPENAI_API_BASE=...
and using
agent = Agent(
model=<my_deployment_name>,
name="Assistant",
instructions="You are a helpful assistant.",
)
does not work.
The text was updated successfully, but these errors were encountered: