🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org
Python agentai-societiesartificial-intelligencecommunicative-aicooperative-aideep-learninglarge-language-modelsmulti-agent-systemsnatural-language-processing
feat: extra headers for azure openai (#2434)
JINO ROHIT6cdcd0397b0c
diff --git a/camel/configs/openai_config.py b/camel/configs/openai_config.pyindex 84f289efd..ef92fdf82 100644--- a/camel/configs/openai_config.py+++ b/camel/configs/openai_config.py@@ -104,6 +104,8 @@ class ChatGPTConfig(BaseConfig):parallel_tool_calls (bool, optional): A parameter specifying whetherthe model should call tools in parallel or not.(default: :obj:`None`)+ extra_headers: Optional[Dict[str, str]]: Extra headers to use for the+ model. (default: :obj:`None`)"""temperature: Optional[float] = None@@ -120,6 +122,7 @@ class ChatGPTConfig(BaseConfig):tool_choice: Optional[Union[Dict[str, str], str]] = Nonereasoning_effort: Optional[str] = Noneparallel_tool_calls: Optional[bool] = None+ extra_headers: Optional[Dict[str, str]] = NoneOPENAI_API_PARAMS = {param for param in ChatGPTConfig.model_fields.keys()}diff --git a/camel/models/azure_openai_model.py b/camel/models/azure_openai_model.pyindex 7f3ff9428..6cbea6c93 100644--- a/camel/models/azure_openai_model.py+++ b/camel/models/azure_openai_model.py@@ -62,6 +62,7 @@ class AzureOpenAIModel(BaseModelBackend):environment variable or default to 180 seconds.(default: :obj:`None`)+References:https://learn.microsoft.com/en-us/azure/ai-services/openai/"""