File tree Expand file tree Collapse file tree
docs-website/reference/haystack-api Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ from haystack.utils import Secret
3535client = AzureOpenAIGenerator(
3636 azure_endpoint = " <Your Azure endpoint e.g. `https://your-company.azure.openai.com/>" ,
3737 api_key = Secret.from_token(" <your-api-key>" ),
38- azure_deployment = " <this a model name, e.g. gpt-4.1-mini>" )
38+ azure_deployment = " <this is a model name, e.g. gpt-4.1-mini>" )
3939response = client.run(" What's Natural Language Processing? Be brief." )
4040print (response)
4141```
@@ -182,7 +182,7 @@ messages = [ChatMessage.from_user("What's Natural Language Processing?")]
182182client = AzureOpenAIChatGenerator(
183183 azure_endpoint = " <Your Azure endpoint e.g. `https://your-company.azure.openai.com/>" ,
184184 api_key = Secret.from_token(" <your-api-key>" ),
185- azure_deployment = " <this a model name, e.g. gpt-4.1-mini>" )
185+ azure_deployment = " <this is a model name, e.g. gpt-4.1-mini>" )
186186response = client.run(messages)
187187print (response)
188188```
You can’t perform that action at this time.
0 commit comments