-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
Copy pathconstants.ai.ts
80 lines (77 loc) · 2.12 KB
/
constants.ai.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
import type { AIProviderDescriptor } from './plus/ai/models/model';
export type AIProviders =
| 'anthropic'
| 'deepseek'
| 'gemini'
| 'github'
| 'gitkraken'
| 'huggingface'
| 'openai'
| 'vscode'
| 'xai';
export type AIPrimaryProviders = Extract<AIProviders, 'gitkraken' | 'vscode'>;
export type AIProviderAndModel = `${string}:${string}`;
export type SupportedAIModels = `${Exclude<AIProviders, AIPrimaryProviders>}:${string}` | AIPrimaryProviders;
export const gitKrakenProviderDescriptor: AIProviderDescriptor<'gitkraken'> = {
id: 'gitkraken',
name: 'GitKraken AI (Preview)',
primary: true,
requiresAccount: true,
requiresUserKey: false,
} as const;
export const vscodeProviderDescriptor: AIProviderDescriptor<'vscode'> = {
id: 'vscode',
name: 'Copilot',
primary: true,
requiresAccount: false,
requiresUserKey: false,
} as const;
export const openAIProviderDescriptor: AIProviderDescriptor<'openai'> = {
id: 'openai',
name: 'OpenAI',
primary: false,
requiresAccount: true,
requiresUserKey: true,
} as const;
export const anthropicProviderDescriptor: AIProviderDescriptor<'anthropic'> = {
id: 'anthropic',
name: 'Anthropic',
primary: false,
requiresAccount: true,
requiresUserKey: true,
} as const;
export const geminiProviderDescriptor: AIProviderDescriptor<'gemini'> = {
id: 'gemini',
name: 'Google',
primary: false,
requiresAccount: true,
requiresUserKey: true,
} as const;
export const deepSeekProviderDescriptor: AIProviderDescriptor<'deepseek'> = {
id: 'deepseek',
name: 'DeepSeek',
primary: false,
requiresAccount: true,
requiresUserKey: true,
} as const;
export const xAIProviderDescriptor: AIProviderDescriptor<'xai'> = {
id: 'xai',
name: 'xAI',
primary: false,
requiresAccount: true,
requiresUserKey: true,
} as const;
export const githubProviderDescriptor: AIProviderDescriptor<'github'> = {
id: 'github',
name: 'GitHub Models',
primary: false,
requiresAccount: true,
requiresUserKey: true,
} as const;
export const huggingFaceProviderDescriptor: AIProviderDescriptor<'huggingface'> = {
id: 'huggingface',
name: 'Hugging Face',
primary: false,
requiresAccount: true,
requiresUserKey: true,
} as const;