lobe-chat

Форк
0
154 строки · 5.0 Кб
1
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2

3
exports[`configRouter > getGlobalConfig > Model Provider env > OPENAI_MODEL_LIST > custom deletion, addition, and renaming of models 1`] = `
4
{
5
  "enabled": true,
6
  "enabledModels": [
7
    "llama",
8
    "claude-2",
9
    "gpt-4-0125-preview",
10
  ],
11
  "serverModelCards": [
12
    {
13
      "displayName": "llama",
14
      "enabled": true,
15
      "id": "llama",
16
    },
17
    {
18
      "displayName": "claude-2",
19
      "enabled": true,
20
      "id": "claude-2",
21
    },
22
    {
23
      "description": "最新的 GPT-4 Turbo 模型具备视觉功能。现在,视觉请求可以使用 JSON 模式和函数调用。 GPT-4 Turbo 是一个增强版本,为多模态任务提供成本效益高的支持。它在准确性和效率之间找到平衡,适合需要进行实时交互的应用程序场景。",
24
      "displayName": "gpt-4-32k",
25
      "enabled": true,
26
      "functionCall": true,
27
      "id": "gpt-4-0125-preview",
28
      "pricing": {
29
        "input": 10,
30
        "output": 30,
31
      },
32
      "tokens": 128000,
33
    },
34
  ],
35
}
36
`;
37

38
exports[`configRouter > getGlobalConfig > Model Provider env > OPENAI_MODEL_LIST > should work correct with gpt-4 1`] = `
39
[
40
  {
41
    "description": "GPT 3.5 Turbo,适用于各种文本生成和理解任务,Currently points to gpt-3.5-turbo-0125",
42
    "displayName": "GPT-3.5 Turbo 1106",
43
    "enabled": true,
44
    "functionCall": true,
45
    "id": "gpt-3.5-turbo-1106",
46
    "pricing": {
47
      "input": 1,
48
      "output": 2,
49
    },
50
    "tokens": 16385,
51
  },
52
  {
53
    "description": "GPT 3.5 Turbo,适用于各种文本生成和理解任务,Currently points to gpt-3.5-turbo-0125",
54
    "displayName": "GPT-3.5 Turbo",
55
    "enabled": true,
56
    "functionCall": true,
57
    "id": "gpt-3.5-turbo",
58
    "pricing": {
59
      "input": 0.5,
60
      "output": 1.5,
61
    },
62
    "tokens": 16385,
63
  },
64
  {
65
    "description": "GPT-4 提供了一个更大的上下文窗口,能够处理更长的文本输入,适用于需要广泛信息整合和数据分析的场景。",
66
    "displayName": "GPT-4",
67
    "enabled": true,
68
    "functionCall": true,
69
    "id": "gpt-4",
70
    "pricing": {
71
      "input": 30,
72
      "output": 60,
73
    },
74
    "tokens": 8192,
75
  },
76
  {
77
    "description": "GPT-4 提供了一个更大的上下文窗口,能够处理更长的文本输入,适用于需要广泛信息整合和数据分析的场景。",
78
    "displayName": "GPT-4 32K",
79
    "enabled": true,
80
    "functionCall": true,
81
    "id": "gpt-4-32k",
82
    "pricing": {
83
      "input": 60,
84
      "output": 120,
85
    },
86
    "tokens": 32768,
87
  },
88
  {
89
    "description": "最新的 GPT-4 Turbo 模型具备视觉功能。现在,视觉请求可以使用 JSON 模式和函数调用。 GPT-4 Turbo 是一个增强版本,为多模态任务提供成本效益高的支持。它在准确性和效率之间找到平衡,适合需要进行实时交互的应用程序场景。",
90
    "displayName": "GPT-4 Turbo Preview 1106",
91
    "enabled": true,
92
    "functionCall": true,
93
    "id": "gpt-4-1106-preview",
94
    "pricing": {
95
      "input": 10,
96
      "output": 30,
97
    },
98
    "tokens": 128000,
99
  },
100
  {
101
    "description": "最新的 GPT-4 Turbo 模型具备视觉功能。现在,视觉请求可以使用 JSON 模式和函数调用。 GPT-4 Turbo 是一个增强版本,为多模态任务提供成本效益高的支持。它在准确性和效率之间找到平衡,适合需要进行实时交互的应用程序场景。",
102
    "displayName": "GPT-4 Turbo Vision Preview",
103
    "enabled": true,
104
    "id": "gpt-4-vision-preview",
105
    "pricing": {
106
      "input": 10,
107
      "output": 30,
108
    },
109
    "tokens": 128000,
110
    "vision": true,
111
  },
112
]
113
`;
114

115
exports[`configRouter > getGlobalConfig > Model Provider env > OPENAI_MODEL_LIST > show the hidden model 1`] = `
116
{
117
  "description": "最新的 GPT-4 Turbo 模型具备视觉功能。现在,视觉请求可以使用 JSON 模式和函数调用。 GPT-4 Turbo 是一个增强版本,为多模态任务提供成本效益高的支持。它在准确性和效率之间找到平衡,适合需要进行实时交互的应用程序场景。",
118
  "displayName": "GPT-4 Turbo Preview 1106",
119
  "enabled": true,
120
  "functionCall": true,
121
  "id": "gpt-4-1106-preview",
122
  "pricing": {
123
    "input": 10,
124
    "output": 30,
125
  },
126
  "tokens": 128000,
127
}
128
`;
129

130
exports[`configRouter > getGlobalConfig > Model Provider env > OPENROUTER_MODEL_LIST > custom deletion, addition, and renaming of models 1`] = `
131
{
132
  "enabled": false,
133
  "enabledModels": [
134
    "meta-llama/llama-3.1-8b-instruct:free",
135
    "google/gemma-2-9b-it:free",
136
  ],
137
  "serverModelCards": [
138
    {
139
      "description": "LLaMA 3.1 提供多语言支持,是业界领先的生成模型之一。",
140
      "displayName": "Llama 3.1 8B (Free)",
141
      "enabled": true,
142
      "id": "meta-llama/llama-3.1-8b-instruct:free",
143
      "tokens": 32768,
144
    },
145
    {
146
      "description": "Gemma 2 是Google轻量化的开源文本模型系列。",
147
      "displayName": "Gemma 2 9B (Free)",
148
      "enabled": true,
149
      "id": "google/gemma-2-9b-it:free",
150
      "tokens": 8192,
151
    },
152
  ],
153
}
154
`;
155

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.