mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-17 13:55:50 +00:00
28 lines
1.2 KiB
TypeScript
28 lines
1.2 KiB
TypeScript
const MODEL_EMAIL_MAP: Array<{ keywords: string[]; email: string }> = [
|
|
{ keywords: ['claude'], email: 'noreply@anthropic.com' },
|
|
// 由于找不到他们的邮箱和头像, 所以改为了使用我们的邮箱先记录, 后续官方有 github 能用的邮箱可以替换
|
|
// github 组织是不能用 co author 的
|
|
{
|
|
keywords: ['gpt', 'dall-e', 'o1-', 'o3-', 'o4-'],
|
|
email: 'openai@claude-code-best.win',
|
|
},
|
|
{ keywords: ['gemini'], email: 'google-gemini@claude-code-best.win' },
|
|
{ keywords: ['grok'], email: 'xai-org@claude-code-best.win' },
|
|
{ keywords: ['glm'], email: 'zai-org@claude-code-best.win' },
|
|
{ keywords: ['deepseek'], email: 'deepseek-ai@claude-code-best.win' },
|
|
{ keywords: ['qwen'], email: 'QwenLM@claude-code-best.win' },
|
|
{ keywords: ['minimax'], email: 'MiniMax-AI@claude-code-best.win' },
|
|
{ keywords: ['mimo'], email: 'XiaomiMiMo@claude-code-best.win' },
|
|
{ keywords: ['kimi'], email: 'MoonshotAI@claude-code-best.win' },
|
|
]
|
|
|
|
export function getAttributionEmail(modelName: string): string {
|
|
const lower = modelName.toLowerCase()
|
|
for (const { keywords, email } of MODEL_EMAIL_MAP) {
|
|
if (keywords.some(kw => lower.includes(kw))) {
|
|
return email
|
|
}
|
|
}
|
|
return 'noreply@anthropic.com'
|
|
}
|