Skip to content

openfang config get default_model.base_url returns empty string #905

@JYeswak

Description

@JYeswak

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_url

config 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  # correct

Impact

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions