Repository navigation
Fixed
- XML-formatted tool calls are no longer silently passed through as plain text (#13):
parseToolCallOutputnow parses XML tool-call formats emitted when models fall back to native XML weights despite the JSON[Tool Protocol]— including<tool_call><function=...><parameter=...>, Hermes JSON inside<tool_call>, Anthropic<function_calls>/<invoke>, bare<function=...>, and```xml-fenced tool calls, with tool-schema-aware parameter type coercion and truncation safety.- Updated the streaming safety gate (
findStreamingSafePrefixLength) to withhold XML tool-call opening tags and partial prefixes across chunks so XML payloads never leak into visible text deltas while prose prefixes still stream live. - Added warning logs whenever a tool-declared response falls back to plain text despite containing unparsed tool-call markup.
Added
- Dynamic CLI model discovery: on startup and via
/v1/models(with 10-minute TTL cache and?refresh=1force-refresh), the proxy now queries<cli> --list-modelsto automatically register newly launched frontier models and BYOK custom models for the active account, falling back to the built-in static list if discovery fails orDYNAMIC_MODELS=0is set. - Extended reasoning effort routing:
EFFORT_SUFFIX_REnow supportsxhigh(-effort-xhigh) in addition tolow,medium,high, andmax, for both static and dynamically discovered models. - Case-insensitive model ID / CLI display name matching in
getModel(e.g.Qwen4-Maxresolves directly without falling back toauto).
Full Changelog: v1.6.0...v1.7.0