Skip to content

feat(management): report the source of available model routes - #222

Merged
GavinKung merged 1 commit into
devfrom
feat/267-acp-plugin-model-pricing
Nov 30, 2026
Merged

GavinKung merged 1 commit into
devfrom
feat/267-acp-plugin-model-pricing

Conversation

@GavinKung

@GavinKung GavinKung commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Changes

Expose the winning route’s source in GET /v8/management/models?scope=available. Registry routes report credential, and routes published by enabled ACP plugins report acp.

This lets HMC distinguish a plugin model from a credential alias even when they share a public model ID and billing target. The change includes English and Chinese API documentation and a regression test for that collision.

The console uses this field in router-for-me/Home-Management-Center#268 for router-for-me/Home-Management-Center#267.

Verification

Tested the proposed merge against dev at 1233fb5.

  • go test ./internal/cluster/management -run 'TestModelsV8|TestBillingImportAutoDiscoverIncludesPublishedACPRoute' -count=1 passed.
  • go build ./cmd/home passed.

@GavinKung
GavinKung force-pushed the feat/267-acp-plugin-model-pricing branch from ccc6edc to a0e7b1b Compare November 30, 2026 12:10
@GavinKung
GavinKung merged commit 0042619 into dev Nov 30, 2026
2 checks passed
@GavinKung
GavinKung deleted the feat/267-acp-plugin-model-pricing branch November 30, 2026 12:22
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.

1 participant