1jehuang / 1jehuang/jcode

Bug: OpenAI-compatible providers overlap and hide existing models/keys in settings

Open
#942 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug needs-info triage: unclear
Dominant language
Rust
Stars
19.9k
Forks
2.3k
Avg merge
2d 7h
Merged PRs (30d)
30

Description

Description

There is a major issue in the jcode repository regarding how API keys and models are managed under the "jcode ani model provider settings".

Currently, the system groups all OpenAI-compatible API keys and models under a single generic tag: "openai compatible". Mixing all different providers into one single category causes severe overlapping issues.

Environment
  • JCode Version: v0.75.5
Current Behavior
  • All unique OpenAI-compatible providers are mixed together under one tag.
  • Adding or modifying a provider often causes previously saved keys, custom endpoints, or models from other providers to completely disappear or become hidden.
  • The settings overwrite or mask existing configurations instead of keeping them isolated.
Expected Behavior

Each OpenAI-compatible provider configuration should be handled independently, or the system should accurately persist and display multiple distinct endpoints/keys without wiping out existing data.

This area of the codebase requires a deep review and refactoring to ensure data persistence and a proper UI/UX separation for custom providers.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how model-provider settings group and persist OpenAI-compatible keys, endpoints, and models, then reproduce the issue by adding configurations for multiple providers. Done means each provider remains independently visible and existing keys, endpoints, and models are preserved after adding or modifying another provider.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
ai, cli
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.