mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-10-28 08:08:32 +00:00
Upstream returns 400 INVALID_ARGUMENT when toolConfig is absent. The guard `if !isReasoning || len(tools) > 0` skipped it for reasoning models called without tools, contradicting the intent stated in the comment above it. Set toolConfig unconditionally and cover the three cases with a unit test.