Skip to content

Commit 88fc6c5

Browse files
Merge pull request #958 from quajak/patch-1
Clarify requirement of deployment_id argument for Azure Open AI usage
2 parents 3164e7d + 58c3ba6 commit 88fc6c5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/api/language_model_clients/AzureOpenAI.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ lm = dspy.AzureOpenAI(api_base='...', api_version='2023-12-01-preview', model='g
1414

1515
The constructor initializes the base class `LM` and verifies the provided arguments like the `api_provider`, `api_key`, and `api_base` to set up OpenAI request retrieval through Azure. The `kwargs` attribute is initialized with default values for relevant text generation parameters needed for communicating with the GPT API, such as `temperature`, `max_tokens`, `top_p`, `frequency_penalty`, `presence_penalty`, and `n`.
1616

17+
Azure requires that the deployment id of the Azure deployment to be also provided using the argument `deployment_id`.
18+
1719
```python
1820
class AzureOpenAI(LM):
1921
def __init__(
@@ -53,4 +55,4 @@ After generation, the completions are post-processed based on the `model_type` p
5355
- `**kwargs`: Additional keyword arguments for completion request.
5456

5557
**Returns:**
56-
- `List[Dict[str, Any]]`: List of completion choices.
58+
- `List[Dict[str, Any]]`: List of completion choices.

0 commit comments

Comments
 (0)