forked from lobehub/lobe-chat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathai21.ts
40 lines (38 loc) · 961 Bytes
/
ai21.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
import { ModelProviderCard } from '@/types/llm';
// ref https://docs.ai21.com/reference/jamba-15-api-ref
const Ai21: ModelProviderCard = {
chatModels: [
{
contextWindowTokens: 256_000,
displayName: 'Jamba 1.5 Mini',
enabled: true,
functionCall: true,
id: 'jamba-1.5-mini',
pricing: {
input: 0.2,
output: 0.4,
},
},
{
contextWindowTokens: 256_000,
displayName: 'Jamba 1.5 Large',
enabled: true,
functionCall: true,
id: 'jamba-1.5-large',
pricing: {
input: 2,
output: 8,
},
},
],
checkModel: 'jamba-1.5-mini',
description: 'AI21 Labs 为企业构建基础模型和人工智能系统,加速生成性人工智能在生产中的应用。',
id: 'ai21',
modelsUrl: 'https://docs.ai21.com/reference',
name: 'Ai21Labs',
settings: {
sdkType: 'openai',
},
url: 'https://studio.ai21.com',
};
export default Ai21;