Bug: OpenAI-compatible providers overlap and hide existing models/keys in settings
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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