Skip to content

[fast] service tier badge shows on non-OpenAI providers (e.g. DeepSeek) #739

Description

@1am2syman

Description
The header/info-widget model label renders a [fast] service-tier badge for providers that are not OpenAI, even though the setting is named openai_service_tier and documented as applying to OpenAI OAuth only.

Repro

  1. Use a DeepSeek model (e.g. deepseek-v4-flash) served via the OpenAI-compatible runtime (openai-compatible:deepseek).
  2. With openai_service_tier = "priority" (the default) in ~/.jcode/config.toml, the model tooltip shows e.g. deepseek v4 flash (hi) [fast].

Expected
No [fast] badge for a DeepSeek/OpenAI-compatible provider, or a clear indication that the badge reflects the OpenAI-compatible runtime tier, not an OpenAI model.

Actual
The [fast] badge appears on DeepSeek V4 Flash.

Root cause (from source)
All OpenAI-compatible providers (DeepSeek, Z.ai, Comtegra, etc.) are served by jcode-provider-openai-runtime, which reads the global openai_service_tier config (crates/jcode-provider-openai-runtime/src/lib.rs) and surfaces it as the session service tier. The setting's name/comment implies OpenAI-only, but it applies to every OpenAI-compatible provider.

Metadata

Metadata

Assignees

No one assigned

    Labels

    autonomous: clearHands-off: unambiguous bug, obvious fix, no decisions. Don't even look - an agent can fully solve.bugSomething isn't workingpriority: mediumP2 - normal prioritytriage: fixed-pending-releaseFixed in code/committed; will close automatically on next releasetriage: reproducibleClear repro + clear fix path

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions