YAML parsing fails with cryptic error "Fatal Error: Failed to parse assistant: models.0: Invalid inputmodels.1: Invalid input" #4962
Labels
area:configuration
Relates to configuration options
good-first-issue
Suggested issue for new contributors
ide:vscode
Relates specifically to VS Code extension
kind:bug
Indicates an unexpected problem or unintended behavior
priority:medium
Indicates medium priority
Before submitting your bug report
Relevant environment info
Description
After updating to version 1.0.5 I got an error message when loading. I have a large config.yaml which has grown over time, with lots of old/unnecessary or possibly outdated stuff in it. Because of this, every model had tools enabled (I never checked each one to see if they actually supported tools)
The error is caused by values this value in the yaml. In the cases I showed, those 2 models will fail because of
capabilities: - tools_use
Removing that from the yaml will allow it to load.
Here are 2 examples where it fails.
schema: v1
version: 1.0.0
models:
name: gemma3:27b
provider: ollama
model: gemma3:27b
apiBase: http://127.0.0.1:11434
defaultCompletionOptions:
maxtokens: 4056
temperature: 0.2
topP: .2
capabilities:
roles:
name: qwen2.5:32b
provider: ollama
model: qwen2.5:32b
apiBase: http://127.0.0.1:11434
defaultCompletionOptions:
maxtokens: 8000
temperature: 0.2
topP: .2
capabilities:
roles:
To reproduce
No response
Log output
The text was updated successfully, but these errors were encountered: