Skip to content

Commit 5b9421c

Browse files
committed
fix azure openai doc
1 parent 2dc2476 commit 5b9421c

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
@@ -164,7 +164,7 @@ ChatResponse response = chatModel.call(
164164
new Prompt(
165165
"Generate the names of 5 famous pirates.",
166166
AzureOpenAiChatOptions.builder()
167-
.withModel("gpt-4-o")
167+
.withDeploymentName("gpt-4-o")
168168
.withTemperature(0.4)
169169
.build()
170170
));
@@ -194,7 +194,7 @@ Below is a code example excerpted from link:https://github.com/spring-projects/s
194194
----
195195
URL url = new URL("https://docs.spring.io/spring-ai/reference/_images/multimodal.test.png");
196196
String response = ChatClient.create(chatModel).prompt()
197-
.options(AzureOpenAiChatOptions.builder().withDeploymentName("gpt4o").build())
197+
.options(AzureOpenAiChatOptions.builder().withDeploymentName("gpt-4o").build())
198198
.user(u -> u.text("Explain what do you see on this picture?").media(MimeTypeUtils.IMAGE_PNG, url))
199199
.call()
200200
.content();

0 commit comments

Comments
 (0)