Commit Graph
2 Commits
Author SHA1 Message Date
yetone 4f5699aae5 providers: Kiro and Devin keep several accounts, as the other subscriptions do (Kiro要支持增加多个账号…Devin也要能够增加多个账号) — both only borrowed their CLI's one sign-in (Devin wrote devin's credentials.toml, Kiro kept one kiro-auth-token.json), so signing in again replaced the account. The CLI's or IDE's own account is now read as it is and each further account gets a home of magpie's: Kiro's token file is kept and refreshed there, and Devin's credentials.toml sits in a data folder the devin CLI is run with (XDG_DATA_HOME / APPDATA), so devin auth status and models list answer for it. They are listed, switched, ticked on and forgotten like the others, and the gateway moves on to the next when one is out; the single Kiro sign-in kept before is moved into a home of its own. Tested with a fake Kiro and a fake devin CLI (second account, signing in again, switching, forgetting); not with real accounts 2026-09-29 15:20:22 +08:00
Charan Rathore 0b31315a47 gateway: 400 when a required tool choice leaves nothing callable (#169)
* gateway: 400 when a required choice has no callable tools

Added validation to ensure required tool choice is callable.

* gateway: force a single Gemini name only when it survives

Added conditions to ensure tool choice is set correctly based on allowed function names and tool availability.

* gateway: test required-choice allowlist rejection

* gateway: reject an allowlist that filters out every tool in shared parse

Refactor request parsing to handle required tool choices and improve error handling.

* gemini: narrow the required-tools guard to Responses allowed_tools and ANY allowedFunctionNames

Updated the logic for function calling modes to include 'VALIDATED' alongside 'ANY'. Adjusted comments for clarity regarding allowed function declarations.

* gateway: cover required-tool and filtered-empty allowlist rejections
2026-09-29 04:39:49 +08:00