Updated docs for _azure_ai_client.py (#5199)

Update a minor typo and updated the `response_format` documentation to
the new value

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
This commit is contained in:
Rohan Thacker 2025-01-28 04:49:38 +05:30 committed by GitHub
parent 2ceb9dcffe
commit d49bf346e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -174,7 +174,7 @@ class AzureAIChatCompletionClient(ChatCompletionClient):
Args:
endpoint (str): The endpoint to use. **Required.**
credentials (union, AzureKeyCredential, AsyncTokenCredential): The credentials to use. **Required**
credential (union, AzureKeyCredential, AsyncTokenCredential): The credentials to use. **Required**
model_info (ModelInfo): The model family and capabilities of the model. **Required.**
model (str): The name of the model. **Required if model is hosted on GitHub Models.**
frequency_penalty: (optional,float)
@ -182,7 +182,7 @@ class AzureAIChatCompletionClient(ChatCompletionClient):
temperature: (optional,float)
top_p: (optional,float)
max_tokens: (optional,int)
response_format: (optional,ChatCompletionsResponseFormat)
response_format: (optional, literal["text", "json_object"])
stop: (optional,List[str])
tools: (optional,List[ChatCompletionsToolDefinition])
tool_choice: (optional,Union[str, ChatCompletionsToolChoicePreset, ChatCompletionsNamedToolChoice]])