@lobehub/chat 1.47.11 → 1.47.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/changelog/v1.json +18 -0
  3. package/package.json +2 -2
  4. package/src/app/(main)/{@nav/_layout/Desktop → _layout/Desktop/SideBar}/PinList/index.tsx +49 -24
  5. package/src/app/(main)/_layout/{Desktop.tsx → Desktop/index.tsx} +4 -4
  6. package/src/app/(main)/{@nav/_layout/Mobile.tsx → _layout/Mobile/NavBar.tsx} +3 -3
  7. package/src/app/(main)/_layout/{Mobile.tsx → Mobile/index.tsx} +4 -4
  8. package/src/app/(main)/layout.tsx +1 -2
  9. package/src/config/aiModels/ai360.ts +23 -27
  10. package/src/config/aiModels/giteeai.ts +61 -31
  11. package/src/config/aiModels/minimax.ts +19 -0
  12. package/src/config/aiModels/moonshot.ts +73 -1
  13. package/src/config/aiModels/taichu.ts +22 -1
  14. package/src/config/aiModels/upstage.ts +1 -1
  15. package/src/config/aiModels/zhipu.ts +13 -0
  16. package/src/config/modelProviders/ai21.ts +0 -2
  17. package/src/config/modelProviders/ai360.ts +22 -26
  18. package/src/config/modelProviders/anthropic.ts +1 -0
  19. package/src/config/modelProviders/giteeai.ts +58 -32
  20. package/src/config/modelProviders/google.ts +2 -0
  21. package/src/config/modelProviders/hunyuan.ts +0 -2
  22. package/src/config/modelProviders/mistral.ts +2 -0
  23. package/src/config/modelProviders/moonshot.ts +2 -0
  24. package/src/config/modelProviders/spark.ts +0 -2
  25. package/src/config/modelProviders/taichu.ts +15 -10
  26. package/src/config/modelProviders/upstage.ts +1 -3
  27. package/src/config/modelProviders/zeroone.ts +5 -1
  28. package/src/config/modelProviders/zhipu.ts +17 -1
  29. package/src/layout/GlobalProvider/StoreInitialization.tsx +0 -1
  30. package/src/libs/agent-runtime/ai360/index.ts +24 -0
  31. package/src/libs/agent-runtime/anthropic/index.ts +36 -0
  32. package/src/libs/agent-runtime/baichuan/index.ts +28 -0
  33. package/src/libs/agent-runtime/deepseek/index.ts +17 -0
  34. package/src/libs/agent-runtime/fireworksai/index.ts +22 -0
  35. package/src/libs/agent-runtime/giteeai/index.ts +28 -0
  36. package/src/libs/agent-runtime/google/index.ts +40 -1
  37. package/src/libs/agent-runtime/groq/index.ts +29 -0
  38. package/src/libs/agent-runtime/huggingface/index.ts +37 -0
  39. package/src/libs/agent-runtime/internlm/index.ts +17 -0
  40. package/src/libs/agent-runtime/minimax/index.ts +2 -2
  41. package/src/libs/agent-runtime/mistral/index.ts +26 -0
  42. package/src/libs/agent-runtime/moonshot/index.ts +18 -0
  43. package/src/libs/agent-runtime/qwen/index.ts +25 -0
  44. package/src/libs/agent-runtime/sensenova/index.ts +28 -0
  45. package/src/libs/agent-runtime/siliconcloud/index.ts +34 -0
  46. package/src/libs/agent-runtime/stepfun/index.ts +25 -0
  47. package/src/libs/agent-runtime/xai/index.ts +18 -0
  48. package/src/libs/agent-runtime/zeroone/index.ts +17 -0
  49. package/src/libs/agent-runtime/zhipu/index.ts +35 -0
  50. package/src/app/(main)/@nav/default.tsx +0 -10
  51. package/src/app/(main)/_layout/type.ts +0 -6
  52. /package/src/app/(main)/{@nav/_layout/Desktop → _layout/Desktop/SideBar}/Avatar.test.tsx +0 -0
  53. /package/src/app/(main)/{@nav/_layout/Desktop → _layout/Desktop/SideBar}/Avatar.tsx +0 -0
  54. /package/src/app/(main)/{@nav/_layout/Desktop → _layout/Desktop/SideBar}/BottomActions.tsx +0 -0
  55. /package/src/app/(main)/{@nav/_layout/Desktop → _layout/Desktop/SideBar}/TopActions.test.tsx +0 -0
  56. /package/src/app/(main)/{@nav/_layout/Desktop → _layout/Desktop/SideBar}/TopActions.tsx +0 -0
  57. /package/src/app/(main)/{@nav/_layout/Desktop → _layout/Desktop/SideBar}/index.tsx +0 -0
