Skip to content

Commit 4f6274e

Browse files
Peter Dolukhanovmarkpollack
authored andcommitted
Change references from PaLm2 to Gemini in Gemini docs
1 parent 8d31a57 commit 4f6274e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/vertexai-gemini-chat.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,13 @@ For example to override the default temperature for a specific request:
9797
ChatResponse response = chatModel.call(
9898
new Prompt(
9999
"Generate the names of 5 famous pirates.",
100-
VertexAiPaLm2ChatOptions.builder()
100+
VertexAiGeminiChatOptions.builder()
101101
.withTemperature(0.4)
102102
.build()
103103
));
104104
----
105105

106-
TIP: In addition to the model specific `VertexAiChatPaLm2Options` you can use a portable https://github.com/spring-projects/spring-ai/blob/main/spring-ai-core/src/main/java/org/springframework/ai/chat/prompt/ChatOptions.java[ChatOptions] instance, created with the
106+
TIP: In addition to the model specific `VertexAiGeminiChatOptions` you can use a portable https://github.com/spring-projects/spring-ai/blob/main/spring-ai-core/src/main/java/org/springframework/ai/chat/prompt/ChatOptions.java[ChatOptions] instance, created with the
107107
https://github.com/spring-projects/spring-ai/blob/main/spring-ai-core/src/main/java/org/springframework/ai/chat/prompt/ChatOptionsBuilder.java[ChatOptionsBuilder#builder()].
108108

109109
== Function Calling
@@ -140,7 +140,7 @@ ChatResponse response = chatModel.call(new Prompt(List.of(userMessage)));
140140

141141
== Sample Controller
142142

143-
https://start.spring.io/[Create] a new Spring Boot project and add the `spring-ai-vertex-ai-palm2-spring-boot-starter` to your pom (or gradle) dependencies.
143+
https://start.spring.io/[Create] a new Spring Boot project and add the `spring-ai-vertex-ai-gemini-spring-boot-starter` to your pom (or gradle) dependencies.
144144

145145
Add a `application.properties` file, under the `src/main/resources` directory, to enable and configure the VertexAi chat model:
146146

0 commit comments

Comments
 (0)