This seems to a be really “Modified by moderator” limitation, especially with the regressions in the latest stable release of 2.5, which is far from stable. I really dont want to switch back to OpenAI.
response = client.models.generate_content(
model=model,
contents=user_prompt,
config=GenerateContentConfig(tools=[google_search_tool],
system_instruction=system_prompt,
response_schema=response_schema,
response_mime_type="application/json",
temperature=0.6,
seed=seed,
thinking_config=ThinkingConfig(include_thoughts=True)))
google.genai.errors.ClientError: 400 INVALID_ARGUMENT. {‘error’: {‘code’: 400, ‘message’: “Tool use with a response mime type: ‘application/json’ is unsupported”, ‘status’: ‘INVALID_ARGUMENT’}}
Is there any plans to support this soon?
Thanks