package/CHANGELOG.md CHANGED
@@ -2,6 +2,56 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 1.47.13](https://github.com/lobehub/lobe-chat/compare/v1.47.12...v1.47.13)
6
+
7
+ <sup>Released on **2025-01-21**</sup>
8
+
9
+ #### 💄 Styles
10
+
11
+ - **misc**: Add `ModelFetcher` for supported providers.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### Styles
19
+
20
+ - **misc**: Add `ModelFetcher` for supported providers, closes [#5316](https://github.com/lobehub/lobe-chat/issues/5316) [#252](https://github.com/lobehub/lobe-chat/issues/252) ([a189c81](https://github.com/lobehub/lobe-chat/commit/a189c81))
21
+
22
+ </details>
23
+
24
+ <div align="right">
25
+
26
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
27
+
28
+ </div>
29
+
30
+ ### [Version 1.47.12](https://github.com/lobehub/lobe-chat/compare/v1.47.11...v1.47.12)
31
+
32
+ <sup>Released on **2025-01-21**</sup>
33
+
34
+ #### 💄 Styles
35
+
36
+ - **misc**: Refactor `[@nav](https://github.com/nav)` layout and improve pin list style.
37
+
38
+ <br/>
39
+
40
+ <details>
41
+ <summary><kbd>Improvements and Fixes</kbd></summary>
42
+
43
+ #### Styles
44
+
45
+ - **misc**: Refactor `[@nav](https://github.com/nav)` layout and improve pin list style, closes [#5533](https://github.com/lobehub/lobe-chat/issues/5533) ([cc8a7f4](https://github.com/lobehub/lobe-chat/commit/cc8a7f4))
46
+
47
+ </details>
48
+
49
+ <div align="right">
50
+
51
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
52
+
53
+ </div>
54
+
5
55
  ### [Version 1.47.11](https://github.com/lobehub/lobe-chat/compare/v1.47.10...v1.47.11)
6
56
 
7
57
  <sup>Released on **2025-01-21**</sup>
package/changelog/v1.json CHANGED
@@ -1,4 +1,22 @@
1
1
  [
2
+ {
3
+ "children": {
4
+ "improvements": [
5
+ "Add ModelFetcher for supported providers."
6
+ ]
7
+ },
8
+ "date": "2025-01-21",
9
+ "version": "1.47.13"
10
+ },
11
+ {
12
+ "children": {
13
+ "improvements": [
14
+ "Refactor [@nav](https://github.com/nav) layout and improve pin list style."
15
+ ]
16
+ },
17
+ "date": "2025-01-21",
18
+ "version": "1.47.12"
19
+ },
2
20
  {
3
21
  "children": {
4
22
  "improvements": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.47.11",
3
+ "version": "1.47.13",
4
4
  "description": "Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.",
5
5
  "keywords": [
6
6
  "framework",
@@ -207,7 +207,7 @@
207
207
  "react-lazy-load": "^4.0.1",
208
208
  "react-pdf": "^9.2.1",
209
209
  "react-rnd": "^10.4.14",
210
- "react-scan": "^0.0.54",
210
+ "react-scan": "^0.1.0",
211
211
  "react-virtuoso": "^4.12.3",
212
212
  "react-wrap-balancer": "^1.1.1",
213
213
  "remark": "^15.0.1",
@@ -21,9 +21,29 @@ const useStyles = createStyles(({ css, token }) => ({
21
21
  box-shadow: 0 0 0 2px ${token.colorPrimary};
22
22
  }
23
23
  `,
24
- avatarActive: css`
25
- background: ${token.colorFillQuaternary};
26
- box-shadow: 0 0 0 2px ${token.colorPrimaryBorder};
24
+ ink: css`
25
+ &::before {
26
+ content: '';
27
+
28
+ position: absolute;
29
+ inset-block-start: 50%;
30
+ inset-inline: -${12 + 3}px;
31
+ transform: translateY(-50%);
32
+
33
+ width: 4px;
34
+ height: 0;
35
+ border-radius: 50px;
36
+
37
+ background: ${token.colorPrimary};
38
+
39
+ transition: height 150ms ease-out;
40
+ }
41
+ `,
42
+ inkActive: css`
43
+ &::before {
44
+ width: 8px;
45
+ height: 32px;
46
+ }
27
47
  `,
28
48
  }));
29
49
 
@@ -61,28 +81,33 @@ const PinList = () => {
61
81
  <Divider style={{ margin: '8px 12px' }} />
62
82
  <Flexbox flex={1} gap={12} height={'100%'}>
63
83
  {list.slice(0, 9).map((item, index) => (
64
- <Tooltip
65
- key={item.id}
66
- placement={'right'}
67
- title={
68
- <Flexbox gap={8} horizontal>
69
- {sessionHelpers.getTitle(item.meta)}
70
- <HotKeys inverseTheme keys={`ctrl+${index + 1}`} />
84
+ <Flexbox key={item.id} style={{ position: 'relative' }}>
85
+ <Tooltip
86
+ placement={'right'}
87
+ title={
88
+ <Flexbox gap={8} horizontal>
89
+ {sessionHelpers.getTitle(item.meta)}
90
+ <HotKeys inverseTheme keys={`ctrl+${index + 1}`} />
91
+ </Flexbox>
92
+ }
93
+ >
94
+ <Flexbox
95
+ className={cx(
96
+ styles.ink,
97
+ isPinned && activeId === item.id ? styles.inkActive : undefined,
98
+ )}
99
+ >
100
+ <Avatar
101
+ avatar={sessionHelpers.getAvatar(item.meta)}
102
+ background={item.meta.backgroundColor}
103
+ className={cx(styles.avatar)}
104
+ onClick={() => {
105
+ switchAgent(item.id);
106
+ }}
107
+ />
71
108
  </Flexbox>
72
- }
73
- >
74
- <Avatar
75
- avatar={sessionHelpers.getAvatar(item.meta)}
76
- background={item.meta.backgroundColor}
77
- className={cx(
78
- styles.avatar,
79
- isPinned && activeId === item.id ? styles.avatarActive : undefined,
80
- )}
81
- onClick={() => {
82
- switchAgent(item.id);
83
- }}
84
- />
85
- </Tooltip>
109
+ </Tooltip>
110
+ </Flexbox>
86
111
  ))}
87
112
  </Flexbox>
88
113
  </>
@@ -2,18 +2,18 @@
2
2
 
3
3
  import { useTheme } from 'antd-style';
4
4
  import dynamic from 'next/dynamic';
5
- import { memo } from 'react';
5
+ import { PropsWithChildren, memo } from 'react';
6
6
  import { Flexbox } from 'react-layout-kit';
7
7
 
8
8
  import { BANNER_HEIGHT } from '@/features/AlertBanner/CloudBanner';
9
9
  import { usePlatform } from '@/hooks/usePlatform';
10
10
  import { featureFlagsSelectors, useServerConfigStore } from '@/store/serverConfig';
11
11
 
12
- import { LayoutProps } from './type';
12
+ import SideBar from './SideBar';
13
13
 
14
14
  const CloudBanner = dynamic(() => import('@/features/AlertBanner/CloudBanner'));
15
15
 
16
- const Layout = memo<LayoutProps>(({ children, nav }) => {
16
+ const Layout = memo<PropsWithChildren>(({ children }) => {
17
17
  const { isPWA } = usePlatform();
18
18
  const theme = useTheme();
19
19
 
@@ -31,7 +31,7 @@ const Layout = memo<LayoutProps>(({ children, nav }) => {
31
31
  }}
32
32
  width={'100%'}
33
33
  >
34
- {nav}
34
+ <SideBar />
35
35
  {children}
36
36
  </Flexbox>
37
37
  </>
@@ -27,7 +27,7 @@ const useStyles = createStyles(({ css, token }) => ({
27
27
  `,
28
28
  }));
29
29
 
30
- const Nav = memo(() => {
30
+ const NavBar = memo(() => {
31
31
  const { t } = useTranslation('common');
32
32
  const { styles } = useStyles();
33
33
  const activeKey = useActiveTabKey();
@@ -75,6 +75,6 @@ const Nav = memo(() => {
75
75
  return <MobileTabBar activeKey={activeKey} className={styles.container} items={items} />;
76
76
  });
77
77
 
78
- Nav.displayName = 'MobileNav';
78
+ NavBar.displayName = 'NavBar';
79
79
 
80
- export default Nav;
80
+ export default NavBar;
@@ -3,12 +3,12 @@
3
3
  import dynamic from 'next/dynamic';
4
4
  import { usePathname } from 'next/navigation';
5
5
  import qs from 'query-string';
6
- import { memo } from 'react';
6
+ import { PropsWithChildren, memo } from 'react';
7
7
 
8
8
  import { useQuery } from '@/hooks/useQuery';
9
9
  import { featureFlagsSelectors, useServerConfigStore } from '@/store/serverConfig';
10
10
 
11
- import { LayoutProps } from './type';
11
+ import NavBar from './NavBar';
12
12
 
13
13
  const CloudBanner = dynamic(() => import('@/features/AlertBanner/CloudBanner'));
14
14
  const MOBILE_NAV_ROUTES = new Set([
@@ -21,7 +21,7 @@ const MOBILE_NAV_ROUTES = new Set([
21
21
  '/me',
22
22
  ]);
23
23
 
24
- const Layout = memo(({ children, nav }: LayoutProps) => {
24
+ const Layout = memo(({ children }: PropsWithChildren) => {
25
25
  const { showMobileWorkspace } = useQuery();
26
26
  const pathname = usePathname();
27
27
  const { url } = qs.parseUrl(pathname);
@@ -33,7 +33,7 @@ const Layout = memo(({ children, nav }: LayoutProps) => {
33
33
  <>
34
34
  {showCloudPromotion && <CloudBanner mobile />}
35
35
  {children}
36
- {showNav && nav}
36
+ {showNav && <NavBar />}
37
37
  </>
38
38
  );
39
39
  });
@@ -2,9 +2,8 @@ import ServerLayout from '@/components/server/ServerLayout';
2
2
 
3
3
  import Desktop from './_layout/Desktop';
4
4
  import Mobile from './_layout/Mobile';
5
- import { LayoutProps } from './_layout/type';
6
5
 
7
- const MainLayout = ServerLayout<LayoutProps>({ Desktop, Mobile });
6
+ const MainLayout = ServerLayout({ Desktop, Mobile });
8
7
 
9
8
  MainLayout.displayName = 'MainLayout';
10
9
 
@@ -2,16 +2,29 @@ import { AIChatModelCard } from '@/types/aiModel';
2
2
 
3
3
  const ai360ChatModels: AIChatModelCard[] = [
4
4
  {
5
- contextWindowTokens: 8192,
5
+ contextWindowTokens: 8000,
6
6
  description:
7
- '360GPT2 Pro 是 360 公司推出的高级自然语言处理模型,具备卓越的文本生成和理解能力,尤其在生成与创作领域表现出色,能够处理复杂的语言转换和角色演绎任务。',
7
+ '360gpt2-o1 使用树搜索构建思维链,并引入了反思机制,使用强化学习训练,模型具备自我反思与纠错的能力。',
8
+ displayName: '360GPT2 o1',
9
+ enabled: true,
10
+ id: '360gpt2-o1',
11
+ pricing: {
12
+ currency: 'CNY',
13
+ input: 20,
14
+ output: 50,
15
+ },
16
+ type: 'chat',
17
+ },
18
+ {
19
+ contextWindowTokens: 8000,
20
+ description:
21
+ '360智脑系列效果最好的主力千亿级大模型,广泛适用于各领域复杂任务场景。',
8
22
  displayName: '360GPT2 Pro',
9
23
  enabled: true,
10
24
  id: '360gpt2-pro',
11
- maxOutput: 7000,
12
25
  pricing: {
13
26
  currency: 'CNY',
14
- input: 5,
27
+ input: 2,
15
28
  output: 5,
16
29
  },
17
30
  type: 'chat',
@@ -20,46 +33,29 @@ const ai360ChatModels: AIChatModelCard[] = [
20
33
  abilities: {
21
34
  functionCall: true,
22
35
  },
23
- contextWindowTokens: 8192,
36
+ contextWindowTokens: 8000,
24
37
  description:
25
- '360GPT Pro 作为 360 AI 模型系列的重要成员,以高效的文本处理能力满足多样化的自然语言应用场景,支持长文本理解和多轮对话等功能。',
38
+ '360智脑系列效果最好的主力千亿级大模型,广泛适用于各领域复杂任务场景。',
26
39
  displayName: '360GPT Pro',
27
40
  enabled: true,
28
41
  id: '360gpt-pro',
29
- maxOutput: 7000,
30
42
  pricing: {
31
43
  currency: 'CNY',
32
- input: 5,
44
+ input: 2,
33
45
  output: 5,
34
46
  },
35
47
  type: 'chat',
36
48
  },
37
49
  {
38
- contextWindowTokens: 8192,
50
+ contextWindowTokens: 7000,
39
51
  description:
40
- '360GPT Turbo 提供强大的计算和对话能力,具备出色的语义理解和生成效率,是企业和开发者理想的智能助理解决方案。',
52
+ '兼顾性能和效果的百亿级大模型,适合对性能/成本要求较高 的场景。',
41
53
  displayName: '360GPT Turbo',
42
54
  enabled: true,
43
55
  id: '360gpt-turbo',
44
- maxOutput: 7000,
45
56
  pricing: {
46
57
  currency: 'CNY',
47
- input: 2,
48
- output: 2,
49
- },
50
- type: 'chat',
51
- },
52
- {
53
- contextWindowTokens: 8192,
54
- description:
55
- '360GPT Turbo Responsibility 8K 强调语义安全和责任导向,专为对内容安全有高度要求的应用场景设计,确保用户体验的准确性与稳健性。',
56
- displayName: '360GPT Turbo Responsibility 8K',
57
- enabled: true,
58
- id: '360gpt-turbo-responsibility-8k',
59
- maxOutput: 2048,
60
- pricing: {
61
- currency: 'CNY',
62
- input: 2,
58
+ input: 1,
63
59
  output: 2,
64
60
  },
65
61
  type: 'chat',
@@ -7,24 +7,35 @@ const giteeaiChatModels: AIChatModelCard[] = [
7
7
  },
8
8
  contextWindowTokens: 16_000,
9
9
  description:
10
- 'Qwen2.5-72B-Instruct 支持 16k 上下文, 生成长文本超过 8K 。支持 function call 与外部系统无缝交互,极大提升了灵活性和扩展性。模型知识明显增加,并且大大提高了编码和数学能力, 多语言支持超过 29 种',
10
+ 'Qwen2.5-72B-Instruct 支持 16k 上下文, 生成长文本超过 8K 。支持 function call 与外部系统无缝交互,极大提升了灵活性和扩展性。模型知识明显增加,并且大大提高了编码和数学能力, 多语言支持超过 29 种',
11
11
  displayName: 'Qwen2.5 72B Instruct',
12
12
  enabled: true,
13
13
  id: 'Qwen2.5-72B-Instruct',
14
14
  type: 'chat',
15
15
  },
16
16
  {
17
+ contextWindowTokens: 32_000,
17
18
  description:
18
- 'Qwen2.5-Coder-32B-Instruct 是一款专为代码生成、代码理解和高效开发场景设计的大型语言模型,采用了业界领先的32B参数规模,能够满足多样化的编程需求。',
19
- displayName: 'Qwen2.5 Coder 32B Instruct',
19
+ 'Qwen2.5-32B-Instruct 是一款 320 亿参数的大语言模型,性能表现均衡,优化中文和多语言场景,支持智能问答、内容生成等应用。',
20
+ displayName: 'Qwen2.5 32B Instruct',
20
21
  enabled: true,
21
- id: 'Qwen2.5-Coder-32B-Instruct',
22
+ id: 'Qwen2.5-32B-Instruct',
23
+ type: 'chat',
24
+ },
25
+ {
26
+ contextWindowTokens: 24_000,
27
+ description:
28
+ 'Qwen2.5-14B-Instruct 是一款 140 亿参数的大语言模型,性能表现优秀,优化中文和多语言场景,支持智能问答、内容生成等应用。',
29
+ displayName: 'Qwen2.5 14B Instruct',
30
+ enabled: true,
31
+ id: 'Qwen2.5-14B-Instruct',
22
32
  type: 'chat',
23
33
  },
24
34
  {
25
35
  abilities: {
26
36
  functionCall: true,
27
37
  },
38
+ contextWindowTokens: 32_000,
28
39
  description:
29
40
  'Qwen2.5-7B-Instruct 是一款 70 亿参数的大语言模型,支持 function call 与外部系统无缝交互,极大提升了灵活性和扩展性。优化中文和多语言场景,支持智能问答、内容生成等应用。',
30
41
  displayName: 'Qwen2.5 7B Instruct',
@@ -33,52 +44,56 @@ const giteeaiChatModels: AIChatModelCard[] = [
33
44
  type: 'chat',
34
45
  },
35
46
  {
47
+ contextWindowTokens: 32_000,
36
48
  description:
37
- 'Qwen2.5-32B-Instruct 是一款 320 亿参数的大语言模型,性能表现均衡,优化中文和多语言场景,支持智能问答、内容生成等应用。',
38
- displayName: 'Qwen2.5 32B Instruct',
39
- enabled: true,
40
- id: 'Qwen2.5-32B-Instruct',
49
+ 'Qwen2 Qwen 模型的最新系列,支持 128k 上下文,对比当前最优的开源模型,Qwen2-72B 在自然语言理解、知识、代码、数学及多语言等多项能力上均显著超越当前领先的模型。',
50
+ displayName: 'Qwen2 72B Instruct',
51
+ id: 'Qwen2-72B-Instruct',
41
52
  type: 'chat',
42
53
  },
43
54
  {
55
+ contextWindowTokens: 24_000,
44
56
  description:
45
- 'Qwen2.5-14B-Instruct 是一款 140 亿参数的大语言模型,性能表现优秀,优化中文和多语言场景,支持智能问答、内容生成等应用。',
46
- displayName: 'Qwen2.5 14B Instruct',
47
- enabled: true,
48
- id: 'Qwen2.5-14B-Instruct',
57
+ 'Qwen2 Qwen 模型的最新系列,能够超越同等规模的最优开源模型甚至更大规模的模型,Qwen2 7B 在多个评测上取得显著的优势,尤其是代码及中文理解上。',
58
+ displayName: 'Qwen2 7B Instruct',
59
+ id: 'Qwen2-7B-Instruct',
49
60
  type: 'chat',
50
61
  },
51
62
  {
52
- contextWindowTokens: 6000,
63
+ contextWindowTokens: 32_000,
53
64
  description:
54
- 'Qwen2 是 Qwen 模型的最新系列,支持 128k 上下文,对比当前最优的开源模型,Qwen2-72B 在自然语言理解、知识、代码、数学及多语言等多项能力上均显著超越当前领先的模型。',
55
- displayName: 'Qwen2 72B Instruct',
56
- id: 'Qwen2-72B-Instruct',
65
+ 'Qwen2.5-Coder-32B-Instruct 是一款专为代码生成、代码理解和高效开发场景设计的大型语言模型,采用了业界领先的32B参数规模,能够满足多样化的编程需求。',
66
+ displayName: 'Qwen2.5 Coder 32B Instruct',
67
+ enabled: true,
68
+ id: 'Qwen2.5-Coder-32B-Instruct',
57
69
  type: 'chat',
58
70
  },
59
71
  {
60
- contextWindowTokens: 32_000,
72
+ contextWindowTokens: 24_000,
61
73
  description:
62
- 'Qwen2 是 Qwen 模型的最新系列,能够超越同等规模的最优开源模型甚至更大规模的模型,Qwen2 7B 在多个评测上取得显著的优势,尤其是代码及中文理解上。',
63
- displayName: 'Qwen2 7B Instruct',
64
- id: 'Qwen2-7B-Instruct',
74
+ 'Qwen2.5-Coder-14B-Instruct 是一款基于大规模预训练的编程指令模型,具备强大的代码理解和生成能力,能够高效地处理各种编程任务,特别适合智能代码编写、自动化脚本生成和编程问题解答。',
75
+ displayName: 'Qwen2.5 Coder 14B Instruct',
76
+ enabled: true,
77
+ id: 'Qwen2.5-Coder-14B-Instruct',
65
78
  type: 'chat',
66
79
  },
67
80
  {
68
81
  abilities: {
69
82
  vision: true,
70
83
  },
84
+ contextWindowTokens: 32_000,
71
85
  description:
72
- 'InternVL2-8B 是一款强大的视觉语言模型,支持图像与文本的多模态处理,能够精确识别图像内容并生成相关描述或回答。',
73
- displayName: 'InternVL2 8B',
86
+ 'Qwen2-VL-72B是一款强大的视觉语言模型,支持图像与文本的多模态处理,能够精确识别图像内容并生成相关描述或回答。',
87
+ displayName: 'Qwen2 VL 72B',
74
88
  enabled: true,
75
- id: 'InternVL2-8B',
89
+ id: 'Qwen2-VL-72B',
76
90
  type: 'chat',
77
91
  },
78
92
  {
79
93
  abilities: {
80
94
  vision: true,
81
95
  },
96
+ contextWindowTokens: 32_000,
82
97
  description:
83
98
  'InternVL2.5-26B 是一款强大的视觉语言模型,支持图像与文本的多模态处理,能够精确识别图像内容并生成相关描述或回答。',
84
99
  displayName: 'InternVL2.5 26B',
@@ -86,6 +101,18 @@ const giteeaiChatModels: AIChatModelCard[] = [
86
101
  id: 'InternVL2.5-26B',
87
102
  type: 'chat',
88
103
  },
104
+ {
105
+ abilities: {
106
+ vision: true,
107
+ },
108
+ contextWindowTokens: 32_000,
109
+ description:
110
+ 'InternVL2-8B 是一款强大的视觉语言模型,支持图像与文本的多模态处理,能够精确识别图像内容并生成相关描述或回答。',
111
+ displayName: 'InternVL2 8B',
112
+ enabled: true,
113
+ id: 'InternVL2-8B',
114
+ type: 'chat',
115
+ },
89
116
  {
90
117
  contextWindowTokens: 32_000,
91
118
  description:
@@ -104,25 +131,28 @@ const giteeaiChatModels: AIChatModelCard[] = [
104
131
  id: 'Yi-34B-Chat',
105
132
  type: 'chat',
106
133
  },
134
+ /*
135
+ // not compatible with OpenAI SDK
107
136
  {
108
- contextWindowTokens: 8000,
109
137
  description:
110
- 'DeepSeek Coder 33B 是一个代码语言模型, 基于 2 万亿数据训练而成,其中 87% 为代码, 13% 为中英文语言。模型引入 16K 窗口大小和填空任务,提供项目级别的代码补全和片段填充功能。',
111
- displayName: 'DeepSeek Coder 33B Instruct',
138
+ '代码小浣熊是基于商汤大语言模型的软件智能研发助手,覆盖软件需求分析、架构设计、代码编写、软件测试等环节,满足用户代码编写、编程学习等各类需求。代码小浣熊支持 Python、Java、JavaScript、C++、Go、SQL 90+主流编程语言和 VS Code、IntelliJ IDEA 等主流 IDE。在实际应用中,代码小浣熊可帮助开发者提升编程效率超 50%。',
139
+ displayName: 'code raccoon v1',
112
140
  enabled: true,
113
- id: 'deepseek-coder-33B-instruct',
141
+ id: 'code-raccoon-v1',
114
142
  type: 'chat',
115
143
  },
144
+ */
116
145
  {
146
+ contextWindowTokens: 8000,
117
147
  description:
118
- '代码小浣熊是基于商汤大语言模型的软件智能研发助手,覆盖软件需求分析、架构设计、代码编写、软件测试等环节,满足用户代码编写、编程学习等各类需求。代码小浣熊支持 Python、Java、JavaScript、C++、Go、SQL 90+主流编程语言和 VS Code、IntelliJ IDEA 等主流 IDE。在实际应用中,代码小浣熊可帮助开发者提升编程效率超 50%。',
119
- displayName: 'code raccoon v1',
148
+ 'DeepSeek Coder 33B 是一个代码语言模型, 基于 2 万亿数据训练而成,其中 87% 为代码, 13% 为中英文语言。模型引入 16K 窗口大小和填空任务,提供项目级别的代码补全和片段填充功能。',
149
+ displayName: 'DeepSeek Coder 33B Instruct',
120
150
  enabled: true,
121
- id: 'code-raccoon-v1',
151
+ id: 'deepseek-coder-33B-instruct',
122
152
  type: 'chat',
123
153
  },
124
154
  {
125
- contextWindowTokens: 40_000,
155
+ contextWindowTokens: 32_000,
126
156
  description:
127
157
  'CodeGeeX4-ALL-9B 是一个多语言代码生成模型,支持包括代码补全和生成、代码解释器、网络搜索、函数调用、仓库级代码问答在内的全面功能,覆盖软件开发的各种场景。是参数少于 10B 的顶尖代码生成模型。',
128
158
  displayName: 'CodeGeeX4 All 9B',
@@ -1,6 +1,25 @@
1
1
  import { AIChatModelCard } from '@/types/aiModel';
2
2
 
3
3
  const minimaxChatModels: AIChatModelCard[] = [
4
+ {
5
+ abilities: {
6
+ functionCall: true,
7
+ vision: true,
8
+ },
9
+ contextWindowTokens: 1_000_192,
10
+ description: '在 MiniMax-01系列模型中,我们做了大胆创新:首次大规模实现线性注意力机制,传统 Transformer架构不再是唯一的选择。这个模型的参数量高达4560亿,其中单次激活459亿。模型综合性能比肩海外顶尖模型,同时能够高效处理全球最长400万token的上下文,是GPT-4o的32倍,Claude-3.5-Sonnet的20倍。',
11
+ displayName: 'MiniMax-Text-01',
12
+ enabled: true,
13
+ id: 'MiniMax-Text-01',
14
+ maxOutput: 1_000_192,
15
+ pricing: {
16
+ currency: 'CNY',
17
+ input: 10,
18
+ output: 10,
19
+ },
20
+ releasedAt: '2025-01-15',
21
+ type: 'chat',
22
+ },
4
23
  {
5
24
  abilities: {
6
25
  functionCall: true,
@@ -11,6 +11,11 @@ const moonshotChatModels: AIChatModelCard[] = [
11
11
  displayName: 'Moonshot V1 8K',
12
12
  enabled: true,
13
13
  id: 'moonshot-v1-8k',
14
+ pricing: {
15
+ currency: 'CNY',
16
+ input: 12,
17
+ output: 12,
18
+ },
14
19
  type: 'chat',
15
20
  },
16
21
  {
@@ -23,18 +28,85 @@ const moonshotChatModels: AIChatModelCard[] = [
23
28
  displayName: 'Moonshot V1 32K',
24
29
  enabled: true,
25
30
  id: 'moonshot-v1-32k',
31
+ pricing: {
32
+ currency: 'CNY',
33
+ input: 24,
34
+ output: 24,
35
+ },
26
36
  type: 'chat',
27
37
  },
28
38
  {
29
39
  abilities: {
30
40
  functionCall: true,
31
41
  },
32
- contextWindowTokens: 128_000,
42
+ contextWindowTokens: 131_072,
33
43
  description:
34
44
  'Moonshot V1 128K 是一款拥有超长上下文处理能力的模型,适用于生成超长文本,满足复杂的生成任务需求,能够处理多达128,000个tokens的内容,非常适合科研、学术和大型文档生成等应用场景。',
35
45
  displayName: 'Moonshot V1 128K',
36
46
  enabled: true,
37
47
  id: 'moonshot-v1-128k',
48
+ pricing: {
49
+ currency: 'CNY',
50
+ input: 60,
51
+ output: 60,
52
+ },
53
+ type: 'chat',
54
+ },
55
+ {
56
+ abilities: {
57
+ functionCall: true,
58
+ vision: true,
59
+ },
60
+ contextWindowTokens: 8192,
61
+ description:
62
+ 'Kimi 视觉模型(包括 moonshot-v1-8k-vision-preview/moonshot-v1-32k-vision-preview/moonshot-v1-128k-vision-preview 等)能够理解图片内容,包括图片文字、图片颜色和物体形状等内容。',
63
+ displayName: 'Moonshot V1 8K Vision Preview',
64
+ enabled: true,
65
+ id: 'moonshot-v1-8k-vision-preview',
66
+ pricing: {
67
+ currency: 'CNY',
68
+ input: 12,
69
+ output: 12,
70
+ },
71
+ releasedAt: '2025-01-14',
72
+ type: 'chat',
73
+ },
74
+ {
75
+ abilities: {
76
+ functionCall: true,
77
+ vision: true,
78
+ },
79
+ contextWindowTokens: 32_768,
80
+ description:
81
+ 'Kimi 视觉模型(包括 moonshot-v1-8k-vision-preview/moonshot-v1-32k-vision-preview/moonshot-v1-128k-vision-preview 等)能够理解图片内容,包括图片文字、图片颜色和物体形状等内容。',
82
+ displayName: 'Moonshot V1 32K Vision Preview',
83
+ enabled: true,
84
+ id: 'moonshot-v1-32k-vision-preview',
85
+ pricing: {
86
+ currency: 'CNY',
87
+ input: 24,
88
+ output: 24,
89
+ },
90
+ releasedAt: '2025-01-14',
91
+ type: 'chat',
92
+ },
93
+ {
94
+ abilities: {
95
+ functionCall: true,
96
+ vision: true,
97
+ },
98
+ contextWindowTokens: 131_072,
99
+ description:
100
+ 'Kimi 视觉模型(包括 moonshot-v1-8k-vision-preview/moonshot-v1-32k-vision-preview/moonshot-v1-128k-vision-preview 等)能够理解图片内容,包括图片文字、图片颜色和物体形状等内容。',
101
+ displayName: 'Moonshot V1 128K Vision Preview',
102
+ enabled: true,
103
+ id: 'moonshot-v1-128k-vision-preview',
104
+ pricing: {
105
+ currency: 'CNY',
106
+ input: 60,
107
+ output: 60,
108
+ },
109
+ releasedAt: '2025-01-14',
38
110
  type: 'chat',
39
111
  },
40
112
  ];