From 2fbbaa3a6be9989d58454d93177afa9575118c68 Mon Sep 17 00:00:00 2001 From: Sagar Date: Thu, 21 Mar 2024 22:56:07 +1100 Subject: [PATCH] Update azure-openai-chat.adoc In v0.8.1, the property spring.ai.azure.openai.chat.options.model does not exist anymore. I have tried with spring.ai.azure.openai.chat.options.deployment-name and am able to connect to the Azure Open AI service. Considering spring.ai.azure.openai.chat.options.deployment-name is the correct property name, I have updated the document to reflect this. I have also removed this statement "In a subsequent release, Spring AI will rename the property spring.ai.azure.openai.chat.options.model to spring.ai.azure.openai.chat.options.deployment-name to avoid confusion." as this has already been renamed. I have added an appropriate note related to this. @pivotal-cla This is an Obvious Fix. --- .../modules/ROOT/pages/api/chat/azure-openai-chat.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/azure-openai-chat.adoc b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/azure-openai-chat.adoc index 7c02eb932..063fb6ba2 100644 --- a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/azure-openai-chat.adoc +++ b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/azure-openai-chat.adoc @@ -37,13 +37,13 @@ This Azure configuration will align with the default configurations of the Sprin If you use a different Deployment Name, update the configuration property accordingly: ``` -spring.ai.azure.openai.chat.options.model= +spring.ai.azure.openai.chat.options.deployment-name= ``` The different deployment structures of Azure OpenAI and OpenAI leads to a property in the Azure OpenAI client library named `deploymentOrModelName`. This is because in OpenAI there is no `Deployment Name`, only a `Model Name`. -In a subsequent release, Spring AI will rename the property `spring.ai.azure.openai.chat.options.model` to `spring.ai.azure.openai.chat.options.deployment-name` to avoid confusion. +NOTE: The property `spring.ai.azure.openai.chat.options.model` has been renamed to `spring.ai.azure.openai.chat.options.deployment-name`. === Add Repositories and BOM @@ -151,7 +151,7 @@ Add a `application.properties` file, under the `src/main/resources` directory, t ---- spring.ai.azure.openai.api-key=YOUR_API_KEY spring.ai.azure.openai.endpoint=YOUR_ENDPOINT -spring.ai.azure.openai.chat.options.model=gpt-35-turbo +spring.ai.azure.openai.chat.options.deployment-name=gpt-35-turbo spring.ai.azure.openai.chat.options.temperature=0.7 ----