Skip to content

Commit 01fa511

Browse files
garethjevansilayaperumalg
authored andcommitted
docs: correct code in vertex chat functions doc
1 parent b3e7efd commit 01fa511

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/functions/vertexai-gemini-chat-functions.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ static class Config {
132132
return FunctionCallbackWrapper.builder(new MockWeatherService())
133133
.withName("CurrentWeather") // (1) function name
134134
.withDescription("Get the current weather in a given location") // (2) function description
135-
.withSchemaType(SchemaType.OPEN_API) // (3) schema type. Compulsory for Gemini function calling.
135+
.withSchemaType(SchemaType.OPEN_API_SCHEMA) // (3) schema type. Compulsory for Gemini function calling.
136136
.build();
137137
}
138138
...
@@ -189,7 +189,7 @@ UserMessage userMessage = new UserMessage("What's the weather like in San Franci
189189
var promptOptions = VertexAiGeminiChatOptions.builder()
190190
.withFunctionCallbacks(List.of(FunctionCallbackWrapper.builder(new MockWeatherService())
191191
.withName("CurrentWeather")
192-
.withSchemaType(SchemaType.OPEN_API) // IMPORTANT!!
192+
.withSchemaType(SchemaType.OPEN_API_SCHEMA) // IMPORTANT!!
193193
.withDescription("Get the weather in location")
194194
.build()))
195195
.build();

0 commit comments

Comments
 (0)