Skip to content

Commit 1b2053b

Browse files
authored
Small fix in the docstring example (#8950)
1 parent 13968cc commit 1b2053b

File tree

1 file changed

+2
-2
lines changed
  • haystack/components/generators/chat

1 file changed

+2
-2
lines changed

haystack/components/generators/chat/azure.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ class AzureOpenAIChatGenerator(OpenAIChatGenerator):
3737
### Usage example
3838
3939
```python
40-
from haystack.components.generators.chat import AzureOpenAIGenerator
40+
from haystack.components.generators.chat import AzureOpenAIChatGenerator
4141
from haystack.dataclasses import ChatMessage
4242
from haystack.utils import Secret
4343
4444
messages = [ChatMessage.from_user("What's Natural Language Processing?")]
4545
46-
client = AzureOpenAIGenerator(
46+
client = AzureOpenAIChatGenerator(
4747
azure_endpoint="<Your Azure endpoint e.g. `https://your-company.azure.openai.com/>",
4848
api_key=Secret.from_token("<your-api-key>"),
4949
azure_deployment="<this a model name, e.g. gpt-4o-mini>")

0 commit comments

Comments
 (0)