File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
haystack/components/generators/chat Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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>")
You can’t perform that action at this time.
0 commit comments