Gemini, Mistral, OpenAIResponses and Hugging Face stop dropping your settings and tool calls
November 12, 20262 min read
This release fixes five bugs where Agno's Gemini, Mistral, OpenAIResponses and Hugging Face models dropped your settings or tool calls. Every before and after below is real output from the earlier release and this one, read from the client or request each model class builds, so no provider key was needed.
Gemini stays on v1beta
The Google Gen AI SDK now sends Developer API requests to v1 by default, and the Agno Gemini model and its tools use features served on v1beta. Gemini.get_client() now sets api_version to v1beta for the Developer API when you have not picked one. An explicit version in client_params, the GOOGLE_GENAI_API_VERSION variable and Vertex AI clients keep their own choice.
# Before
api_version: v1
# Now
api_version: v1betaGemini sends your generation_config
A Gemini model given generation_config or generative_model_kwargs sent none of it. The model wrote its own unset fields, all None, over your values, and it wrote them into the dict you passed in. Agno now copies your config and lays only the fields you set on top.
Gemini(generation_config={"temperature": 0.1, "top_k": 5, "max_output_tokens": 256, "seed": 7})# Before
request params: {}
# Now
config: temperature=0.1, top_k=5.0, max_output_tokens=256, seed=7Mistral streams keep the output schema
A streamed MistralChat run with an output_schema reached Mistral with no constraint. Only the non-streaming calls sent response_format, and Agno skips the JSON prompt for Mistral since it supports native structured output. Streaming calls now send a Pydantic schema or a dict format too. A MagicMock client stood in for Mistral to capture the call:
# Before
chat.stream got response_format: False
# Now
chat.stream got response_format: TrueOpenAIResponses leaves your reasoning dict alone
OpenAIResponses wrote each request's reasoning_effort and reasoning_summary into the reasoning dict you passed to the constructor. A second model built from the same dict then sent effort and summary values it never asked for. Agno now builds the request from a copy.
config = {"effort": "low"}
OpenAIResponses(id="gpt-5-mini", reasoning=config, reasoning_effort="high", reasoning_summary="detailed")# Before
config after one request: {'effort': 'high', 'summary': 'detailed'}
# Now
config after one request: {'effort': 'low'}Hugging Face keeps every streamed tool call
When one streamed chunk carried two tool calls, the HuggingFace model kept only the first and dropped the rest. Agno now reads every call in the chunk. This run fed one chunk with two calls through the model's own parser:
# Before
[('call_1', 'get_weather')]
# Now
[('call_1', 'get_weather'), ('call_2', 'get_time')]The Hugging Face and LiteLLM basic cookbooks also move off the deprecated mistralai/Mistral-7B-Instruct-v0.2 to openai/gpt-oss-120b.
See the Hugging Face cookbook, and learn more about Gemini, Mistral, OpenAI Responses and Hugging Face in the documentation.
Frequently asked questions
Pass it in client_params, for example Gemini(client_params={"http_options": {"api_version": "v1"}}), or set GOOGLE_GENAI_API_VERSION. Agno fills in v1beta only when you've set neither, and it leaves Vertex AI clients alone.
Yes. Gemini(temperature=0.9, generation_config={"temperature": 0.1, "top_k": 5}) sends a temperature of 0.9 and a top_k of 5. Only the fields you leave unset fall back to generation_config.
get_request_params() returned {}, and your dict came back with every model field written into it as None, for example {'temperature': None, 'top_k': None, 'max_output_tokens': None, 'seed': None, 'safety_settings': None, ...}.
All four now send it: invoke, ainvoke, invoke_stream and ainvoke_stream. A Pydantic output_schema goes through response_format_from_pydantic_model, and a dict such as {"type": "json_object"} passes through unchanged.





