Skip to content

Commit 6cdcd03

Browse files
authored
feat: extra headers for azure openai (#2434)
1 parent aef2ea7 commit 6cdcd03

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

camel/configs/openai_config.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ class ChatGPTConfig(BaseConfig):
104104
parallel_tool_calls (bool, optional): A parameter specifying whether
105105
the model should call tools in parallel or not.
106106
(default: :obj:`None`)
107+
extra_headers: Optional[Dict[str, str]]: Extra headers to use for the
108+
model. (default: :obj:`None`)
107109
"""
108110

109111
temperature: Optional[float] = None
@@ -120,6 +122,7 @@ class ChatGPTConfig(BaseConfig):
120122
tool_choice: Optional[Union[Dict[str, str], str]] = None
121123
reasoning_effort: Optional[str] = None
122124
parallel_tool_calls: Optional[bool] = None
125+
extra_headers: Optional[Dict[str, str]] = None
123126

124127

125128
OPENAI_API_PARAMS = {param for param in ChatGPTConfig.model_fields.keys()}

camel/models/azure_openai_model.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ class AzureOpenAIModel(BaseModelBackend):
6262
environment variable or default to 180 seconds.
6363
(default: :obj:`None`)
6464
65+
6566
References:
6667
https://learn.microsoft.com/en-us/azure/ai-services/openai/
6768
"""

0 commit comments

Comments
 (0)