bug: OpenAI-compatible alias loses upstream model name in Home dispatch metadata
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 88/100
Research direction
Read internal/watcher/synthesizer/config.go, especially buildOpenAICompatibilityModels, and run go test ./internal/watcher/synthesizer ./internal/cliproxy/auth. Add a focused synthesizer regression confirming the metadata contains id fractalops-coding and name glm-5.3; the fix is complete when the regression and package tests pass.
Written by the indexing model from the issue text.
Description
Problem
For an OpenAI-compatible provider model configured with a distinct alias, Home dispatches the alias literally instead of the configured upstream model name.
openai-compatibility:
- name: zai-coding
base-url: https://api.example.test/v1
models:
- name: glm-5.3
alias: fractalops-coding
A service-key request for fractalops-coding selects the correct auth/provider, but the upstream request still contains model=fractalops-coding. The provider rejects it because only glm-5.3 exists.
Root cause
internal/watcher/synthesizer/config.go:buildOpenAICompatibilityModels creates registry.ModelInfo with ID=alias but omits Name=upstream model. The synthesized home_config_models metadata therefore cannot resolve alias to upstream name during dynamic dispatch.
This is separate from OAuth force-mapping / response rewriting fixed by #88.
Minimal fix
out = append(out, ®istry.ModelInfo{
ID: modelID,
Name: strings.TrimSpace(model.Name),
// existing fields...
})
Add a synthesizer regression asserting metadata contains:
{"id":"fractalops-coding","name":"glm-5.3"}
Verification
Applied locally on current source:
- commit:
6674658ba53a2dcafefb6686fa7fb24c7c5de15e go test ./internal/watcher/synthesizer ./internal/cliproxy/authpasses- change is one production line plus a focused regression test
No credential values are involved.
- Dominant language
- Go
- Stars
- 30
- Forks
- 16
- Avg merge
- 3h 59m
- Merged PRs (30d)
- 11
Contributor guide
No contributing guide indexed for this repository
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.
More from router-for-me/CLIProxyAPIHome
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
router-for-me/CLIProxyAPIHome#114 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
router-for-me/CLIProxyAPIHome#81 · 4 comments ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
router-for-me/CLIProxyAPIHome#53 · 4 comments ·
All issues in router-for-me/CLIProxyAPIHome
Similar issues
-
optimization optimization:agents-md-curator
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
githubnext/gh-aw-cao#13143 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
blinklabs-io/bursa#904 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
yanet-platform/ipfw-go#129 ·
-
bug confmap/provider/googlesecretmanagerprovider needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
open-telemetry/opentelemetry-collector-contrib#51273 · 2 comments ·
-
bug: AI Gateway client filter lists "Unknown" twice when NULL and literal Unknown clients coexist Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 90/100