Skip to content

adds more robust arg parsing - #31

Open
MrDiggles2 wants to merge 1 commit into
digitalocean:mainfrom
MrDiggles2:chan/adds-more-robust-args-parsing
Open

adds more robust arg parsing#31
MrDiggles2 wants to merge 1 commit into
digitalocean:mainfrom
MrDiggles2:chan/adds-more-robust-args-parsing

Conversation

@MrDiggles2

Copy link
Copy Markdown
Contributor

Noticed that with some "weaker" models like openai-gpt-oss-20b tend to over-escape JSON for tool call arguments, e.g. {"query": \\"foo\\"} instead of {"query": "foo"}

This PR adds a new function to repair the JSON if the initial parse fails.

Also ran make format_diff

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