agent-zero
agent-zero copied to clipboard
gemini-2.5-pro-exp-03-25 - not working
I've tried to setup 'gemini-2.5-pro-exp-03-25' as a Google model name, and getting this error in UI:
Error embedding content: 400 * BatchEmbedContentsRequest.model: unexpected model name format
* BatchEmbedContentsRequest.requests[0].model: unexpected model name format
Traceback (most recent call last):
Traceback (most recent call last):
File "/[opt](http://192.168.1.102:8080/#)/[venv](http://192.168.1.102:8080/#)/[lib](http://192.168.1.102:8080/#)/[python3.11](http://192.168.1.102:8080/#)/[site-packages](http://192.168.1.102:8080/#)/[langchain_google_genai](http://192.168.1.102:8080/#)/[embeddings.py](http://192.168.1.102:8080/#)", line 227, in embed_documents
result = self.client.batch_embed_contents(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/[opt](http://192.168.1.102:8080/#)/[venv](http://192.168.1.102:8080/#)/[lib](http://192.168.1.102:8080/#)/[python3.11](http://192.168.1.102:8080/#)/[site-packages](http://192.168.1.102:8080/#)/[google](http://192.168.1.102:8080/#)/[ai](http://192.168.1.102:8080/#)/[generativelanguage_v1beta](http://192.168.1.102:8080/#)/[services](http://192.168.1.102:8080/#)/[generative_service](http://192.168.1.102:8080/#)/[client.py](http://192.168.1.102:8080/#)", line 1392, in batch_embed_contents
response = rpc(
^^^^
File "/[opt](http://192.168.1.102:8080/#)/[venv](http://192.168.1.102:8080/#)/[lib](http://192.168.1.102:8080/#)/[python3.11](http://192.168.1.102:8080/#)/[site-packages](http://192.168.1.102:8080/#)/[google](http://192.168.1.102:8080/#)/[api_core](http://192.168.1.102:8080/#)/[gapic_v1](http://192.168.1.102:8080/#)/[method.py](http://192.168.1.102:8080/#)", line 131, in __call__
return wrapped_func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/[opt](http://192.168.1.102:8080/#)/[venv](http://192.168.1.102:8080/#)/[lib](http://192.168.1.102:8080/#)/[python3.11](http://192.168.1.102:8080/#)/[site-packages](http://192.168.1.102:8080/#)/[google](http://192.168.1.102:8080/#)/[api_core](http://192.168.1.102:8080/#)/[retry](http://192.168.1.102:8080/#)/[retry_unary.py](http://192.168.1.102:8080/#)", line 293, in retry_wrapped_func
return retry_target(
^^^^^^^^^^^^^
File "/[opt](http://192.168.1.102:8080/#)/[venv](http://192.168.1.102:8080/#)/[lib](http://192.168.1.102:8080/#)/[python3.11](http://192.168.1.102:8080/#)/[site-packages](http://192.168.1.102:8080/#)/[google](http://192.168.1.102:8080/#)/[api_core](http://192.168.1.102:8080/#)/[retry](http://192.168.1.102:8080/#)/[retry_unary.py](http://192.168.1.102:8080/#)", line 153, in retry_target
_retry_error_helper(
File "/[opt](http://192.168.1.102:8080/#)/[venv](http://192.168.1.102:8080/#)/[lib](http://192.168.1.102:8080/#)/[python3.11](http://192.168.1.102:8080/#)/[site-packages](http://192.168.1.102:8080/#)/[google](http://192.168.1.102:8080/#)/[api_core](http://192.168.1.102:8080/#)/[retry](http://192.168.1.102:8080/#)/[retry_base.py](http://192.168.1.102:8080/#)", line 212, in _retry_error_helper
raise final_exc from source_exc
File "/[opt](http://192.168.1.102:8080/#)/[venv](http://192.168.1.102:8080/#)/[lib](http://192.168.1.102:8080/#)/[python3.11](http://192.168.1.102:8080/#)/[site-packages](http://192.168.1.102:8080/#)/[google](http://192.168.1.102:8080/#)/[api_core](http://192.168.1.102:8080/#)/[retry](http://192.168.1.102:8080/#)/[retry_unary.py](http://192.168.1.102:8080/#)", line 144, in retry_target
result = target()
^^^^^^^^
File "/[opt](http://192.168.1.102:8080/#)/[venv](http://192.168.1.102:8080/#)/[lib](http://192.168.1.102:8080/#)/[python3.11](http://192.168.1.102:8080/#)/[site-packages](http://192.168.1.102:8080/#)/[google](http://192.168.1.102:8080/#)/[api_core](http://192.168.1.102:8080/#)/[timeout.py](http://192.168.1.102:8080/#)", line 130, in func_with_timeout
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/[opt](http://192.168.1.102:8080/#)/[venv](http://192.168.1.102:8080/#)/[lib](http://192.168.1.102:8080/#)/[python3.11](http://192.168.1.102:8080/#)/[site-packages](http://192.168.1.102:8080/#)/[google](http://192.168.1.102:8080/#)/[api_core](http://192.168.1.102:8080/#)/[grpc_helpers.py](http://192.168.1.102:8080/#)", line 78, in error_remapped_callable
raise exceptions.from_grpc_error(exc) from exc
google.api_core.exceptions.InvalidArgument: 400 * BatchEmbedContentsRequest.model: unexpected model name format
* BatchEmbedContentsRequest.requests[0].model: unexpected model name format
I got the same problem with gemini-2.0-flash . is there a solution ?
Where are you putting the model name? I just tried chat and utility and it works.
I got the same problem with gemini-2.0-flash . is there a solution ? bro did u got solution now?