mirror of
https://github.com/router-for-me/Cli-Proxy-API-Management-Center.git
synced 2026-04-25 07:35:56 +03:00
[PR #101] [CLOSED] feat: add per-account excluded_models & priority UI to auth file editor #102
Labels
No labels
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Cli-Proxy-API-Management-Center#102
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/router-for-me/Cli-Proxy-API-Management-Center/pull/101
Author: @RGBadmin
Created: 2/11/2026
Status: ❌ Closed
Base:
main← Head:feat/per-account-excluded-models-and-priority-ui📝 Commits (2)
94296cefeat: add per-account excluded_models and priority UI to auth file editor63219a1refactor: simplify excluded_models serialization and state handler per review📊 Changes
1 file changed (+62 additions, -3 deletions)
View changed files
📝
src/pages/AuthFilesPage.tsx(+62 -3)📄 Description
PR: Add Per-Account
excluded_modelsandpriorityto Auth File EditorSummary
This PR adds two new per-account configuration fields to the prefix/proxy_url editor modal in the Auth Files management page:
excluded_models) — A textarea allowing users to specify model names (one per line) that should be excluded from this specific auth file.priority) — A numeric input for setting the priority of the auth file (higher value = higher priority, default: 0).Changes
File Modified
src/pages/AuthFilesPage.tsxWhat Changed
1.
PrefixProxyEditorStateInterfaceAdded two new fields:
excludedModels: string— newline-separated model names for UI bindingpriority: string— priority number as string for input binding2. State Initialization (
openPrefixProxyEditor)excludedModels: ''andpriority: ''excluded_models(array → newline-joined string) andpriority(number → string)3. JSON Serialization (
prefixProxyUpdatedTextuseMemo)excluded_modelsarray from newline-separated textarea value; omits field when emptypriorityas integer from string input; omits field when emptyexcludedModelsandpriorityto the useMemo dependency array4. Change Handler (
handlePrefixProxyChange)Extended type signature to accept
'excludedModels' | 'priority'in addition to existing fields.5. Modal UI
Added after the existing prefix/proxy_url inputs:
<textarea>for entering excluded model names (one per line), using existingstyles.prefixProxyTextareaCSS class<Input type="number">for setting priorityBehavior
excluded_modelsstring[]prioritynumber(integer)Labels
prefixProxyFields,prefixProxyLabel,prefixProxyTextareastyles)Testing Checklist
excluded_models→ field omitted from saved JSONexcluded_models→ saved as["model-a", "model-b"]priority→ field omitted from saved JSONpriority→ saved as integer (e.g.,5)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.