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
@lightaime, @hammoudhasan: I think the code needs to be changed in 3 places, but I do not understand the code well enough to implement it in a nice way and create a PR for it. I got it to work by hard-coding values in each location.
In apps/agents/agents.py and camel/models/openai_model.py, openai.api_key = ... needs to be complemented with openai.api_base = "https://<example-endpoint>.openai.azure.com". In camel/configs.py, the ChatGPTConfig class needs to be extended with the variable deployment_id: str = "<name of the deployment>".
Adding openai.api_type = ... and openai.api_version = ... was not necessary.
Required prerequisites
Motivation
People are interested in setting up Azure OpenAI models. We can add Azure OpenAI models to https://github.com/camel-ai/camel/tree/master/camel/models.
Solution
No response
Alternatives
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: