We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 118ce29 commit 0c9d3a6Copy full SHA for 0c9d3a6
py/plugins/google-genai/src/genkit/plugins/google_genai/models/gemini.py
@@ -547,12 +547,12 @@ def _convert_schema_property(
547
if '$ref' in input_schema:
548
ref_path = input_schema['$ref']
549
ref_tokens = ref_path.split('/')
550
- ref_name = ref_tokens[2]
+ ref_name = ref_tokens[-1]
551
552
if ref_name not in defs:
553
- raise ValueError(f'Failed to resolve schema for {ref_tokens[2]}')
+ raise ValueError(f'Failed to resolve schema for {ref_name}')
554
555
- schema = self._convert_schema_property(defs[ref_tokens[2]], defs)
+ schema = self._convert_schema_property(defs[ref_name], defs)
556
557
if input_schema.get('description'):
558
schema.description = input_schema['description']
0 commit comments