@lobehub/chat 1.102.1 → 1.102.3
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.
- package/CHANGELOG.md +50 -0
- package/Dockerfile.pglite +2 -0
- package/apps/desktop/src/main/controllers/NotificationCtr.ts +156 -0
- package/changelog/v1.json +18 -0
- package/locales/ar/electron.json +3 -0
- package/locales/ar/models.json +9 -0
- package/locales/bg-BG/electron.json +3 -0
- package/locales/bg-BG/models.json +9 -0
- package/locales/de-DE/electron.json +3 -0
- package/locales/de-DE/models.json +9 -0
- package/locales/en-US/electron.json +3 -0
- package/locales/en-US/models.json +9 -0
- package/locales/es-ES/electron.json +3 -0
- package/locales/es-ES/models.json +9 -0
- package/locales/fa-IR/electron.json +3 -0
- package/locales/fa-IR/models.json +9 -0
- package/locales/fr-FR/electron.json +3 -0
- package/locales/fr-FR/models.json +9 -0
- package/locales/it-IT/electron.json +3 -0
- package/locales/it-IT/models.json +9 -0
- package/locales/ja-JP/electron.json +3 -0
- package/locales/ja-JP/models.json +9 -0
- package/locales/ko-KR/electron.json +3 -0
- package/locales/ko-KR/models.json +9 -0
- package/locales/nl-NL/electron.json +3 -0
- package/locales/nl-NL/models.json +9 -0
- package/locales/pl-PL/electron.json +3 -0
- package/locales/pl-PL/models.json +9 -0
- package/locales/pt-BR/electron.json +3 -0
- package/locales/pt-BR/models.json +9 -0
- package/locales/ru-RU/electron.json +3 -0
- package/locales/ru-RU/models.json +9 -0
- package/locales/tr-TR/electron.json +3 -0
- package/locales/tr-TR/models.json +9 -0
- package/locales/vi-VN/electron.json +3 -0
- package/locales/vi-VN/models.json +9 -0
- package/locales/zh-CN/electron.json +3 -0
- package/locales/zh-CN/models.json +9 -0
- package/locales/zh-TW/electron.json +3 -0
- package/locales/zh-TW/models.json +9 -0
- package/package.json +1 -1
- package/packages/electron-client-ipc/src/events/index.ts +3 -1
- package/packages/electron-client-ipc/src/events/notification.ts +6 -0
- package/packages/electron-client-ipc/src/types/index.ts +1 -0
- package/packages/electron-client-ipc/src/types/notification.ts +12 -0
- package/src/libs/model-runtime/ModelRuntime.ts +0 -8
- package/src/locales/default/electron.ts +3 -0
- package/src/server/routers/async/caller.ts +0 -6
- package/src/services/electron/desktopNotification.ts +31 -0
- package/src/store/chat/slices/aiChat/actions/__tests__/generateAIChat.test.ts +1 -0
- package/src/store/chat/slices/aiChat/actions/generateAIChat.ts +36 -16
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,56 @@
|
|
2
2
|
|
3
3
|
# Changelog
|
4
4
|
|
5
|
+
### [Version 1.102.3](https://github.com/lobehub/lobe-chat/compare/v1.102.2...v1.102.3)
|
6
|
+
|
7
|
+
<sup>Released on **2025-07-22**</sup>
|
8
|
+
|
9
|
+
#### 🐛 Bug Fixes
|
10
|
+
|
11
|
+
- **misc**: Remove debug logging from ModelRuntime and async caller.
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
<details>
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
17
|
+
|
18
|
+
#### What's fixed
|
19
|
+
|
20
|
+
- **misc**: Remove debug logging from ModelRuntime and async caller, closes [#8525](https://github.com/lobehub/lobe-chat/issues/8525) ([dd1a635](https://github.com/lobehub/lobe-chat/commit/dd1a635))
|
21
|
+
|
22
|
+
</details>
|
23
|
+
|
24
|
+
<div align="right">
|
25
|
+
|
26
|
+
[](#readme-top)
|
27
|
+
|
28
|
+
</div>
|
29
|
+
|
30
|
+
### [Version 1.102.2](https://github.com/lobehub/lobe-chat/compare/v1.102.1...v1.102.2)
|
31
|
+
|
32
|
+
<sup>Released on **2025-07-22**</sup>
|
33
|
+
|
34
|
+
#### 💄 Styles
|
35
|
+
|
36
|
+
- **misc**: Add notification for desktop.
|
37
|
+
|
38
|
+
<br/>
|
39
|
+
|
40
|
+
<details>
|
41
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
42
|
+
|
43
|
+
#### Styles
|
44
|
+
|
45
|
+
- **misc**: Add notification for desktop, closes [#8523](https://github.com/lobehub/lobe-chat/issues/8523) ([4917d17](https://github.com/lobehub/lobe-chat/commit/4917d17))
|
46
|
+
|
47
|
+
</details>
|
48
|
+
|
49
|
+
<div align="right">
|
50
|
+
|
51
|
+
[](#readme-top)
|
52
|
+
|
53
|
+
</div>
|
54
|
+
|
5
55
|
### [Version 1.102.1](https://github.com/lobehub/lobe-chat/compare/v1.102.0...v1.102.1)
|
6
56
|
|
7
57
|
<sup>Released on **2025-07-21**</sup>
|
package/Dockerfile.pglite
CHANGED
@@ -55,6 +55,8 @@ ENV NEXT_PUBLIC_SENTRY_DSN="${NEXT_PUBLIC_SENTRY_DSN}" \
|
|
55
55
|
SENTRY_ORG="" \
|
56
56
|
SENTRY_PROJECT=""
|
57
57
|
|
58
|
+
ENV APP_URL="http://app.com"
|
59
|
+
|
58
60
|
# Posthog
|
59
61
|
ENV NEXT_PUBLIC_ANALYTICS_POSTHOG="${NEXT_PUBLIC_ANALYTICS_POSTHOG}" \
|
60
62
|
NEXT_PUBLIC_POSTHOG_HOST="${NEXT_PUBLIC_POSTHOG_HOST}" \
|
@@ -0,0 +1,156 @@
|
|
1
|
+
import {
|
2
|
+
DesktopNotificationResult,
|
3
|
+
ShowDesktopNotificationParams,
|
4
|
+
} from '@lobechat/electron-client-ipc';
|
5
|
+
import { Notification, app } from 'electron';
|
6
|
+
import { macOS, windows } from 'electron-is';
|
7
|
+
|
8
|
+
import { createLogger } from '@/utils/logger';
|
9
|
+
|
10
|
+
import { ControllerModule, ipcClientEvent } from './index';
|
11
|
+
|
12
|
+
const logger = createLogger('controllers:NotificationCtr');
|
13
|
+
|
14
|
+
export default class NotificationCtr extends ControllerModule {
|
15
|
+
/**
|
16
|
+
* 在应用准备就绪后设置桌面通知
|
17
|
+
*/
|
18
|
+
afterAppReady() {
|
19
|
+
this.setupNotifications();
|
20
|
+
}
|
21
|
+
|
22
|
+
/**
|
23
|
+
* 设置桌面通知权限和配置
|
24
|
+
*/
|
25
|
+
private setupNotifications() {
|
26
|
+
logger.debug('Setting up desktop notifications');
|
27
|
+
|
28
|
+
try {
|
29
|
+
// 检查通知支持
|
30
|
+
if (!Notification.isSupported()) {
|
31
|
+
logger.warn('Desktop notifications are not supported on this platform');
|
32
|
+
return;
|
33
|
+
}
|
34
|
+
|
35
|
+
// 在 macOS 上,我们可能需要显式请求通知权限
|
36
|
+
if (macOS()) {
|
37
|
+
logger.debug('macOS detected, notification permissions should be handled by system');
|
38
|
+
}
|
39
|
+
|
40
|
+
// 在 Windows 上设置应用用户模型 ID
|
41
|
+
if (windows()) {
|
42
|
+
app.setAppUserModelId('com.lobehub.chat');
|
43
|
+
logger.debug('Set Windows App User Model ID for notifications');
|
44
|
+
}
|
45
|
+
|
46
|
+
logger.info('Desktop notifications setup completed');
|
47
|
+
} catch (error) {
|
48
|
+
logger.error('Failed to setup desktop notifications:', error);
|
49
|
+
}
|
50
|
+
}
|
51
|
+
/**
|
52
|
+
* 显示系统桌面通知(仅当窗口隐藏时)
|
53
|
+
*/
|
54
|
+
@ipcClientEvent('showDesktopNotification')
|
55
|
+
async showDesktopNotification(
|
56
|
+
params: ShowDesktopNotificationParams,
|
57
|
+
): Promise<DesktopNotificationResult> {
|
58
|
+
logger.debug('收到桌面通知请求:', params);
|
59
|
+
|
60
|
+
try {
|
61
|
+
// 检查通知支持
|
62
|
+
if (!Notification.isSupported()) {
|
63
|
+
logger.warn('系统不支持桌面通知');
|
64
|
+
return { error: 'Desktop notifications not supported', success: false };
|
65
|
+
}
|
66
|
+
|
67
|
+
// 检查窗口是否隐藏
|
68
|
+
const isWindowHidden = this.isMainWindowHidden();
|
69
|
+
|
70
|
+
if (!isWindowHidden) {
|
71
|
+
logger.debug('主窗口可见,跳过桌面通知');
|
72
|
+
return { reason: 'Window is visible', skipped: true, success: true };
|
73
|
+
}
|
74
|
+
|
75
|
+
logger.info('窗口已隐藏,显示桌面通知:', params.title);
|
76
|
+
|
77
|
+
const notification = new Notification({
|
78
|
+
body: params.body,
|
79
|
+
// 添加更多配置以确保通知能正常显示
|
80
|
+
hasReply: false,
|
81
|
+
|
82
|
+
silent: params.silent || false,
|
83
|
+
|
84
|
+
timeoutType: 'default',
|
85
|
+
title: params.title,
|
86
|
+
urgency: 'normal',
|
87
|
+
});
|
88
|
+
|
89
|
+
// 添加更多事件监听来调试
|
90
|
+
notification.on('show', () => {
|
91
|
+
logger.info('通知已显示');
|
92
|
+
});
|
93
|
+
|
94
|
+
notification.on('click', () => {
|
95
|
+
logger.debug('用户点击通知,显示主窗口');
|
96
|
+
const mainWindow = this.app.browserManager.getMainWindow();
|
97
|
+
mainWindow.show();
|
98
|
+
mainWindow.browserWindow.focus();
|
99
|
+
});
|
100
|
+
|
101
|
+
notification.on('close', () => {
|
102
|
+
logger.debug('通知已关闭');
|
103
|
+
});
|
104
|
+
|
105
|
+
notification.on('failed', (error) => {
|
106
|
+
logger.error('通知显示失败:', error);
|
107
|
+
});
|
108
|
+
|
109
|
+
// 使用 Promise 来确保通知显示
|
110
|
+
return new Promise((resolve) => {
|
111
|
+
notification.show();
|
112
|
+
|
113
|
+
// 给通知一些时间来显示,然后检查结果
|
114
|
+
setTimeout(() => {
|
115
|
+
logger.info('通知显示调用完成');
|
116
|
+
resolve({ success: true });
|
117
|
+
}, 100);
|
118
|
+
});
|
119
|
+
} catch (error) {
|
120
|
+
logger.error('显示桌面通知失败:', error);
|
121
|
+
return {
|
122
|
+
error: error instanceof Error ? error.message : 'Unknown error',
|
123
|
+
success: false,
|
124
|
+
};
|
125
|
+
}
|
126
|
+
}
|
127
|
+
|
128
|
+
/**
|
129
|
+
* 检查主窗口是否隐藏
|
130
|
+
*/
|
131
|
+
@ipcClientEvent('isMainWindowHidden')
|
132
|
+
isMainWindowHidden(): boolean {
|
133
|
+
try {
|
134
|
+
const mainWindow = this.app.browserManager.getMainWindow();
|
135
|
+
const browserWindow = mainWindow.browserWindow;
|
136
|
+
|
137
|
+
// 如果窗口被销毁,认为是隐藏的
|
138
|
+
if (browserWindow.isDestroyed()) {
|
139
|
+
return true;
|
140
|
+
}
|
141
|
+
|
142
|
+
// 检查窗口是否可见和聚焦
|
143
|
+
const isVisible = browserWindow.isVisible();
|
144
|
+
const isFocused = browserWindow.isFocused();
|
145
|
+
const isMinimized = browserWindow.isMinimized();
|
146
|
+
|
147
|
+
logger.debug('窗口状态检查:', { isFocused, isMinimized, isVisible });
|
148
|
+
|
149
|
+
// 窗口隐藏的条件:不可见或最小化或失去焦点
|
150
|
+
return !isVisible || isMinimized || !isFocused;
|
151
|
+
} catch (error) {
|
152
|
+
logger.error('检查窗口状态失败:', error);
|
153
|
+
return true; // 发生错误时认为窗口隐藏,确保通知能显示
|
154
|
+
}
|
155
|
+
}
|
156
|
+
}
|
package/changelog/v1.json
CHANGED
@@ -1,4 +1,22 @@
|
|
1
1
|
[
|
2
|
+
{
|
3
|
+
"children": {
|
4
|
+
"fixes": [
|
5
|
+
"Remove debug logging from ModelRuntime and async caller."
|
6
|
+
]
|
7
|
+
},
|
8
|
+
"date": "2025-07-22",
|
9
|
+
"version": "1.102.3"
|
10
|
+
},
|
11
|
+
{
|
12
|
+
"children": {
|
13
|
+
"improvements": [
|
14
|
+
"Add notification for desktop."
|
15
|
+
]
|
16
|
+
},
|
17
|
+
"date": "2025-07-22",
|
18
|
+
"version": "1.102.2"
|
19
|
+
},
|
2
20
|
{
|
3
21
|
"children": {
|
4
22
|
"improvements": [
|
package/locales/ar/electron.json
CHANGED
package/locales/ar/models.json
CHANGED
@@ -1499,6 +1499,12 @@
|
|
1499
1499
|
"hunyuan-vision": {
|
1500
1500
|
"description": "نموذج Hunyuan الأحدث متعدد الوسائط، يدعم إدخال الصور والنصوص لتوليد محتوى نصي."
|
1501
1501
|
},
|
1502
|
+
"imagen-4.0-generate-preview-06-06": {
|
1503
|
+
"description": "سلسلة نموذج Imagen للجيل الرابع لتحويل النص إلى صورة"
|
1504
|
+
},
|
1505
|
+
"imagen-4.0-ultra-generate-preview-06-06": {
|
1506
|
+
"description": "نسخة ألترا من سلسلة نموذج Imagen للجيل الرابع لتحويل النص إلى صورة"
|
1507
|
+
},
|
1502
1508
|
"imagen4/preview": {
|
1503
1509
|
"description": "نموذج توليد الصور الأعلى جودة من Google"
|
1504
1510
|
},
|
@@ -1919,6 +1925,9 @@
|
|
1919
1925
|
"moonshotai/Kimi-Dev-72B": {
|
1920
1926
|
"description": "Kimi-Dev-72B هو نموذج مفتوح المصدر للبرمجة، تم تحسينه عبر تعلم معزز واسع النطاق، قادر على إنتاج تصحيحات مستقرة وجاهزة للإنتاج مباشرة. حقق هذا النموذج نتيجة قياسية جديدة بنسبة 60.4% على SWE-bench Verified، محطماً الأرقام القياسية للنماذج المفتوحة المصدر في مهام هندسة البرمجيات الآلية مثل إصلاح العيوب ومراجعة الشيفرة."
|
1921
1927
|
},
|
1928
|
+
"moonshotai/kimi-k2-instruct": {
|
1929
|
+
"description": "kimi-k2 هو نموذج أساسي مبني على بنية MoE يتمتع بقدرات فائقة في البرمجة والوكيل، مع إجمالي 1 تريليون معلمة و32 مليار معلمة مفعلة. في اختبارات الأداء المعيارية في مجالات المعرفة العامة، البرمجة، الرياضيات، والوكيل، يتفوق نموذج K2 على النماذج المفتوحة المصدر الرئيسية الأخرى."
|
1930
|
+
},
|
1922
1931
|
"nousresearch/hermes-2-pro-llama-3-8b": {
|
1923
1932
|
"description": "Hermes 2 Pro Llama 3 8B هو إصدار مطور من Nous Hermes 2، ويحتوي على أحدث مجموعات البيانات المطورة داخليًا."
|
1924
1933
|
},
|
@@ -1499,6 +1499,12 @@
|
|
1499
1499
|
"hunyuan-vision": {
|
1500
1500
|
"description": "Най-новият мултимодален модел на HunYuan, поддържащ генериране на текстово съдържание от изображения и текстови входове."
|
1501
1501
|
},
|
1502
|
+
"imagen-4.0-generate-preview-06-06": {
|
1503
|
+
"description": "Imagen 4-то поколение текст-към-изображение модел серия"
|
1504
|
+
},
|
1505
|
+
"imagen-4.0-ultra-generate-preview-06-06": {
|
1506
|
+
"description": "Imagen 4-то поколение текст-към-изображение модел серия Ултра версия"
|
1507
|
+
},
|
1502
1508
|
"imagen4/preview": {
|
1503
1509
|
"description": "Най-висококачественият модел за генериране на изображения на Google."
|
1504
1510
|
},
|
@@ -1919,6 +1925,9 @@
|
|
1919
1925
|
"moonshotai/Kimi-Dev-72B": {
|
1920
1926
|
"description": "Kimi-Dev-72B е голям отворен модел за код, оптимизиран чрез мащабно подсилено обучение, способен да генерира стабилни и директно приложими пачове. Този модел постига нов рекорд от 60,4 % на SWE-bench Verified, подобрявайки резултатите на отворени модели в автоматизирани задачи за софтуерно инженерство като поправка на дефекти и преглед на код."
|
1921
1927
|
},
|
1928
|
+
"moonshotai/kimi-k2-instruct": {
|
1929
|
+
"description": "kimi-k2 е базов модел с MoE архитектура с изключителни способности за кодиране и агент, с общо 1 трилион параметри и 32 милиарда активни параметри. В бенчмаркови тестове за общи знания, програмиране, математика и агенти, моделът K2 превъзхожда други водещи отворени модели."
|
1930
|
+
},
|
1922
1931
|
"nousresearch/hermes-2-pro-llama-3-8b": {
|
1923
1932
|
"description": "Hermes 2 Pro Llama 3 8B е обновена версия на Nous Hermes 2, включваща най-новите вътрешно разработени набори от данни."
|
1924
1933
|
},
|
@@ -1499,6 +1499,12 @@
|
|
1499
1499
|
"hunyuan-vision": {
|
1500
1500
|
"description": "Das neueste multimodale Modell von Hunyuan unterstützt die Eingabe von Bildern und Text zur Generierung von Textinhalten."
|
1501
1501
|
},
|
1502
|
+
"imagen-4.0-generate-preview-06-06": {
|
1503
|
+
"description": "Imagen 4. Generation Text-zu-Bild Modellserie"
|
1504
|
+
},
|
1505
|
+
"imagen-4.0-ultra-generate-preview-06-06": {
|
1506
|
+
"description": "Imagen 4. Generation Text-zu-Bild Modellserie Ultra-Version"
|
1507
|
+
},
|
1502
1508
|
"imagen4/preview": {
|
1503
1509
|
"description": "Googles hochwertigstes Bildgenerierungsmodell"
|
1504
1510
|
},
|
@@ -1919,6 +1925,9 @@
|
|
1919
1925
|
"moonshotai/Kimi-Dev-72B": {
|
1920
1926
|
"description": "Kimi-Dev-72B ist ein Open-Source-Großmodell für Quellcode, das durch umfangreiche Verstärkungslernoptimierung robuste und direkt produktionsreife Patches erzeugen kann. Dieses Modell erreichte auf SWE-bench Verified eine neue Höchstpunktzahl von 60,4 % und stellte damit einen Rekord für Open-Source-Modelle bei automatisierten Software-Engineering-Aufgaben wie Fehlerbehebung und Code-Review auf."
|
1921
1927
|
},
|
1928
|
+
"moonshotai/kimi-k2-instruct": {
|
1929
|
+
"description": "kimi-k2 ist ein MoE-Architektur-Basismodell mit außergewöhnlichen Fähigkeiten in Code und Agenten, mit insgesamt 1 Billion Parametern und 32 Milliarden aktiven Parametern. In Benchmark-Tests zu allgemeinem Wissen, Programmierung, Mathematik und Agenten übertrifft das K2-Modell andere führende Open-Source-Modelle."
|
1930
|
+
},
|
1922
1931
|
"nousresearch/hermes-2-pro-llama-3-8b": {
|
1923
1932
|
"description": "Hermes 2 Pro Llama 3 8B ist die aktualisierte Version von Nous Hermes 2 und enthält die neuesten intern entwickelten Datensätze."
|
1924
1933
|
},
|
@@ -1499,6 +1499,12 @@
|
|
1499
1499
|
"hunyuan-vision": {
|
1500
1500
|
"description": "The latest multimodal model from Hunyuan, supporting image + text input to generate textual content."
|
1501
1501
|
},
|
1502
|
+
"imagen-4.0-generate-preview-06-06": {
|
1503
|
+
"description": "Imagen 4th generation text-to-image model series"
|
1504
|
+
},
|
1505
|
+
"imagen-4.0-ultra-generate-preview-06-06": {
|
1506
|
+
"description": "Imagen 4th generation text-to-image model series Ultra version"
|
1507
|
+
},
|
1502
1508
|
"imagen4/preview": {
|
1503
1509
|
"description": "Google's highest quality image generation model."
|
1504
1510
|
},
|
@@ -1919,6 +1925,9 @@
|
|
1919
1925
|
"moonshotai/Kimi-Dev-72B": {
|
1920
1926
|
"description": "Kimi-Dev-72B is an open-source large code model optimized through extensive reinforcement learning, capable of producing robust, production-ready patches. This model achieved a new high score of 60.4% on SWE-bench Verified, setting a record for open-source models in automated software engineering tasks such as defect repair and code review."
|
1921
1927
|
},
|
1928
|
+
"moonshotai/kimi-k2-instruct": {
|
1929
|
+
"description": "kimi-k2 is a MoE architecture base model with powerful coding and Agent capabilities, featuring a total of 1 trillion parameters and 32 billion active parameters. In benchmark tests across key categories such as general knowledge reasoning, programming, mathematics, and Agent tasks, the K2 model outperforms other mainstream open-source models."
|
1930
|
+
},
|
1922
1931
|
"nousresearch/hermes-2-pro-llama-3-8b": {
|
1923
1932
|
"description": "Hermes 2 Pro Llama 3 8B is an upgraded version of Nous Hermes 2, featuring the latest internally developed datasets."
|
1924
1933
|
},
|
@@ -1499,6 +1499,12 @@
|
|
1499
1499
|
"hunyuan-vision": {
|
1500
1500
|
"description": "El último modelo multimodal de Hunyuan, que admite la entrada de imágenes y texto para generar contenido textual."
|
1501
1501
|
},
|
1502
|
+
"imagen-4.0-generate-preview-06-06": {
|
1503
|
+
"description": "Serie de modelos de texto a imagen de cuarta generación de Imagen"
|
1504
|
+
},
|
1505
|
+
"imagen-4.0-ultra-generate-preview-06-06": {
|
1506
|
+
"description": "Serie de modelos de texto a imagen de cuarta generación de Imagen, versión Ultra"
|
1507
|
+
},
|
1502
1508
|
"imagen4/preview": {
|
1503
1509
|
"description": "El modelo de generación de imágenes de mayor calidad de Google."
|
1504
1510
|
},
|
@@ -1919,6 +1925,9 @@
|
|
1919
1925
|
"moonshotai/Kimi-Dev-72B": {
|
1920
1926
|
"description": "Kimi-Dev-72B es un modelo de código abierto de gran escala, optimizado mediante aprendizaje reforzado a gran escala, capaz de generar parches robustos y listos para producción. Este modelo alcanzó un nuevo récord del 60.4 % en SWE-bench Verified, estableciendo un nuevo estándar para modelos de código abierto en tareas automatizadas de ingeniería de software como la corrección de errores y la revisión de código."
|
1921
1927
|
},
|
1928
|
+
"moonshotai/kimi-k2-instruct": {
|
1929
|
+
"description": "kimi-k2 es un modelo base con arquitectura MoE que cuenta con capacidades avanzadas de código y agentes, con un total de 1T parámetros y 32B parámetros activados. En pruebas de referencia en categorías principales como razonamiento de conocimiento general, programación, matemáticas y agentes, el modelo K2 supera el rendimiento de otros modelos de código abierto populares."
|
1930
|
+
},
|
1922
1931
|
"nousresearch/hermes-2-pro-llama-3-8b": {
|
1923
1932
|
"description": "Hermes 2 Pro Llama 3 8B es una versión mejorada de Nous Hermes 2, que incluye los conjuntos de datos más recientes desarrollados internamente."
|
1924
1933
|
},
|
@@ -1499,6 +1499,12 @@
|
|
1499
1499
|
"hunyuan-vision": {
|
1500
1500
|
"description": "جدیدترین مدل چندوجهی هونیوان، پشتیبانی از ورودی تصویر + متن برای تولید محتوای متنی."
|
1501
1501
|
},
|
1502
|
+
"imagen-4.0-generate-preview-06-06": {
|
1503
|
+
"description": "سری مدل متن به تصویر نسل چهارم Imagen"
|
1504
|
+
},
|
1505
|
+
"imagen-4.0-ultra-generate-preview-06-06": {
|
1506
|
+
"description": "نسخه اولترا سری مدل متن به تصویر نسل چهارم Imagen"
|
1507
|
+
},
|
1502
1508
|
"imagen4/preview": {
|
1503
1509
|
"description": "مدل تولید تصویر با بالاترین کیفیت گوگل"
|
1504
1510
|
},
|
@@ -1919,6 +1925,9 @@
|
|
1919
1925
|
"moonshotai/Kimi-Dev-72B": {
|
1920
1926
|
"description": "Kimi-Dev-72B یک مدل بزرگ کد منبع باز است که با یادگیری تقویتی گسترده بهینه شده است و قادر به تولید پچهای پایدار و قابل استفاده مستقیم در تولید میباشد. این مدل در SWE-bench Verified امتیاز جدید ۶۰.۴٪ را کسب کرده و رکورد مدلهای منبع باز را در وظایف مهندسی نرمافزار خودکار مانند رفع اشکال و بازبینی کد شکسته است."
|
1921
1927
|
},
|
1928
|
+
"moonshotai/kimi-k2-instruct": {
|
1929
|
+
"description": "kimi-k2 یک مدل پایه با معماری MoE است که دارای تواناییهای بسیار قوی در کدنویسی و عاملها میباشد، با مجموع پارامتر ۱ تریلیون و پارامترهای فعال ۳۲ میلیارد. در آزمونهای معیار عملکرد در دستههای اصلی مانند استدلال دانش عمومی، برنامهنویسی، ریاضیات و عاملها، مدل K2 عملکردی فراتر از سایر مدلهای متنباز رایج دارد."
|
1930
|
+
},
|
1922
1931
|
"nousresearch/hermes-2-pro-llama-3-8b": {
|
1923
1932
|
"description": "هرمس ۲ پرو لاما ۳ ۸B نسخه ارتقاء یافته Nous Hermes 2 است که شامل جدیدترین مجموعه دادههای توسعهیافته داخلی میباشد."
|
1924
1933
|
},
|
@@ -1499,6 +1499,12 @@
|
|
1499
1499
|
"hunyuan-vision": {
|
1500
1500
|
"description": "Dernier modèle multimodal Hunyuan, prenant en charge l'entrée d'images et de textes pour générer du contenu textuel."
|
1501
1501
|
},
|
1502
|
+
"imagen-4.0-generate-preview-06-06": {
|
1503
|
+
"description": "Série de modèles de génération d'images à partir de texte Imagen 4e génération"
|
1504
|
+
},
|
1505
|
+
"imagen-4.0-ultra-generate-preview-06-06": {
|
1506
|
+
"description": "Série de modèles de génération d'images à partir de texte Imagen 4e génération version Ultra"
|
1507
|
+
},
|
1502
1508
|
"imagen4/preview": {
|
1503
1509
|
"description": "Modèle de génération d'images de la plus haute qualité de Google."
|
1504
1510
|
},
|
@@ -1919,6 +1925,9 @@
|
|
1919
1925
|
"moonshotai/Kimi-Dev-72B": {
|
1920
1926
|
"description": "Kimi-Dev-72B est un grand modèle de code open source, optimisé par un apprentissage par renforcement à grande échelle, capable de générer des correctifs robustes et directement exploitables en production. Ce modèle a atteint un nouveau score record de 60,4 % sur SWE-bench Verified, établissant un nouveau standard pour les modèles open source dans les tâches d'ingénierie logicielle automatisée telles que la correction de bugs et la revue de code."
|
1921
1927
|
},
|
1928
|
+
"moonshotai/kimi-k2-instruct": {
|
1929
|
+
"description": "kimi-k2 est un modèle de base à architecture MoE doté de capacités exceptionnelles en code et Agent, avec un total de 1T paramètres et 32B paramètres activés. Dans les tests de performance de référence couvrant les principales catégories telles que le raisonnement général, la programmation, les mathématiques et les Agents, le modèle K2 surpasse les autres modèles open source majeurs."
|
1930
|
+
},
|
1922
1931
|
"nousresearch/hermes-2-pro-llama-3-8b": {
|
1923
1932
|
"description": "Hermes 2 Pro Llama 3 8B est une version améliorée de Nous Hermes 2, intégrant les derniers ensembles de données développés en interne."
|
1924
1933
|
},
|
@@ -1499,6 +1499,12 @@
|
|
1499
1499
|
"hunyuan-vision": {
|
1500
1500
|
"description": "Ultimo modello multimodale di Hunyuan, supporta l'input di immagini e testo per generare contenuti testuali."
|
1501
1501
|
},
|
1502
|
+
"imagen-4.0-generate-preview-06-06": {
|
1503
|
+
"description": "Serie di modelli di generazione di immagini da testo di quarta generazione Imagen"
|
1504
|
+
},
|
1505
|
+
"imagen-4.0-ultra-generate-preview-06-06": {
|
1506
|
+
"description": "Serie di modelli di generazione di immagini da testo di quarta generazione Imagen versione Ultra"
|
1507
|
+
},
|
1502
1508
|
"imagen4/preview": {
|
1503
1509
|
"description": "Il modello di generazione immagini di massima qualità di Google"
|
1504
1510
|
},
|
@@ -1919,6 +1925,9 @@
|
|
1919
1925
|
"moonshotai/Kimi-Dev-72B": {
|
1920
1926
|
"description": "Kimi-Dev-72B è un modello open source di grandi dimensioni per il codice, ottimizzato tramite apprendimento rinforzato su larga scala, capace di generare patch robuste e pronte per la produzione. Questo modello ha raggiunto un nuovo record del 60,4% su SWE-bench Verified, superando tutti i modelli open source nelle attività di ingegneria del software automatizzata come la correzione di difetti e la revisione del codice."
|
1921
1927
|
},
|
1928
|
+
"moonshotai/kimi-k2-instruct": {
|
1929
|
+
"description": "kimi-k2 è un modello di base con architettura MoE dotato di potenti capacità di codice e agenti, con un totale di 1T parametri e 32B parametri attivi. Nei test di benchmark per categorie principali come ragionamento generale, programmazione, matematica e agenti, il modello K2 supera le altre principali soluzioni open source."
|
1930
|
+
},
|
1922
1931
|
"nousresearch/hermes-2-pro-llama-3-8b": {
|
1923
1932
|
"description": "Hermes 2 Pro Llama 3 8B è una versione aggiornata di Nous Hermes 2, contenente i più recenti dataset sviluppati internamente."
|
1924
1933
|
},
|
@@ -1499,6 +1499,12 @@
|
|
1499
1499
|
"hunyuan-vision": {
|
1500
1500
|
"description": "混元の最新のマルチモーダルモデルで、画像とテキストの入力をサポートし、テキストコンテンツを生成します。"
|
1501
1501
|
},
|
1502
|
+
"imagen-4.0-generate-preview-06-06": {
|
1503
|
+
"description": "Imagen 第4世代テキストから画像へのモデルシリーズ"
|
1504
|
+
},
|
1505
|
+
"imagen-4.0-ultra-generate-preview-06-06": {
|
1506
|
+
"description": "Imagen 第4世代テキストから画像へのモデルシリーズ ウルトラバージョン"
|
1507
|
+
},
|
1502
1508
|
"imagen4/preview": {
|
1503
1509
|
"description": "Google の最高品質の画像生成モデル"
|
1504
1510
|
},
|
@@ -1919,6 +1925,9 @@
|
|
1919
1925
|
"moonshotai/Kimi-Dev-72B": {
|
1920
1926
|
"description": "Kimi-Dev-72B はオープンソースの大規模コードモデルであり、大規模な強化学習によって最適化されており、堅牢で直接本番投入可能なパッチを出力できます。このモデルは SWE-bench Verified で 60.4% の新記録を達成し、欠陥修正やコードレビューなどの自動化ソフトウェア工学タスクにおけるオープンソースモデルの記録を更新しました。"
|
1921
1927
|
},
|
1928
|
+
"moonshotai/kimi-k2-instruct": {
|
1929
|
+
"description": "kimi-k2 は、強力なコードおよびエージェント機能を備えたMoEアーキテクチャの基盤モデルで、総パラメータ数は1兆、活性化パラメータは320億です。一般的な知識推論、プログラミング、数学、エージェントなどの主要なベンチマーク性能テストにおいて、K2モデルは他の主流のオープンソースモデルを上回る性能を示しています。"
|
1930
|
+
},
|
1922
1931
|
"nousresearch/hermes-2-pro-llama-3-8b": {
|
1923
1932
|
"description": "Hermes 2 Pro Llama 3 8BはNous Hermes 2のアップグレード版で、最新の内部開発データセットを含んでいます。"
|
1924
1933
|
},
|
@@ -1499,6 +1499,12 @@
|
|
1499
1499
|
"hunyuan-vision": {
|
1500
1500
|
"description": "혼원 최신 다중 모달 모델로, 이미지와 텍스트 입력을 지원하여 텍스트 콘텐츠를 생성합니다."
|
1501
1501
|
},
|
1502
|
+
"imagen-4.0-generate-preview-06-06": {
|
1503
|
+
"description": "Imagen 4세대 텍스트-이미지 모델 시리즈"
|
1504
|
+
},
|
1505
|
+
"imagen-4.0-ultra-generate-preview-06-06": {
|
1506
|
+
"description": "Imagen 4세대 텍스트-이미지 모델 시리즈 울트라 버전"
|
1507
|
+
},
|
1502
1508
|
"imagen4/preview": {
|
1503
1509
|
"description": "Google의 최고 품질 이미지 생성 모델"
|
1504
1510
|
},
|
@@ -1919,6 +1925,9 @@
|
|
1919
1925
|
"moonshotai/Kimi-Dev-72B": {
|
1920
1926
|
"description": "Kimi-Dev-72B는 대규모 강화 학습 최적화를 거친 오픈소스 코드 대형 모델로, 안정적이고 바로 생산에 투입 가능한 패치를 출력할 수 있습니다. 이 모델은 SWE-bench Verified에서 60.4%의 신기록을 세우며, 결함 수정, 코드 리뷰 등 자동화 소프트웨어 엔지니어링 작업에서 오픈소스 모델의 기록을 경신했습니다."
|
1921
1927
|
},
|
1928
|
+
"moonshotai/kimi-k2-instruct": {
|
1929
|
+
"description": "kimi-k2는 강력한 코드 및 에이전트 기능을 갖춘 MoE 아키텍처 기반 모델로, 총 파라미터 1조, 활성화 파라미터 320억입니다. 일반 지식 추론, 프로그래밍, 수학, 에이전트 등 주요 분야의 벤치마크 성능 테스트에서 K2 모델은 다른 주요 오픈소스 모델을 능가하는 성능을 보입니다."
|
1930
|
+
},
|
1922
1931
|
"nousresearch/hermes-2-pro-llama-3-8b": {
|
1923
1932
|
"description": "Hermes 2 Pro Llama 3 8B는 Nous Hermes 2의 업그레이드 버전으로, 최신 내부 개발 데이터 세트를 포함하고 있습니다."
|
1924
1933
|
},
|
@@ -1499,6 +1499,12 @@
|
|
1499
1499
|
"hunyuan-vision": {
|
1500
1500
|
"description": "Het nieuwste multimodale model van Hunyuan, ondersteunt het genereren van tekstinhoud op basis van afbeelding + tekstinvoer."
|
1501
1501
|
},
|
1502
|
+
"imagen-4.0-generate-preview-06-06": {
|
1503
|
+
"description": "Imagen 4e generatie tekst-naar-beeld modelserie"
|
1504
|
+
},
|
1505
|
+
"imagen-4.0-ultra-generate-preview-06-06": {
|
1506
|
+
"description": "Imagen 4e generatie tekst-naar-beeld modelserie Ultra versie"
|
1507
|
+
},
|
1502
1508
|
"imagen4/preview": {
|
1503
1509
|
"description": "Google's hoogste kwaliteit afbeeldingsgeneratiemodel"
|
1504
1510
|
},
|
@@ -1919,6 +1925,9 @@
|
|
1919
1925
|
"moonshotai/Kimi-Dev-72B": {
|
1920
1926
|
"description": "Kimi-Dev-72B is een open source code groot model, geoptimaliseerd door grootschalige versterkte leerprocessen, dat robuuste en direct inzetbare patches kan genereren. Dit model behaalde een nieuwe recordscore van 60,4% op SWE-bench Verified en vestigde daarmee een nieuw hoogtepunt voor open source modellen bij geautomatiseerde software engineering taken zoals defectherstel en code review."
|
1921
1927
|
},
|
1928
|
+
"moonshotai/kimi-k2-instruct": {
|
1929
|
+
"description": "kimi-k2 is een MoE-architectuurbasis model met krachtige codeer- en agentmogelijkheden, met in totaal 1 biljoen parameters en 32 miljard geactiveerde parameters. In benchmarktests voor algemene kennisredenering, programmeren, wiskunde en agent-gerelateerde categorieën presteert het K2-model beter dan andere gangbare open-source modellen."
|
1930
|
+
},
|
1922
1931
|
"nousresearch/hermes-2-pro-llama-3-8b": {
|
1923
1932
|
"description": "Hermes 2 Pro Llama 3 8B is een upgrade van Nous Hermes 2, met de nieuwste intern ontwikkelde datasets."
|
1924
1933
|
},
|
@@ -1499,6 +1499,12 @@
|
|
1499
1499
|
"hunyuan-vision": {
|
1500
1500
|
"description": "Najnowocześniejszy model multimodalny Hunyuan, wspierający generowanie treści tekstowych na podstawie obrazów i tekstu."
|
1501
1501
|
},
|
1502
|
+
"imagen-4.0-generate-preview-06-06": {
|
1503
|
+
"description": "Seria modeli tekst-na-obraz Imagen czwartej generacji"
|
1504
|
+
},
|
1505
|
+
"imagen-4.0-ultra-generate-preview-06-06": {
|
1506
|
+
"description": "Seria modeli tekst-na-obraz Imagen czwartej generacji, wersja Ultra"
|
1507
|
+
},
|
1502
1508
|
"imagen4/preview": {
|
1503
1509
|
"description": "Najwyższej jakości model generowania obrazów Google."
|
1504
1510
|
},
|
@@ -1919,6 +1925,9 @@
|
|
1919
1925
|
"moonshotai/Kimi-Dev-72B": {
|
1920
1926
|
"description": "Kimi-Dev-72B to otwarty model kodu źródłowego, zoptymalizowany za pomocą zaawansowanego uczenia ze wzmocnieniem, zdolny do generowania stabilnych, gotowych do produkcji poprawek. Model osiągnął nowy rekord 60,4% na SWE-bench Verified, ustanawiając nowy standard w zadaniach automatyzacji inżynierii oprogramowania, takich jak naprawa błędów i przegląd kodu."
|
1921
1927
|
},
|
1928
|
+
"moonshotai/kimi-k2-instruct": {
|
1929
|
+
"description": "kimi-k2 to podstawowy model architektury MoE o wyjątkowych zdolnościach w zakresie kodowania i agentów, z łączną liczbą parametrów 1T i 32B aktywnych parametrów. W testach wydajnościowych obejmujących ogólną wiedzę, programowanie, matematykę i agentów, model K2 przewyższa inne popularne modele open source."
|
1930
|
+
},
|
1922
1931
|
"nousresearch/hermes-2-pro-llama-3-8b": {
|
1923
1932
|
"description": "Hermes 2 Pro Llama 3 8B to ulepszona wersja Nous Hermes 2, zawierająca najnowsze wewnętrznie opracowane zbiory danych."
|
1924
1933
|
},
|
@@ -1499,6 +1499,12 @@
|
|
1499
1499
|
"hunyuan-vision": {
|
1500
1500
|
"description": "O mais recente modelo multimodal Hunyuan, que suporta a entrada de imagens e texto para gerar conteúdo textual."
|
1501
1501
|
},
|
1502
|
+
"imagen-4.0-generate-preview-06-06": {
|
1503
|
+
"description": "Série de modelos de texto para imagem da 4ª geração Imagen"
|
1504
|
+
},
|
1505
|
+
"imagen-4.0-ultra-generate-preview-06-06": {
|
1506
|
+
"description": "Série de modelos de texto para imagem da 4ª geração Imagen, versão Ultra"
|
1507
|
+
},
|
1502
1508
|
"imagen4/preview": {
|
1503
1509
|
"description": "Modelo de geração de imagens de mais alta qualidade do Google"
|
1504
1510
|
},
|
@@ -1919,6 +1925,9 @@
|
|
1919
1925
|
"moonshotai/Kimi-Dev-72B": {
|
1920
1926
|
"description": "Kimi-Dev-72B é um modelo de código aberto de grande porte, otimizado por meio de aprendizado reforçado em larga escala, capaz de gerar patches robustos e prontos para produção. Este modelo alcançou uma nova pontuação máxima de 60,4% no SWE-bench Verified, estabelecendo um recorde entre modelos de código aberto em tarefas automatizadas de engenharia de software, como correção de defeitos e revisão de código."
|
1921
1927
|
},
|
1928
|
+
"moonshotai/kimi-k2-instruct": {
|
1929
|
+
"description": "kimi-k2 é um modelo base com arquitetura MoE que possui capacidades avançadas de código e agente, com um total de 1 trilhão de parâmetros e 32 bilhões de parâmetros ativados. Nos testes de desempenho de referência em categorias principais como raciocínio de conhecimento geral, programação, matemática e agentes, o modelo K2 supera outros modelos open source populares."
|
1930
|
+
},
|
1922
1931
|
"nousresearch/hermes-2-pro-llama-3-8b": {
|
1923
1932
|
"description": "Hermes 2 Pro Llama 3 8B é uma versão aprimorada do Nous Hermes 2, contendo os conjuntos de dados mais recentes desenvolvidos internamente."
|
1924
1933
|
},
|
@@ -1499,6 +1499,12 @@
|
|
1499
1499
|
"hunyuan-vision": {
|
1500
1500
|
"description": "Последняя многомодальная модель Hunyuan, поддерживающая ввод изображений и текста для генерации текстового контента."
|
1501
1501
|
},
|
1502
|
+
"imagen-4.0-generate-preview-06-06": {
|
1503
|
+
"description": "Серия моделей Imagen 4-го поколения для преобразования текста в изображение"
|
1504
|
+
},
|
1505
|
+
"imagen-4.0-ultra-generate-preview-06-06": {
|
1506
|
+
"description": "Ультра-версия серии моделей Imagen 4-го поколения для преобразования текста в изображение"
|
1507
|
+
},
|
1502
1508
|
"imagen4/preview": {
|
1503
1509
|
"description": "Модель генерации изображений высочайшего качества от Google."
|
1504
1510
|
},
|
@@ -1919,6 +1925,9 @@
|
|
1919
1925
|
"moonshotai/Kimi-Dev-72B": {
|
1920
1926
|
"description": "Kimi-Dev-72B — это крупная модель с открытым исходным кодом, оптимизированная с помощью масштабного обучения с подкреплением, способная выдавать надежные патчи, готовые к непосредственному внедрению. Эта модель достигла нового рекордного результата 60,4 % на SWE-bench Verified, обновив рекорды открытых моделей в автоматизированных задачах программной инженерии, таких как исправление ошибок и код-ревью."
|
1921
1927
|
},
|
1928
|
+
"moonshotai/kimi-k2-instruct": {
|
1929
|
+
"description": "kimi-k2 — базовая модель на архитектуре MoE с мощными возможностями кода и агента, общий объем параметров 1 триллион, активные параметры 32 миллиарда. В тестах производительности по основным категориям, таким как общие знания, программирование, математика и агенты, модель K2 превосходит другие популярные открытые модели."
|
1930
|
+
},
|
1922
1931
|
"nousresearch/hermes-2-pro-llama-3-8b": {
|
1923
1932
|
"description": "Hermes 2 Pro Llama 3 8B — это обновленная версия Nous Hermes 2, содержащая последние внутренние разработанные наборы данных."
|
1924
1933
|
},
|
@@ -1499,6 +1499,12 @@
|
|
1499
1499
|
"hunyuan-vision": {
|
1500
1500
|
"description": "Hunyuan'ın en son çok modlu modeli, resim + metin girişi ile metin içeriği oluşturmayı destekler."
|
1501
1501
|
},
|
1502
|
+
"imagen-4.0-generate-preview-06-06": {
|
1503
|
+
"description": "Imagen 4. nesil metinden görüntüye model serisi"
|
1504
|
+
},
|
1505
|
+
"imagen-4.0-ultra-generate-preview-06-06": {
|
1506
|
+
"description": "Imagen 4. nesil metinden görüntüye model serisi Ultra versiyonu"
|
1507
|
+
},
|
1502
1508
|
"imagen4/preview": {
|
1503
1509
|
"description": "Google'ın en yüksek kaliteli görüntü oluşturma modeli"
|
1504
1510
|
},
|
@@ -1919,6 +1925,9 @@
|
|
1919
1925
|
"moonshotai/Kimi-Dev-72B": {
|
1920
1926
|
"description": "Kimi-Dev-72B, büyük ölçekli pekiştirmeli öğrenme ile optimize edilmiş açık kaynaklı bir kod modeli olup, sağlam ve doğrudan üretime uygun yamalar üretebilir. Bu model, SWE-bench Verified üzerinde %60,4 ile yeni bir rekor kırarak, açık kaynak modeller arasında hata düzeltme, kod incelemesi gibi otomatik yazılım mühendisliği görevlerinde en yüksek puanı elde etmiştir."
|
1921
1927
|
},
|
1928
|
+
"moonshotai/kimi-k2-instruct": {
|
1929
|
+
"description": "kimi-k2, güçlü kodlama ve Ajan yeteneklerine sahip MoE mimarili temel bir modeldir, toplam parametre sayısı 1T, aktif parametre sayısı 32B'dir. Genel bilgi çıkarımı, programlama, matematik ve Ajan gibi ana kategorilerde yapılan kıyaslama testlerinde, K2 modeli diğer önde gelen açık kaynak modellerini geride bırakmaktadır."
|
1930
|
+
},
|
1922
1931
|
"nousresearch/hermes-2-pro-llama-3-8b": {
|
1923
1932
|
"description": "Hermes 2 Pro Llama 3 8B, Nous Hermes 2'nin güncellenmiş versiyonudur ve en son iç geliştirme veri setlerini içermektedir."
|
1924
1933
|
},
|
@@ -1499,6 +1499,12 @@
|
|
1499
1499
|
"hunyuan-vision": {
|
1500
1500
|
"description": "Mô hình đa phương thức mới nhất của Hunyuan, hỗ trợ đầu vào hình ảnh + văn bản để tạo ra nội dung văn bản."
|
1501
1501
|
},
|
1502
|
+
"imagen-4.0-generate-preview-06-06": {
|
1503
|
+
"description": "Dòng mô hình chuyển đổi văn bản thành hình ảnh thế hệ thứ 4 của Imagen"
|
1504
|
+
},
|
1505
|
+
"imagen-4.0-ultra-generate-preview-06-06": {
|
1506
|
+
"description": "Phiên bản Ultra của dòng mô hình chuyển đổi văn bản thành hình ảnh thế hệ thứ 4 của Imagen"
|
1507
|
+
},
|
1502
1508
|
"imagen4/preview": {
|
1503
1509
|
"description": "Mô hình tạo hình ảnh chất lượng cao nhất của Google"
|
1504
1510
|
},
|
@@ -1919,6 +1925,9 @@
|
|
1919
1925
|
"moonshotai/Kimi-Dev-72B": {
|
1920
1926
|
"description": "Kimi-Dev-72B là một mô hình mã nguồn mở lớn, được tối ưu hóa qua học tăng cường quy mô lớn, có khả năng tạo ra các bản vá ổn định và có thể triển khai trực tiếp. Mô hình này đã đạt điểm cao kỷ lục 60,4% trên SWE-bench Verified, phá vỡ các kỷ lục của mô hình mã nguồn mở trong các nhiệm vụ kỹ thuật phần mềm tự động như sửa lỗi và đánh giá mã."
|
1921
1927
|
},
|
1928
|
+
"moonshotai/kimi-k2-instruct": {
|
1929
|
+
"description": "kimi-k2 là mô hình cơ sở kiến trúc MoE với khả năng mã hóa và Agent cực mạnh, tổng số tham số 1T, tham số kích hoạt 32B. Trong các bài kiểm tra hiệu năng chuẩn về suy luận kiến thức chung, lập trình, toán học, Agent và các loại chính khác, mô hình K2 vượt trội hơn các mô hình mã nguồn mở phổ biến khác."
|
1930
|
+
},
|
1922
1931
|
"nousresearch/hermes-2-pro-llama-3-8b": {
|
1923
1932
|
"description": "Hermes 2 Pro Llama 3 8B là phiên bản nâng cấp của Nous Hermes 2, bao gồm bộ dữ liệu phát triển nội bộ mới nhất."
|
1924
1933
|
},
|
@@ -1499,6 +1499,12 @@
|
|
1499
1499
|
"hunyuan-vision": {
|
1500
1500
|
"description": "混元最新多模态模型,支持图片+文本输入生成文本内容。"
|
1501
1501
|
},
|
1502
|
+
"imagen-4.0-generate-preview-06-06": {
|
1503
|
+
"description": "Imagen 4th generation text-to-image model series"
|
1504
|
+
},
|
1505
|
+
"imagen-4.0-ultra-generate-preview-06-06": {
|
1506
|
+
"description": "Imagen 4th generation text-to-image model series Ultra version"
|
1507
|
+
},
|
1502
1508
|
"imagen4/preview": {
|
1503
1509
|
"description": "Google 最高质量的图像生成模型"
|
1504
1510
|
},
|
@@ -1919,6 +1925,9 @@
|
|
1919
1925
|
"moonshotai/Kimi-Dev-72B": {
|
1920
1926
|
"description": "Kimi-Dev-72B 是一款开源代码大模型,经过大规模强化学习优化,能输出稳健、可直接投产的补丁。该模型在 SWE-bench Verified 上取得 60.4 % 的新高分,刷新了开源模型在缺陷修复、代码评审等自动化软件工程任务上的纪录。"
|
1921
1927
|
},
|
1928
|
+
"moonshotai/kimi-k2-instruct": {
|
1929
|
+
"description": "kimi-k2 是一款具备超强代码和 Agent 能力的 MoE 架构基础模型,总参数 1T,激活参数 32B。在通用知识推理、编程、数学、Agent 等主要类别的基准性能测试中,K2 模型的性能超过其他主流开源模型。"
|
1930
|
+
},
|
1922
1931
|
"nousresearch/hermes-2-pro-llama-3-8b": {
|
1923
1932
|
"description": "Hermes 2 Pro Llama 3 8B 是 Nous Hermes 2的升级版本,包含最新的内部开发的数据集。"
|
1924
1933
|
},
|
@@ -1499,6 +1499,12 @@
|
|
1499
1499
|
"hunyuan-vision": {
|
1500
1500
|
"description": "混元最新多模態模型,支持圖片 + 文本輸入生成文本內容。"
|
1501
1501
|
},
|
1502
|
+
"imagen-4.0-generate-preview-06-06": {
|
1503
|
+
"description": "Imagen 第四代文字轉圖像模型系列"
|
1504
|
+
},
|
1505
|
+
"imagen-4.0-ultra-generate-preview-06-06": {
|
1506
|
+
"description": "Imagen 第四代文字轉圖像模型系列 超級版"
|
1507
|
+
},
|
1502
1508
|
"imagen4/preview": {
|
1503
1509
|
"description": "Google 最高品質的圖像生成模型"
|
1504
1510
|
},
|
@@ -1919,6 +1925,9 @@
|
|
1919
1925
|
"moonshotai/Kimi-Dev-72B": {
|
1920
1926
|
"description": "Kimi-Dev-72B 是一款開源程式碼大型模型,經過大規模強化學習優化,能輸出穩健、可直接投產的補丁。該模型在 SWE-bench Verified 上取得 60.4 % 的新高分,刷新了開源模型在缺陷修復、程式碼審查等自動化軟體工程任務上的紀錄。"
|
1921
1927
|
},
|
1928
|
+
"moonshotai/kimi-k2-instruct": {
|
1929
|
+
"description": "kimi-k2 是一款具備超強程式碼與代理能力的 MoE 架構基礎模型,總參數量達 1T,啟用參數 32B。在通用知識推理、程式設計、數學、代理等主要類別的基準效能測試中,K2 模型的表現超越其他主流開源模型。"
|
1930
|
+
},
|
1922
1931
|
"nousresearch/hermes-2-pro-llama-3-8b": {
|
1923
1932
|
"description": "Hermes 2 Pro Llama 3 8B 是 Nous Hermes 2 的升級版本,包含最新的內部開發的數據集。"
|
1924
1933
|
},
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.102.
|
3
|
+
"version": "1.102.3",
|
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",
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { LocalFilesDispatchEvents } from './localFile';
|
2
2
|
import { MenuDispatchEvents } from './menu';
|
3
|
+
import { NotificationDispatchEvents } from './notification';
|
3
4
|
import { RemoteServerBroadcastEvents, RemoteServerDispatchEvents } from './remoteServer';
|
4
5
|
import { DesktopSettingsDispatchEvents } from './settings';
|
5
6
|
import { ShortcutDispatchEvents } from './shortcut';
|
@@ -23,7 +24,8 @@ export interface ClientDispatchEvents
|
|
23
24
|
RemoteServerDispatchEvents,
|
24
25
|
UploadFilesDispatchEvents,
|
25
26
|
TrayDispatchEvents,
|
26
|
-
DesktopSettingsDispatchEvents
|
27
|
+
DesktopSettingsDispatchEvents,
|
28
|
+
NotificationDispatchEvents {}
|
27
29
|
|
28
30
|
export type ClientDispatchEventKey = keyof ClientDispatchEvents;
|
29
31
|
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { DesktopNotificationResult, ShowDesktopNotificationParams } from '../types';
|
2
|
+
|
3
|
+
export interface NotificationDispatchEvents {
|
4
|
+
isMainWindowHidden: () => boolean;
|
5
|
+
showDesktopNotification: (params: ShowDesktopNotificationParams) => DesktopNotificationResult;
|
6
|
+
}
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { log } from 'debug';
|
2
1
|
import { ClientOptions } from 'openai';
|
3
2
|
|
4
3
|
import type { TracePayload } from '@/const/trace';
|
@@ -112,13 +111,6 @@ class ModelRuntime {
|
|
112
111
|
LobeCloudflareParams & { apiKey?: string; apiVersion?: string; baseURL?: string }
|
113
112
|
>,
|
114
113
|
) {
|
115
|
-
// @ts-expect-error ignore
|
116
|
-
if (providerRuntimeMap[provider]) {
|
117
|
-
log('Provider runtime map found for provider: %s', provider);
|
118
|
-
} else {
|
119
|
-
log('Provider runtime map not found for provider: %s', provider);
|
120
|
-
}
|
121
|
-
|
122
114
|
// @ts-expect-error runtime map not include vertex so it will be undefined
|
123
115
|
const providerAI = providerRuntimeMap[provider] ?? LobeOpenAI;
|
124
116
|
const runtimeModel: LobeRuntimeAI = new providerAI(params);
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { createTRPCClient, httpLink } from '@trpc/client';
|
2
|
-
import debug from 'debug';
|
3
2
|
import superjson from 'superjson';
|
4
3
|
import urlJoin from 'url-join';
|
5
4
|
|
@@ -14,11 +13,7 @@ import { KeyVaultsGateKeeper } from '@/server/modules/KeyVaultsEncrypt';
|
|
14
13
|
import { asyncRouter } from './index';
|
15
14
|
import type { AsyncRouter } from './index';
|
16
15
|
|
17
|
-
const log = debug('lobe-image:async-caller');
|
18
|
-
|
19
16
|
export const createAsyncServerClient = async (userId: string, payload: JWTPayload) => {
|
20
|
-
log('Creating async server client for userId: %s', userId);
|
21
|
-
|
22
17
|
const gateKeeper = await KeyVaultsGateKeeper.initWithEnvKey();
|
23
18
|
const headers: Record<string, string> = {
|
24
19
|
Authorization: `Bearer ${serverDBEnv.KEY_VAULTS_SECRET}`,
|
@@ -39,7 +34,6 @@ export const createAsyncServerClient = async (userId: string, payload: JWTPayloa
|
|
39
34
|
],
|
40
35
|
});
|
41
36
|
|
42
|
-
log('Async server client created successfully for userId: %s', userId);
|
43
37
|
return client;
|
44
38
|
};
|
45
39
|
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import {
|
2
|
+
DesktopNotificationResult,
|
3
|
+
ShowDesktopNotificationParams,
|
4
|
+
dispatch,
|
5
|
+
} from '@lobechat/electron-client-ipc';
|
6
|
+
|
7
|
+
/**
|
8
|
+
* 桌面通知服务
|
9
|
+
*/
|
10
|
+
export class DesktopNotificationService {
|
11
|
+
/**
|
12
|
+
* 显示桌面通知(仅在窗口隐藏时)
|
13
|
+
* @param params 通知参数
|
14
|
+
* @returns 通知结果
|
15
|
+
*/
|
16
|
+
async showNotification(
|
17
|
+
params: ShowDesktopNotificationParams,
|
18
|
+
): Promise<DesktopNotificationResult> {
|
19
|
+
return dispatch('showDesktopNotification', params);
|
20
|
+
}
|
21
|
+
|
22
|
+
/**
|
23
|
+
* 检查主窗口是否隐藏
|
24
|
+
* @returns 是否隐藏
|
25
|
+
*/
|
26
|
+
async isMainWindowHidden(): Promise<boolean> {
|
27
|
+
return dispatch('isMainWindowHidden');
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
export const desktopNotificationService = new DesktopNotificationService();
|
@@ -1,12 +1,13 @@
|
|
1
1
|
/* eslint-disable sort-keys-fix/sort-keys-fix, typescript-sort-keys/interface */
|
2
2
|
// Disable the auto sort key eslint rule to make the code more logic and readable
|
3
|
+
import { t } from 'i18next';
|
3
4
|
import { produce } from 'immer';
|
4
5
|
import { template } from 'lodash-es';
|
5
6
|
import { StateCreator } from 'zustand/vanilla';
|
6
7
|
|
7
8
|
import { LOADING_FLAT, MESSAGE_CANCEL_FLAT } from '@/const/message';
|
8
9
|
import { TraceEventType, TraceNameMap } from '@/const/trace';
|
9
|
-
import { isServerMode } from '@/const/version';
|
10
|
+
import { isDesktop, isServerMode } from '@/const/version';
|
10
11
|
import { knowledgeBaseQAPrompts } from '@/prompts/knowledgeBaseQA';
|
11
12
|
import { chatService } from '@/services/chat';
|
12
13
|
import { messageService } from '@/services/message';
|
@@ -84,6 +85,7 @@ export interface AIGenerateAction {
|
|
84
85
|
provider: string;
|
85
86
|
}) => Promise<{
|
86
87
|
isFunctionCall: boolean;
|
88
|
+
content: string;
|
87
89
|
traceId?: string;
|
88
90
|
}>;
|
89
91
|
/**
|
@@ -455,7 +457,7 @@ export const generateAIChat: StateCreator<
|
|
455
457
|
}
|
456
458
|
|
457
459
|
// 4. fetch the AI response
|
458
|
-
const { isFunctionCall } = await internal_fetchAIChatMessage({
|
460
|
+
const { isFunctionCall, content } = await internal_fetchAIChatMessage({
|
459
461
|
messages,
|
460
462
|
messageId: assistantId,
|
461
463
|
params,
|
@@ -470,6 +472,24 @@ export const generateAIChat: StateCreator<
|
|
470
472
|
threadId: params?.threadId,
|
471
473
|
inPortalThread: params?.inPortalThread,
|
472
474
|
});
|
475
|
+
} else {
|
476
|
+
// 显示桌面通知(仅在桌面端且窗口隐藏时)
|
477
|
+
if (isDesktop) {
|
478
|
+
try {
|
479
|
+
// 动态导入桌面通知服务,避免在非桌面端环境中导入
|
480
|
+
const { desktopNotificationService } = await import(
|
481
|
+
'@/services/electron/desktopNotification'
|
482
|
+
);
|
483
|
+
|
484
|
+
await desktopNotificationService.showNotification({
|
485
|
+
body: content,
|
486
|
+
title: t('notification.finishChatGeneration', { ns: 'electron' }),
|
487
|
+
});
|
488
|
+
} catch (error) {
|
489
|
+
// 静默处理错误,不影响正常流程
|
490
|
+
console.error('Desktop notification error:', error);
|
491
|
+
}
|
492
|
+
}
|
473
493
|
}
|
474
494
|
|
475
495
|
// 6. summary history if context messages is larger than historyCount
|
@@ -509,7 +529,7 @@ export const generateAIChat: StateCreator<
|
|
509
529
|
const chatConfig = agentChatConfigSelectors.currentChatConfig(getAgentStoreState());
|
510
530
|
|
511
531
|
const compiler = template(chatConfig.inputTemplate, {
|
512
|
-
interpolate: /{{\s*(text)\s*}}/g
|
532
|
+
interpolate: /{{\s*(text)\s*}}/g,
|
513
533
|
});
|
514
534
|
|
515
535
|
// ================================== //
|
@@ -528,20 +548,20 @@ export const generateAIChat: StateCreator<
|
|
528
548
|
|
529
549
|
// 2. replace inputMessage template
|
530
550
|
preprocessMsgs = !chatConfig.inputTemplate
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
551
|
+
? preprocessMsgs
|
552
|
+
: preprocessMsgs.map((m) => {
|
553
|
+
if (m.role === 'user') {
|
554
|
+
try {
|
555
|
+
return { ...m, content: compiler({ text: m.content }) };
|
556
|
+
} catch (error) {
|
557
|
+
console.error(error);
|
558
|
+
|
559
|
+
return m;
|
560
|
+
}
|
540
561
|
}
|
541
|
-
}
|
542
562
|
|
543
|
-
|
544
|
-
|
563
|
+
return m;
|
564
|
+
});
|
545
565
|
|
546
566
|
// 3. add systemRole
|
547
567
|
if (agentConfig.systemRole) {
|
@@ -753,7 +773,7 @@ export const generateAIChat: StateCreator<
|
|
753
773
|
|
754
774
|
internal_toggleChatLoading(false, messageId, n('generateMessage(end)') as string);
|
755
775
|
|
756
|
-
return { isFunctionCall, traceId: msgTraceId };
|
776
|
+
return { isFunctionCall, traceId: msgTraceId, content: output };
|
757
777
|
},
|
758
778
|
|
759
779
|
internal_resendMessage: async (
|