Skip to content

Accept named argument elements in a forced call - #250

Merged
iamwavecut merged 1 commit into
mainfrom
fix/forced-call-named-args
Oct 12, 2026
Merged

iamwavecut merged 1 commit into
mainfrom
fix/forced-call-named-args

Conversation

@iamwavecut

Copy link
Copy Markdown
Owner

Summary

  • After Keep dialog and vision work inside their GPU pools #249, explicit draw requests mostly stay on Gemma, but one more markup form still sent a turn to the GPU2 fallback: <arg name="caption">…</arg><arg name="prompt">…</arg></function></tool_call>.
  • The forced-call salvage now reads the argument name from <arg name="…">, <parameter=…> and <parameter name="…"> as well as from <name>. Every element must still name a parameter of the forced tool.

Verification

  • cargo test -p openplotva-llm --lib: 203 passed; the new cases failed before the change.
  • cargo clippy -p openplotva-llm --all-targets -- -D warnings.

Gemma also writes a forced draw_image as <arg name="caption">…</arg>
<arg name="prompt">…</arg>, and Qwen-style output uses <parameter=name> or
<parameter name="name">. These were rejected, which sent the turn to the
GPU2 fallback; they now give the same arguments as <caption>…</caption>.
@github-actions

Copy link
Copy Markdown
Messages
📖 Danger checked 1 changed file(s).

Generated by 🚫 dangerJS against 53b23b0

@iamwavecut
iamwavecut merged commit 70182ee into main Oct 12, 2026
12 checks passed
@iamwavecut
iamwavecut deleted the fix/forced-call-named-args branch October 12, 2026 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant