deerflow2/backend/packages/harness/deerflow/models
Octopus 616caa92b1
fix(models): resolve duplicate keyword argument error when reasoning_effort appears in both config and kwargs (#2017)
When a model config includes `reasoning_effort` as an extra YAML field
(ModelConfig uses `extra="allow"`), and the thinking-disabled code path
also injects `reasoning_effort="minimal"` into kwargs, the previous
`model_class(**kwargs, **model_settings_from_config)` call raises:

  TypeError: got multiple values for keyword argument 'reasoning_effort'

Fix by merging the two dicts before instantiation, giving runtime kwargs
precedence over config values: `{**model_settings_from_config, **kwargs}`.

Fixes #1977

Co-authored-by: octo-patch <octo-patch@github.com>
2026-04-09 15:09:39 +08:00
..
__init__.py refactor: split backend into harness (deerflow.*) and app (app.*) (#1131) 2026-03-14 22:55:52 +08:00
claude_provider.py fix(oauth): Harden Claude OAuth cache-control handling (#1583) 2026-03-30 07:41:18 +08:00
credential_loader.py Fix Windows backend test compatibility (#1384) 2026-03-26 17:39:16 +08:00
factory.py fix(models): resolve duplicate keyword argument error when reasoning_effort appears in both config and kwargs (#2017) 2026-04-09 15:09:39 +08:00
openai_codex_provider.py fix(provider): preserve streamed Codex output when response.completed.output is empty (#1928) 2026-04-07 18:21:22 +08:00
patched_deepseek.py refactor: split backend into harness (deerflow.*) and app (app.*) (#1131) 2026-03-14 22:55:52 +08:00
patched_minimax.py feat(harness): integration ACP agent tool (#1344) 2026-03-26 14:20:18 +08:00
patched_openai.py ci: enforce code formatting checks for backend and frontend (#1536) 2026-03-29 15:34:38 +08:00
vllm_provider.py feat(models): add vLLM provider support (#1860) 2026-04-06 15:18:34 +08:00