From 12419ed9764ea85c8a491e8766e8b397c7887957 Mon Sep 17 00:00:00 2001 From: felipefl142 Date: Wed, 15 Apr 2026 02:48:07 -0300 Subject: [PATCH 1/2] fix: remove seed from DEFAULT_MODEL_CONFIG Google's OpenAI-compatible API rejects requests that include the `seed` parameter with 400 INVALID_ARGUMENT. The `seed` field is not part of the OpenAI-compatible spec that Google implements. Removing it from the defaults fixes compatibility with Google's Generative Language API while not affecting providers that do support it (users can still set it via model_config in YAML). --- src/balatrollm/config.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/balatrollm/config.py b/src/balatrollm/config.py index 52539cc..8e04f7e 100644 --- a/src/balatrollm/config.py +++ b/src/balatrollm/config.py @@ -16,7 +16,6 @@ ################################################################################ DEFAULT_MODEL_CONFIG: dict[str, bool | int | str | dict] = { - "seed": 1, "parallel_tool_calls": False, "tool_choice": "auto", "extra_headers": { From a0b7fbd01a5d528a1438e575e3652636675eb586 Mon Sep 17 00:00:00 2001 From: S1M0N38 Date: Sun, 19 Apr 2026 10:24:49 +0200 Subject: [PATCH 2/2] docs(config): note that model seed is not universally supported --- config/example.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/config/example.yaml b/config/example.yaml index 20b0aa5..37788d6 100644 --- a/config/example.yaml +++ b/config/example.yaml @@ -58,8 +58,12 @@ model: - openai/gpt-oss-120b # Optional OpenAI client parameters passed to chat completions. -# Common options: seed, temperature, max_tokens, parallel_tool_calls +# Common options: temperature, max_tokens, parallel_tool_calls # The `extra_body` field passes provider-specific parameters (e.g., OpenRouter). +# +# NOTE: You can add `seed` for mostly-deterministic outputs with providers that +# support it (e.g. OpenAI), but note that some providers (e.g. Google) reject the +# `seed` parameter with a 400 error. Use it only if you know your provider supports it. model_config: extra_body: usage: