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(
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----
199199URL url = new URL("https://docs.spring.io/spring-ai/reference/_images/multimodal.test.png");
200200String 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();
You can’t perform that action at this time.
0 commit comments