Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gemini models #2126

Open
Jayke770 opened this issue Feb 14, 2025 · 6 comments
Open

gemini models #2126

Jayke770 opened this issue Feb 14, 2025 · 6 comments

Comments

@Jayke770
Copy link

hey guys, I got a new error with gemini model, when i try to toggle this argument add_history_to_messages=True,

Image

Originally posted by @Jayke770 in #2112

@dirkbrnd
Copy link
Contributor

Looking at this asap

@Jayke770
Copy link
Author

This error occurs when the agent calls the tool for the first time, and then the rest will fail.

@dirkbrnd
Copy link
Contributor

@Jayke770 I can't replicate it... can you give me a snippet of how your agent looks?

@Jayke770
Copy link
Author

@Jayke770 I can't replicate it... can you give me a snippet of how your agent looks?

Image

@Jayke770
Copy link
Author

@isikepalaku
Copy link

Looking at this asap

i think i have similar problem, when gemini use tool

ERROR Error from Gemini API: 400 INVALID_ARGUMENT. {'error': {'code': 400,
'message': "For controlled generation of only function calls (forced
function calling), please set
'tool_config.function_calling_config.mode' field to ANY instead of
populating 'response_mime_type' and 'response_schema' fields. For more
details, see:
https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/functi
on-calling#tool-config", 'status': 'INVALID_ARGUMENT'}}
WARNING Attempt 1/1 failed: 400 INVALID_ARGUMENT. {'error': {'code': 400,
'message': "For controlled generation of only function calls (forced
function calling), please set
'tool_config.function_calling_config.mode' field to ANY instead of
populating 'response_mime_type' and 'response_schema' fields. For more
details, see:
https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/functi
on-calling#tool-config", 'status': 'INVALID_ARGUMENT'}}
ERROR Error dalam get_analisa_modus: Failed after 1 attempts. Last error
using Gemini(gemini-2.0-flash-exp): 400 INVALID_ARGUMENT. {'error':
{'code': 400, 'message': "For controlled generation of only function
calls (forced function calling), please set
'tool_config.function_calling_config.mode' field to ANY instead of
populating 'response_mime_type' and 'response_schema' fields. For more
details, see:
https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/functi
on-calling#tool-config", 'status': 'INVALID_ARGUMENT'}}
DEBUG Detail error:
Traceback (most recent call last):
File "/app/workflows/modus_operandi.py", line 186, in
get_analisa_modus
response: RunResponse =
self.agen_analisa_modus.run(formatted_input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^
File "/usr/local/lib/python3.12/site-packages/agno/agent/agent.py",
line 885, in run
raise Exception(
Exception: Failed after 1 attempts. Last error using
Gemini(gemini-2.0-flash-exp): 400 INVALID_ARGUMENT. {'error': {'code':
400, 'message': "For controlled generation of only function calls
(forced function calling), please set
'tool_config.function_calling_config.mode' field to ANY instead of
populating 'response_mime_type' and 'response_schema' fields. For more
details, see:
https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/functi
on-calling#tool-config", 'status': 'INVALID_ARGUMENT'}}

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants