Skip to content

Commit 67e564e

Browse files
author
jiapan
committed
fix: update gemini response schema key for JSON format handling
1 parent a18d5e9 commit 67e564e

File tree

1 file changed

+1
-1
lines changed
  • livekit-plugins/livekit-plugins-google/livekit/plugins/google

1 file changed

+1
-1
lines changed

livekit-plugins/livekit-plugins-google/livekit/plugins/google/llm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def chat(
261261
extra["tool_config"] = gemini_tool_choice
262262

263263
if is_given(response_format):
264-
extra["response_schema"] = to_response_format(response_format) # type: ignore
264+
extra["response_json_schema"] = to_response_format(response_format) # type: ignore
265265
extra["response_mime_type"] = "application/json"
266266

267267
if is_given(self._opts.temperature):

0 commit comments

Comments
 (0)