File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ ChatResponse response = chatModel.call(
168
168
new Prompt(
169
169
"Generate the names of 5 famous pirates.",
170
170
AzureOpenAiChatOptions.builder()
171
- .withModel ("gpt-4-o")
171
+ .withDeploymentName ("gpt-4-o")
172
172
.withTemperature(0.4)
173
173
.build()
174
174
));
@@ -198,7 +198,7 @@ Below is a code example excerpted from link:https://github.com/spring-projects/s
198
198
----
199
199
URL url = new URL("https://docs.spring.io/spring-ai/reference/_images/multimodal.test.png");
200
200
String response = ChatClient.create(chatModel).prompt()
201
- .options(AzureOpenAiChatOptions.builder().withDeploymentName("gpt4o ").build())
201
+ .options(AzureOpenAiChatOptions.builder().withDeploymentName("gpt-4o ").build())
202
202
.user(u -> u.text("Explain what do you see on this picture?").media(MimeTypeUtils.IMAGE_PNG, url))
203
203
.call()
204
204
.content();
You can’t perform that action at this time.
0 commit comments