• Stefy Lanza (nextime / spora )'s avatar
    parser: detect <tool>{json}<tool> tool calls (Gemma finetunes) · fc828989
    Stefy Lanza (nextime / spora ) authored
    Some Gemma finetunes emit tool calls as <tool>{"name":..,"arguments":..}
    using <tool> (or <tool_call>) as BOTH delimiters — no closing slash —
    and sometimes append a stray quote. Every existing <tool>…</tool>
    pattern requires a slashed closer, so GemmaParser found nothing and the
    call was returned as plain text: kilocode saw no tool_call and showed no
    reply. Add parse_tool_tag_json_calls, which extracts the brace-balanced
    object after each marker via the tolerant loose parser (so trailing junk
    and stray quotes don't break it) and reads name + arguments/parameters,
    restricted to declared tool names and de-duplicated. Wired into
    GemmaParser before the generic fallback.
    Co-Authored-By: 's avatarClaude Opus 4.8 <noreply@anthropic.com>
    fc828989
Name
Last commit
Last update
..
admin Loading commit data...
api Loading commit data...
backends Loading commit data...
broker Loading commit data...
frontproxy Loading commit data...
models Loading commit data...
openai Loading commit data...
pydantic Loading commit data...
queue Loading commit data...
tasks Loading commit data...
__init__.py Loading commit data...
cli.py Loading commit data...
config.py Loading commit data...
main.py Loading commit data...
platform_paths.py Loading commit data...