Skip to content

Commit 27000c4

Browse files
ricken07tzolov
authored andcommitted
fix azure openai doc
1 parent e433d59 commit 27000c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/azure-openai-chat.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ ChatResponse response = chatModel.call(
168168
new Prompt(
169169
"Generate the names of 5 famous pirates.",
170170
AzureOpenAiChatOptions.builder()
171-
.withModel("gpt-4-o")
171+
.withDeploymentName("gpt-4-o")
172172
.withTemperature(0.4)
173173
.build()
174174
));
@@ -198,7 +198,7 @@ Below is a code example excerpted from link:https://github.com/spring-projects/s
198198
----
199199
URL url = new URL("https://docs.spring.io/spring-ai/reference/_images/multimodal.test.png");
200200
String response = ChatClient.create(chatModel).prompt()
201-
.options(AzureOpenAiChatOptions.builder().withDeploymentName("gpt4o").build())
201+
.options(AzureOpenAiChatOptions.builder().withDeploymentName("gpt-4o").build())
202202
.user(u -> u.text("Explain what do you see on this picture?").media(MimeTypeUtils.IMAGE_PNG, url))
203203
.call()
204204
.content();

0 commit comments

Comments
 (0)