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