Skip to content

armgit / camel

Public Imported from GitHub
0

🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org

feat: extra headers for azure openai (#2434)

JINO ROHIT6cdcd0397b0c
diff --git a/camel/configs/openai_config.py b/camel/configs/openai_config.py
index 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 whether
the 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]] = None
reasoning_effort: Optional[str] = None
parallel_tool_calls: Optional[bool] = None
+ extra_headers: Optional[Dict[str, str]] = None
OPENAI_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.py
index 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/
"""