-
Notifications
You must be signed in to change notification settings - Fork 488
Description
Checks
- I have updated to the lastest minor and patch version of Strands
- I have checked the documentation and this is not expected behavior
- I have searched ./issues and there are no duplicates of my issue
Strands Version
1.17.0
Python Version
3.12
Operating System
Ubuntu 24.04.1
Installation Method
pip
Steps to Reproduce
Simply changing the model_id in GeminiModel to gemini-3-pro-preview from gemini-2.5-flash causes the exception after a tool call:
File "/home/danielp/r-d-pocs/strands-ai-trek/.venv/lib/python3.12/site-packages/google/genai/_api_client.py", line 1225, in _async_request_once
await errors.APIError.raise_for_async_response(response)
File "/home/danielp/r-d-pocs/strands-ai-trek/.venv/lib/python3.12/site-packages/google/genai/errors.py", line 188, in raise_for_async_response
await cls.raise_error_async(status_code, response_json, response)
File "/home/danielp/r-d-pocs/strands-ai-trek/.venv/lib/python3.12/site-packages/google/genai/errors.py", line 210, in raise_error_async
raise ClientError(status_code, response_json, response)
google.genai.errors.ClientError: 400 Bad Request. {'message': '{\n "error": {\n "code": 400,\n "message": "Request contains an invalid argument.",\n "status": "INVALID_ARGUMENT"\n }\n}\n', 'status': 'Bad Request'}
Expected Behavior
Successful execution
Actual Behavior
INVALID_ARGUMENT exception
Additional Context
No response
Possible Solution
No response
Related Issues
No response