# Gemini, Mistral, OpenAIResponses and Hugging Face stop dropping your settings and tool calls

> Agno fixes Gemini v1beta and generation_config, MistralChat streaming schemas, the OpenAIResponses reasoning dict and streamed Hugging Face tool calls.

- Published: 2026-11-12
- Author: Himanshu Singh
- Categories: Changelog
- Canonical: https://www.agno.com/blog/gemini-mistral-openairesponses-and-hugging-face-stop-dropping-your-settings-and-tool-calls
- Markdown: https://www.agno.com/blog/gemini-mistral-openairesponses-and-hugging-face-stop-dropping-your-settings-and-tool-calls.md

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.

```text
# Before
api_version: v1

# Now
api_version: v1beta
```

## Gemini 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.

```python
Gemini(generation_config={"temperature": 0.1, "top_k": 5, "max_output_tokens": 256, "seed": 7})
```

```text
# Before
request params: {}

# Now
config: temperature=0.1, top_k=5.0, max_output_tokens=256, seed=7
```

## Mistral 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:

```text
# Before
chat.stream got response_format: False

# Now
chat.stream got response_format: True
```

## OpenAIResponses 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.

```python
config = {"effort": "low"}
OpenAIResponses(id="gpt-5-mini", reasoning=config, reasoning_effort="high", reasoning_summary="detailed")
```

```text
# 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:

```text
# 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](https://github.com/agno-agi/agno/blob/main/cookbook/90_models/huggingface/basic.py), and learn more about [Gemini](https://docs.agno.com/models/providers/native/google/overview), [Mistral](https://docs.agno.com/models/providers/native/mistral/overview), [OpenAI Responses](https://docs.agno.com/models/providers/native/openai/responses/overview) and [Hugging Face](https://docs.agno.com/models/providers/gateways/huggingface/overview) in the documentation.
