Mirror request model for context discovery — no write_model_id needed
Festinger now extracts provider/model/api-key from every intercepted request and passes it to the context-discover queue as a fallback_model. _process_context_discover uses it when write_model_id is not configured, so Agent0's current model (LM Studio, Ollama, Anthropic) is automatically reused for utility LLM calls without any extra setup. Priority: write_model_id (explicit override) > fallback_model (request mirror) Also updates upstream_openai default in config.yaml to LM Studio's local address (host.docker.internal:1234). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -7,9 +7,10 @@ upstream_ollama: "http://host.docker.internal:11434"
|
||||
# Override via UPSTREAM_ANTHROPIC env var if needed
|
||||
upstream_anthropic: "https://api.anthropic.com"
|
||||
|
||||
# Where the real OpenAI-compatible API is running (for /v1/chat/completions)
|
||||
# Where the real OpenAI-compatible API is running (for /v1/chat/completions).
|
||||
# For LM Studio set this to its local address, e.g. "http://host.docker.internal:1234"
|
||||
# Override via UPSTREAM_OPENAI env var if needed
|
||||
upstream_openai: "https://api.openai.com"
|
||||
upstream_openai: "http://host.docker.internal:1234"
|
||||
|
||||
# Port this proxy listens on inside the container (exposed as 11434 on the docker network)
|
||||
proxy_port: 11434
|
||||
|
||||
Reference in New Issue
Block a user