mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-03-10 15:43:50 +01:00
The tool call response parser only handled JSON-based formats, causing
tool_calls to always be empty for models that use non-JSON formats.
Add parsers for three additional tool call formats:
- Qwen3.5: <tool_call><function=name><parameter=key>value</parameter>
- Mistral/Devstral: functionName{"arg": "value"}
- GPT-OSS: <|channel|>commentary to=functions.name<|message|>{...}
Also fix multi-turn tool conversations crashing with Jinja2
UndefinedError on tool_call_id by preserving tool_calls and
tool_call_id metadata through the chat history conversion.
|
||
|---|---|---|
| .. | ||
| cache_embedding_model.py | ||
| completions.py | ||
| embeddings.py | ||
| errors.py | ||
| images.py | ||
| logits.py | ||
| models.py | ||
| moderations.py | ||
| script.py | ||
| tokens.py | ||
| typing.py | ||
| utils.py | ||