forked from lobehub/lobe-chat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure.ts
69 lines (67 loc) · 2.2 KB
/
azure.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
import { ModelProviderCard } from '@/types/llm';
// ref: https://learn.microsoft.com/azure/ai-services/openai/concepts/models
const Azure: ModelProviderCard = {
chatModels: [
{
contextWindowTokens: 16_385,
deploymentName: 'gpt-35-turbo',
description:
'GPT 3.5 Turbo,OpenAI提供的高效模型,适用于聊天和文本生成任务,支持并行函数调用。',
displayName: 'GPT 3.5 Turbo',
enabled: true,
functionCall: true,
id: 'gpt-35-turbo',
maxOutput: 4096,
},
{
contextWindowTokens: 16_384,
deploymentName: 'gpt-35-turbo-16k',
description: 'GPT 3.5 Turbo 16k,高容量文本生成模型,适合复杂任务。',
displayName: 'GPT 3.5 Turbo',
functionCall: true,
id: 'gpt-35-turbo-16k',
},
{
contextWindowTokens: 128_000,
deploymentName: 'gpt-4-turbo',
description: 'GPT 4 Turbo,多模态模型,提供杰出的语言理解和生成能力,同时支持图像输入。',
displayName: 'GPT 4 Turbo',
enabled: true,
functionCall: true,
id: 'gpt-4',
vision: true,
},
{
contextWindowTokens: 128_000,
deploymentName: 'gpt-4o-mini',
description: 'GPT-4o Mini,小型高效模型,具备与GPT-4o相似的卓越性能。',
displayName: 'GPT 4o Mini',
enabled: true,
functionCall: true,
id: 'gpt-4o-mini',
vision: true,
},
{
contextWindowTokens: 128_000,
deploymentName: 'gpt-4o',
description: 'GPT-4o 是最新的多模态模型,结合高级文本和图像处理能力。',
displayName: 'GPT 4o',
enabled: true,
functionCall: true,
id: 'gpt-4o',
vision: true,
},
],
defaultShowBrowserRequest: true,
description:
'Azure 提供多种先进的AI模型,包括GPT-3.5和最新的GPT-4系列,支持多种数据类型和复杂任务,致力于安全、可靠和可持续的AI解决方案。',
id: 'azure',
modelsUrl: 'https://learn.microsoft.com/azure/ai-services/openai/concepts/models',
name: 'Azure',
settings: {
defaultShowBrowserRequest: true,
sdkType: 'azure',
},
url: 'https://azure.microsoft.com',
};
export default Azure;