Skip to content

Commit 407e4cb

Browse files
committed
Fix function name in VertexAI Gemini streaming test
1 parent fa4d6d6 commit 407e4cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/spring-ai-vertex-ai-gemini/src/test/java/org/springframework/ai/vertexai/gemini/tool/VertexAiGeminiChatModelToolCallingIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public void functionCallTestInferredOpenApiSchemaStream() {
147147

148148
var promptOptions = VertexAiGeminiChatOptions.builder()
149149
.model(VertexAiGeminiChatModel.ChatModel.GEMINI_2_0_FLASH)
150-
.toolCallbacks(List.of(FunctionToolCallback.builder("getCurrentWeather", new MockWeatherService())
150+
.toolCallbacks(List.of(FunctionToolCallback.builder("get_current_weather", new MockWeatherService())
151151
.description("Get the current weather in a given location")
152152
.inputType(MockWeatherService.Request.class)
153153
.build()))

0 commit comments

Comments
 (0)