feat(models): 增加模型显示名重命名 (#614)
* feat(models): add WUI model display aliases Persist display-only model aliases in Web UI app config, surface them in the model selector/search, and keep canonical model IDs for Hermes calls. * fix(models): improve WUI model alias editing * fix(models): clarify unlisted model picker * fix(models): scope aliases to providers
This commit is contained in:
@@ -18,6 +18,10 @@ export interface AppConfig {
|
||||
// owns the provider list, system credentials are merely a fallback source.
|
||||
copilotEnabled?: boolean
|
||||
|
||||
// Web UI-only model display aliases. Keys are provider -> canonical model ID -> display label.
|
||||
// These aliases never replace the canonical model ID sent back to Hermes.
|
||||
modelAliases?: Record<string, Record<string, string>>
|
||||
|
||||
// Web UI-only model picker visibility. This filters what the WUI exposes in
|
||||
// its sidebar/model pages and never renames or rewrites Hermes canonical
|
||||
// provider/model IDs. Hermes CLI config remains the upstream source of truth.
|
||||
|
||||
@@ -256,7 +256,7 @@ function resolveHermesAgentRoot(): string {
|
||||
'/opt/hermes',
|
||||
join(homedir(), '.hermes', 'hermes-agent'), // Unix/Linux/macOS
|
||||
]
|
||||
|
||||
|
||||
// Windows specific path
|
||||
if (process.platform === 'win32' && process.env.LOCALAPPDATA) {
|
||||
candidates.push(join(process.env.LOCALAPPDATA, 'hermes', 'hermes-agent'))
|
||||
|
||||
Reference in New Issue
Block a user