Skip to content

fix: hide models no granted account will serve - #511

Open
caigee-cmd wants to merge 2 commits into
mainfrom
fix/hide-disabled-models
Open

caigee-cmd wants to merge 2 commits into
mainfrom
fix/hide-disabled-models

Conversation

@caigee-cmd

Copy link
Copy Markdown
Owner

Summary

Test plan

  • go test ./internal/control/ ./internal/api/ ./internal/app/ ./internal/gateway/ ./internal/executor/ -count=1
  • With one provider's accounts limited to selected models, a third-party client using that key no longer lists the unselected names, and calling one still fails.
  • An unrestricted account of the same provider keeps those names visible.

/v1/models kept listing a provider's whole catalog after an account was
limited to selected models, so clients showed names the key could not call.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

供应方选择了可用模型后,使用api key还能看到其余模型

1 participant