ai.settings_invalid
Application's ai: holds something it doesn't take, or leaves out what it needs.
Area 21, AI; not declinable; the next step is usually the agent's.
ai: names connection:, a connection with driver: Driver.openai_compatible or a package that fills ai, and models:, each model a ModelId setting,
with default among them. A key it doesn't take, a connection that
answers no model, a model that isn't a ModelId setting and models:
without default are each this error; keep_content:, not built yet, is toolchain.not_built_yet.
config { drafting_model: Text { default: "meta-llama/Llama-3.1-8B-Instruct" } model_url: Url { default: "http://localhost:8000/v1" }}
application { connections: { local_model: { driver: Driver.openai_compatible url: config.model_url } } ai: { connection: local_model models: { default: config.drafting_model } limits: { per_day: { tokens: 2000000 } } }}
error Model default must be a ModelId setting
--> app.jadpo:11:22
|11 | default: config.drafting_model | ^^^^^^^^^^^^^^^^^^^^^ `drafting_model` is `Text`
- reason
- Each model is a
ModelIdsetting, its provider and name as Hugging Face writes a repository,openai/gpt-4.1-mini, so a model is never anything else. - next
- Declare
drafting_model: ModelIdinconfig.jadpo(agent) - rule
- ai.
settings_ invalid - help
- https://jadpo.
dev/docs/errors/ai. settings_ invalid
Markdown for agents: /docs/errors/ai.settings_invalid.md.Built from Jadpo main at aee2e8f.