-
Notifications
You must be signed in to change notification settings - Fork 2k
openfang config get default_model.base_url returns empty string #905
Copy link
Copy link
Open
Description
Problem
openfang config get default_model.base_url returns an empty string even when config.toml has the value set correctly.
# config.toml
[default_model]
provider = "openai"
model = "qwen3-coder-30b/qwen3-coder-30b"
base_url = "http://localhost:8991/v1"
api_key = "sk-bf-..."$ openfang config get default_model.base_url
# (empty output)
$ openfang config show
# Shows the full config correctly, including base_urlconfig set works — it writes to the file. But config get for this specific key always returns empty.
Other keys under [default_model] work fine:
$ openfang config get default_model.model
qwen3-coder-30b/qwen3-coder-30b # correctImpact
External health checks that verify config via openfang config get see an empty base_url and attempt to "fix" it by running config set, which touches config.toml and triggers the file watcher reload — creating an unnecessary reload cycle every time the health check runs.
Environment
- v0.5.4 and v0.5.5 Linux x86_64
Workaround
Health check reads config.toml directly via grep instead of using openfang config get.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels