Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

fix(models): complete Agnes account branding and descriptions

Chris6ab116784c9f
diff --git a/apps/desktop/src/renderer/lib/modelDescriptions.ts b/apps/desktop/src/renderer/lib/modelDescriptions.ts
index 3397543331..ebe6d323db 100644
--- a/apps/desktop/src/renderer/lib/modelDescriptions.ts
+++ b/apps/desktop/src/renderer/lib/modelDescriptions.ts
@@ -37,6 +37,10 @@ const families: ReadonlyArray<readonly [RegExp, string]> = [
[/^muse-wonder-/, 'complexWork'],
[/^grok-(?:build|code)-/, 'coding'],
[/^grok-/, 'reasoning'],
+ // Agnes Video is the supplier's generation series, not video-understanding chat.
+ [/^agnes-video-\d/, 'video'],
+ [/^agnes-.*-flash(?:-|$)/, 'everydayWork'],
+ [/^agnes-/, 'reasoning'],
];
const categoryKeys: Readonly<Record<string, string>> = {
diff --git a/packages/model-providers/src/providerBranding.ts b/packages/model-providers/src/providerBranding.ts
index 916e81b0b7..706ec730a4 100644
--- a/packages/model-providers/src/providerBranding.ts
+++ b/packages/model-providers/src/providerBranding.ts
@@ -10,6 +10,9 @@
// Additional supplier marks: Lobe Icons 5.14.0 (MIT; included in THIRD-PARTY-NOTICES).
export const PROVIDER_LOGO_PATHS = {
+ // Agnes official foreground mark: https://platform.agnes-ai.com/images/biglogo.svg
+ // Preserve its two paths, uniformly scaled from the 284px canvas to 24px.
+ agnes: 'M3.60592 14.2175C3.60592 14.2175 2.17859 18.6203 4.8093 19.0639C7.44 19.5076 11.8014 18.2425 16.6225 9.01437C16.6225 9.01437 16.0276 11.9121 15.7039 13.5727C15.6059 14.078 15.1639 14.4439 14.6493 14.4482L14.0062 14.4524C13.8169 14.4541 13.7451 14.6958 13.9006 14.8039C14.5099 15.2256 15.2915 16.1392 15.4166 18.0752C15.4437 18.4885 15.878 18.7538 16.2558 18.5831C16.4248 18.507 16.5887 18.3752 16.7146 18.1538C16.8203 17.9687 16.8693 17.7558 16.8777 17.5428L16.7907 16.7358C16.7442 16.3082 17.0003 15.9101 17.4042 15.7639C17.9755 15.5569 18.747 15.1234 19.1248 14.2344C19.1696 14.1296 19.0656 14.0206 18.9583 14.0594C18.5763 14.1963 17.8504 14.4228 17.2192 14.4194C17.0315 14.4186 16.8896 14.2479 16.9166 14.062L17.793 7.93945C17.8437 7.58706 17.5766 7.26762 17.2208 7.26002C17.0231 7.25579 16.7839 7.2803 16.5093 7.36227C15.8949 7.54565 15.3135 7.85579 14.9949 8.46761C13.4907 11.3611 6.28732 20.0341 3.60592 14.2175Z M16.6766 6.02113C17.4943 6.02113 18.1572 5.35825 18.1572 4.54056C18.1572 3.72286 17.4943 3.06 16.6766 3.06C15.8589 3.06 15.1961 3.72286 15.1961 4.54056C15.1961 5.35825 15.8589 6.02113 16.6766 6.02113Z',
siliconflow: 'M22.956 6.521H12.522c-.577 0-1.044.468-1.044 1.044v3.13c0 .577-.466 1.044-1.043 1.044H1.044c-.577 0-1.044.467-1.044 1.044v4.174C0 17.533.467 18 1.044 18h10.434c.577 0 1.044-.467 1.044-1.043v-3.13c0-.578.466-1.044 1.043-1.044h9.391c.577 0 1.044-.467 1.044-1.044V7.565c0-.576-.467-1.044-1.044-1.044z',
// Original S monogram for the self-hosted Sub2API connection (not upstream artwork).
sub2api: 'M5 3h14v3H8v4h8a3 3 0 0 1 3 3v5a3 3 0 0 1-3 3H5v-3h11v-5H8a3 3 0 0 1-3-3V3z',
@@ -86,6 +89,7 @@ export type ProviderLogoRouting = Readonly<
/** Bundled regional presets share a brand and never infer it from display names. */
const PROVIDER_LOGO_KIND_BY_ID: Readonly<Record<string, ProviderLogoKind>> = {
+ agnes: 'agnes',
sub2api: 'sub2api',
"antgroup": "antgroup",
"baseten": "baseten",
@@ -165,6 +169,7 @@ const PROVIDER_LOGO_KIND_BY_ID: Readonly<Record<string, ProviderLogoKind>> = {
/** Renamed providers retain stable upstream hosts, matched only on DNS boundaries. */
const PROVIDER_LOGO_KIND_BY_HOST: readonly (readonly [string, ProviderLogoKind])[] = [
+ ['apihub.agnes-ai.com', 'agnes'],
["api.ant-ling.com", "antgroup"],
["inference.baseten.co", "baseten"],
["api.cerebras.ai", "cerebras"],
diff --git a/packages/model-providers/src/providerSetupLinks.ts b/packages/model-providers/src/providerSetupLinks.ts
index 3bfb37da15..0daeeee9fd 100644
--- a/packages/model-providers/src/providerSetupLinks.ts
+++ b/packages/model-providers/src/providerSetupLinks.ts
@@ -15,6 +15,8 @@ const links: Record<string, ProviderSetupLink> = {
openai: key('https://platform.openai.com/api-keys'),
xai: key('https://console.x.ai/team/default/api-keys'),
openrouter: key('https://openrouter.ai/settings/keys'),
+ // Official Claude CLI guide directs users here to sign in and create a key.
+ agnes: account('https://platform.agnes-ai.com/'),
deepseek: key('https://platform.deepseek.com/api_keys'),
'zhipu-glm-cn': key('https://bigmodel.cn/usercenter/proj-mgmt/apikeys'),
'zhipu-glm-global': key('https://z.ai/manage-apikey/apikey-list'),