Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(model-default): 模型组 Auto 在设置页不再被归到名为 auto 的厂商下
fmfsaisaic23b93da3c6e
diff --git a/apps/desktop/src/renderer/lib/__tests__/modelDisplayNames.test.ts b/apps/desktop/src/renderer/lib/__tests__/modelDisplayNames.test.tsindex 39bff36b48..8522328494 100644--- a/apps/desktop/src/renderer/lib/__tests__/modelDisplayNames.test.ts+++ b/apps/desktop/src/renderer/lib/__tests__/modelDisplayNames.test.ts@@ -35,6 +35,15 @@ describe('localized model display names', () => {expect(localizedBrandName(modelBrand({ id: 'moonshotai/kimi-k3' })!, t)).toBe('月之暗面');expect(localizedBrandName(modelBrand({ id: 'new-maker/new-model' })!, t)).toBe('new-maker');});+ it('shows a model-group Auto by its server name, grouped like the preset Auto rather than under an "auto" vendor', () => {+ expect(modelBrand({ id: 'auto/grp_123' })).toBeUndefined();+ expect(modelBrand({ id: 'auto' })).toBeUndefined();+ const t = i18n.getFixedT('zh-CN');+ expect(localizedModelName('Auto (研发组)', t)).toBe('Auto (研发组)');+ expect(matchesModelName({ id: 'auto/grp_123', name: 'Auto (研发组)' }, '研发组', t)).toBe(true);+ // A real vendor namespace that merely starts with "auto" is still a vendor.+ expect(modelBrand({ id: 'autoglm/model' })).toMatchObject({ label: 'autoglm' });+ });it('searches both languages, manufacturer and exact model ID without modifying model data', () => {const model = Object.freeze({ id: 'qwen/qwen3.8-max', name: 'Qwen3.8 Max' });for (const locale of ['zh-CN', 'zh-TW', 'en']) {diff --git a/apps/desktop/src/renderer/lib/modelDisplayNames.ts b/apps/desktop/src/renderer/lib/modelDisplayNames.tsindex 316c10b642..89e0637af6 100644--- a/apps/desktop/src/renderer/lib/modelDisplayNames.ts+++ b/apps/desktop/src/renderer/lib/modelDisplayNames.ts@@ -1,5 +1,5 @@import { localizedModelDescription } from './modelDescriptions';-import type { CatalogModel } from '@cindy/model-providers';+import { isCindyAutoModelId, type CatalogModel } from '@cindy/model-providers';import type { ProviderLogoKind } from '@cindy/model-providers/branding';import type { TFunction } from 'i18next';@@ -40,6 +40,8 @@ const namespaces: Record<string, string> = {/** Display identity only. Never use these labels to merge IDs, select a route or infer capabilities. */export function modelBrand(model: Pick<CatalogModel, 'id'>): ModelBrand | undefined {+ // Cindy Auto is a server route, not a vendor: `auto/<groupId>` must group like the preset `auto`.+ if (isCindyAutoModelId(model.id)) return undefined;const id = model.id.toLowerCase();const slash = id.indexOf('/');if (slash > 0) {