Skip to content

Commit 7fe448d

Browse files
feat: 改为使用 ccb 的邮箱
1 parent aa06cea commit 7fe448d

1 file changed

Lines changed: 13 additions & 11 deletions

File tree

src/utils/attributionEmail.ts

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
1-
const MODEL_GITHUB_MAP: Array<{ keywords: string[]; email: string }> = [
1+
const MODEL_EMAIL_MAP: Array<{ keywords: string[]; email: string }> = [
22
{ keywords: ['claude'], email: 'noreply@anthropic.com' },
3+
// 由于找不到他们的邮箱和头像, 所以改为了使用我们的邮箱先记录, 后续官方有 github 能用的邮箱可以替换
4+
// github 组织是不能用 co author 的
35
{
46
keywords: ['gpt', 'dall-e', 'o1-', 'o3-', 'o4-'],
5-
email: 'openai@users.noreply.github.com',
7+
email: 'openai@claude-code-best.win',
68
},
7-
{ keywords: ['gemini'], email: 'google-gemini@users.noreply.github.com' },
8-
{ keywords: ['grok'], email: 'xai-org@users.noreply.github.com' },
9-
{ keywords: ['glm'], email: 'zai-org@users.noreply.github.com' },
10-
{ keywords: ['deepseek'], email: 'deepseek-ai@users.noreply.github.com' },
11-
{ keywords: ['qwen'], email: 'QwenLM@users.noreply.github.com' },
12-
{ keywords: ['minimax'], email: 'MiniMax-AI@users.noreply.github.com' },
13-
{ keywords: ['mimo'], email: 'XiaomiMiMo@users.noreply.github.com' },
14-
{ keywords: ['kimi'], email: 'MoonshotAI@users.noreply.github.com' },
9+
{ keywords: ['gemini'], email: 'google-gemini@claude-code-best.win' },
10+
{ keywords: ['grok'], email: 'xai-org@claude-code-best.win' },
11+
{ keywords: ['glm'], email: 'zai-org@claude-code-best.win' },
12+
{ keywords: ['deepseek'], email: 'deepseek-ai@claude-code-best.win' },
13+
{ keywords: ['qwen'], email: 'QwenLM@claude-code-best.win' },
14+
{ keywords: ['minimax'], email: 'MiniMax-AI@claude-code-best.win' },
15+
{ keywords: ['mimo'], email: 'XiaomiMiMo@claude-code-best.win' },
16+
{ keywords: ['kimi'], email: 'MoonshotAI@claude-code-best.win' },
1517
]
1618

1719
export function getAttributionEmail(modelName: string): string {
1820
const lower = modelName.toLowerCase()
19-
for (const { keywords, email } of MODEL_GITHUB_MAP) {
21+
for (const { keywords, email } of MODEL_EMAIL_MAP) {
2022
if (keywords.some(kw => lower.includes(kw))) {
2123
return email
2224
}

0 commit comments

Comments
 (0)