You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
some openai-compatible models (such as openrouter's anthropic models)
do not default to an empty json object when there are no arguments,
leading to a parsing error.
`function.arguments == '{}'`:
```bash
% llm --tool llm_version "What is the version?" --td -m openrouter/openai/gpt-4o
Tool call: llm_version({})
0.26
The version of the LLM is 0.26.
```
`function.arguments == ''`:
```bash
% llm --tool llm_version "What is the version?" --td -m openrouter/anthropic/claude-sonnet-4
I'll check the version of llm for you.Error: Expecting value: line 1 column 1 (char 0)
```
0 commit comments