@lobehub/lobehub 2.0.0-next.74 → 2.0.0-next.76

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 (63) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/changelog/v1.json +18 -0
  3. package/locales/ar/chat.json +5 -0
  4. package/locales/ar/models.json +15 -0
  5. package/locales/ar/tool.json +12 -1
  6. package/locales/bg-BG/chat.json +5 -0
  7. package/locales/bg-BG/models.json +15 -0
  8. package/locales/bg-BG/tool.json +12 -1
  9. package/locales/de-DE/chat.json +5 -0
  10. package/locales/de-DE/models.json +15 -0
  11. package/locales/de-DE/tool.json +12 -1
  12. package/locales/en-US/models.json +15 -0
  13. package/locales/es-ES/chat.json +5 -0
  14. package/locales/es-ES/models.json +15 -0
  15. package/locales/es-ES/tool.json +12 -1
  16. package/locales/fa-IR/chat.json +5 -0
  17. package/locales/fa-IR/models.json +15 -0
  18. package/locales/fa-IR/tool.json +12 -1
  19. package/locales/fr-FR/chat.json +5 -0
  20. package/locales/fr-FR/models.json +15 -0
  21. package/locales/fr-FR/tool.json +12 -1
  22. package/locales/it-IT/chat.json +5 -0
  23. package/locales/it-IT/models.json +15 -0
  24. package/locales/it-IT/tool.json +12 -1
  25. package/locales/ja-JP/chat.json +5 -0
  26. package/locales/ja-JP/models.json +15 -0
  27. package/locales/ja-JP/tool.json +12 -1
  28. package/locales/ko-KR/chat.json +5 -0
  29. package/locales/ko-KR/models.json +15 -0
  30. package/locales/ko-KR/tool.json +12 -1
  31. package/locales/nl-NL/chat.json +5 -0
  32. package/locales/nl-NL/models.json +15 -0
  33. package/locales/nl-NL/tool.json +12 -1
  34. package/locales/pl-PL/chat.json +5 -0
  35. package/locales/pl-PL/models.json +15 -0
  36. package/locales/pl-PL/tool.json +12 -1
  37. package/locales/pt-BR/chat.json +5 -0
  38. package/locales/pt-BR/models.json +15 -0
  39. package/locales/pt-BR/tool.json +12 -1
  40. package/locales/ru-RU/chat.json +5 -0
  41. package/locales/ru-RU/models.json +15 -0
  42. package/locales/ru-RU/tool.json +12 -1
  43. package/locales/tr-TR/chat.json +5 -0
  44. package/locales/tr-TR/models.json +15 -0
  45. package/locales/tr-TR/tool.json +12 -1
  46. package/locales/vi-VN/chat.json +5 -0
  47. package/locales/vi-VN/models.json +15 -0
  48. package/locales/vi-VN/tool.json +12 -1
  49. package/locales/zh-CN/models.json +15 -0
  50. package/locales/zh-TW/chat.json +5 -0
  51. package/locales/zh-TW/models.json +15 -0
  52. package/locales/zh-TW/tool.json +12 -1
  53. package/package.json +1 -1
  54. package/packages/model-runtime/src/core/contextBuilders/openai.ts +2 -0
  55. package/packages/model-runtime/src/core/streams/openai/__snapshots__/responsesStream.test.ts.snap +1007 -0
  56. package/packages/model-runtime/src/core/streams/openai/openai.test.ts +310 -0
  57. package/packages/model-runtime/src/core/streams/openai/openai.ts +67 -0
  58. package/packages/model-runtime/src/providers/minimax/index.ts +36 -6
  59. package/packages/model-runtime/src/providers/novita/__snapshots__/index.test.ts.snap +584 -0
  60. package/packages/model-runtime/src/providers/openai/__snapshots__/index.test.ts.snap +517 -0
  61. package/packages/model-runtime/src/providers/ppio/__snapshots__/index.test.ts.snap +27 -0
  62. package/packages/utils/src/colorUtils.test.ts +167 -0
  63. package/src/locales/default/error.ts +2 -2
@@ -2225,6 +2225,9 @@
2225
2225
  "megrez-3b-instruct": {
2226
2226
  "description": "Megrez 3B Instruct, Wuwen Xinqiong tarafından geliştirilen düşük parametreli, yüksek verimli bir modeldir."
2227
2227
  },
2228
+ "meituan/longcat-flash-chat": {
2229
+ "description": "Meituan tarafından açık kaynak olarak sunulan, diyalog etkileşimi ve yapay zeka görevleri için optimize edilmiş düşünce içermeyen temel model; araç kullanımı ve karmaşık çok turlu etkileşim senaryolarında üstün performans gösterir."
2230
+ },
2228
2231
  "meta-llama-3-70b-instruct": {
2229
2232
  "description": "Akıl yürütme, kodlama ve geniş dil uygulamalarında mükemmel bir 70 milyar parametreli model."
2230
2233
  },
@@ -2456,6 +2459,9 @@
2456
2459
  "minimax-m2": {
2457
2460
  "description": "MiniMax M2, kodlama ve yardımcı iş akışları için özel olarak geliştirilmiş, verimli bir büyük dil modelidir."
2458
2461
  },
2462
+ "minimax/minimax-m2": {
2463
+ "description": "Verimli kodlama ve Agent iş akışları için özel olarak tasarlanmıştır."
2464
+ },
2459
2465
  "ministral-3b-latest": {
2460
2466
  "description": "Ministral 3B, Mistral'ın dünya çapında en üst düzey kenar modelidir."
2461
2467
  },
@@ -3371,6 +3377,12 @@
3371
3377
  "wizardlm2:8x22b": {
3372
3378
  "description": "WizardLM 2, Microsoft AI tarafından sunulan bir dil modelidir, karmaşık diyaloglar, çok dilli, akıl yürütme ve akıllı asistan alanlarında özellikle başarılıdır."
3373
3379
  },
3380
+ "x-ai/grok-4-fast": {
3381
+ "description": "Grok 4 Fast'i sunmaktan mutluluk duyuyoruz; bu, maliyet etkin çıkarım modelleri konusundaki en son ilerlememizdir."
3382
+ },
3383
+ "x-ai/grok-code-fast-1": {
3384
+ "description": "Hızlı ve ekonomik bir çıkarım modeli olan grok-code-fast-1'i tanıtmaktan memnuniyet duyuyoruz; özellikle temsilci tabanlı kodlamada üstün performans sergiler."
3385
+ },
3374
3386
  "x1": {
3375
3387
  "description": "Spark X1 modeli daha da geliştirilecek; önceki matematik görevlerinde ulusal liderlik temelinde, akıl yürütme, metin üretimi, dil anlama gibi genel görevlerde OpenAI o1 ve DeepSeek R1 ile karşılaştırılabilir sonuçlar elde edilecektir."
3376
3388
  },
@@ -3431,6 +3443,9 @@
3431
3443
  "yi-vision-v2": {
3432
3444
  "description": "Karmaşık görsel görevler için model, birden fazla resme dayalı yüksek performanslı anlama ve analiz yetenekleri sunar."
3433
3445
  },
3446
+ "z-ai/glm-4.6": {
3447
+ "description": "Zhipu'nun en yeni amiral gemisi modeli GLM-4.6; ileri düzey kodlama, uzun metin işleme, çıkarım ve yapay zeka yeteneklerinde seleflerini tamamen geride bırakıyor."
3448
+ },
3434
3449
  "zai-org/GLM-4.5": {
3435
3450
  "description": "GLM-4.5, akıllı ajan uygulamaları için tasarlanmış temel modeldir ve Mixture-of-Experts (MoE) mimarisi kullanır. Araç çağrısı, web tarama, yazılım mühendisliği ve ön uç programlama alanlarında derin optimizasyonlar içerir. Claude Code, Roo Code gibi kod ajanlarına sorunsuz entegrasyon destekler. GLM-4.5, karmaşık çıkarım ve günlük kullanım gibi çeşitli senaryolara uyum sağlayan hibrit çıkarım moduna sahiptir."
3436
3451
  },
@@ -15,6 +15,12 @@
15
15
  "prompt": "İpucu"
16
16
  },
17
17
  "localFiles": {
18
+ "editFile": {
19
+ "newString": "Şununla değiştir",
20
+ "oldString": "Aranacak içerik",
21
+ "replaceAll": "Tüm eşleşmeleri değiştir",
22
+ "replaceFirst": "Yalnızca ilk eşleşmeyi değiştir"
23
+ },
18
24
  "file": "Dosya",
19
25
  "folder": "Klasör",
20
26
  "moveFiles": {
@@ -34,7 +40,12 @@
34
40
  "readFile": "Dosyayı Oku",
35
41
  "readFileError": "Dosya okunamadı, lütfen dosya yolunu kontrol edin",
36
42
  "readFiles": "Dosyaları Oku",
37
- "readFilesError": "Dosyalar okunamadı, lütfen dosya yolunu kontrol edin"
43
+ "readFilesError": "Dosyalar okunamadı, lütfen dosya yolunu kontrol edin",
44
+ "writeFile": {
45
+ "characters": "Karakter",
46
+ "preview": "İçerik Önizlemesi",
47
+ "truncated": "Kısaltıldı"
48
+ }
38
49
  },
39
50
  "search": {
40
51
  "createNewSearch": "Yeni bir arama kaydı oluştur",
@@ -330,6 +330,11 @@
330
330
  "screenshot": "Ảnh chụp màn hình",
331
331
  "settings": "Cài đặt xuất",
332
332
  "text": "Văn bản",
333
+ "widthMode": {
334
+ "label": "Chế độ chiều rộng",
335
+ "narrow": "Chế độ màn hình hẹp",
336
+ "wide": "Chế độ màn hình rộng"
337
+ },
333
338
  "withBackground": "Bao gồm hình nền",
334
339
  "withFooter": "Bao gồm chân trang",
335
340
  "withPluginInfo": "Bao gồm thông tin plugin",
@@ -2225,6 +2225,9 @@
2225
2225
  "megrez-3b-instruct": {
2226
2226
  "description": "Megrez 3B Instruct là mô hình hiệu quả với số lượng tham số nhỏ do Wuwen Xinqiong phát triển."
2227
2227
  },
2228
+ "meituan/longcat-flash-chat": {
2229
+ "description": "Longcat Flash Chat là mô hình nền không tư duy do Meituan mã nguồn mở, được tối ưu hóa cho tương tác hội thoại và nhiệm vụ của tác nhân, nổi bật trong việc gọi công cụ và các tình huống tương tác nhiều vòng phức tạp."
2230
+ },
2228
2231
  "meta-llama-3-70b-instruct": {
2229
2232
  "description": "Mô hình 70 tỷ tham số mạnh mẽ, xuất sắc trong lý luận, lập trình và các ứng dụng ngôn ngữ rộng lớn."
2230
2233
  },
@@ -2456,6 +2459,9 @@
2456
2459
  "minimax-m2": {
2457
2460
  "description": "MiniMax M2 là một mô hình ngôn ngữ lớn hiệu quả, được xây dựng dành riêng cho quy trình làm việc liên quan đến lập trình và tác vụ đại lý."
2458
2461
  },
2462
+ "minimax/minimax-m2": {
2463
+ "description": "Được sinh ra để phục vụ mã hóa hiệu quả và quy trình làm việc của Agent."
2464
+ },
2459
2465
  "ministral-3b-latest": {
2460
2466
  "description": "Ministral 3B là mô hình hàng đầu thế giới của Mistral về hiệu suất cạnh biên."
2461
2467
  },
@@ -3371,6 +3377,12 @@
3371
3377
  "wizardlm2:8x22b": {
3372
3378
  "description": "WizardLM 2 là mô hình ngôn ngữ do Microsoft AI cung cấp, đặc biệt xuất sắc trong các lĩnh vực đối thoại phức tạp, đa ngôn ngữ, suy luận và trợ lý thông minh."
3373
3379
  },
3380
+ "x-ai/grok-4-fast": {
3381
+ "description": "Chúng tôi rất vui mừng ra mắt Grok 4 Fast, bước tiến mới nhất của chúng tôi trong các mô hình suy luận hiệu quả về chi phí."
3382
+ },
3383
+ "x-ai/grok-code-fast-1": {
3384
+ "description": "Chúng tôi rất vui mừng giới thiệu grok-code-fast-1, một mô hình suy luận nhanh và tiết kiệm chi phí, nổi bật trong mã hóa cho tác nhân."
3385
+ },
3374
3386
  "x1": {
3375
3387
  "description": "Mô hình Spark X1 sẽ được nâng cấp thêm, trên nền tảng dẫn đầu trong các nhiệm vụ toán học trong nước, đạt được hiệu quả trong các nhiệm vụ chung như suy luận, tạo văn bản, hiểu ngôn ngữ tương đương với OpenAI o1 và DeepSeek R1."
3376
3388
  },
@@ -3431,6 +3443,9 @@
3431
3443
  "yi-vision-v2": {
3432
3444
  "description": "Mô hình nhiệm vụ thị giác phức tạp, cung cấp khả năng hiểu và phân tích hiệu suất cao dựa trên nhiều hình ảnh."
3433
3445
  },
3446
+ "z-ai/glm-4.6": {
3447
+ "description": "GLM-4.6, mô hình hàng đầu mới nhất của Zhipu AI, vượt trội hoàn toàn so với thế hệ trước về mã hóa nâng cao, xử lý văn bản dài, suy luận và năng lực tác nhân."
3448
+ },
3434
3449
  "zai-org/GLM-4.5": {
3435
3450
  "description": "GLM-4.5 là mô hình nền tảng dành cho ứng dụng tác nhân thông minh, sử dụng kiến trúc chuyên gia hỗn hợp (Mixture-of-Experts). Được tối ưu sâu trong các lĩnh vực gọi công cụ, duyệt web, kỹ thuật phần mềm và lập trình front-end, hỗ trợ tích hợp liền mạch vào các tác nhân mã như Claude Code, Roo Code. GLM-4.5 sử dụng chế độ suy luận hỗn hợp, thích ứng với nhiều kịch bản ứng dụng như suy luận phức tạp và sử dụng hàng ngày."
3436
3451
  },
@@ -15,6 +15,12 @@
15
15
  "prompt": "Từ khóa"
16
16
  },
17
17
  "localFiles": {
18
+ "editFile": {
19
+ "newString": "Thay thế bằng",
20
+ "oldString": "Nội dung tìm kiếm",
21
+ "replaceAll": "Thay thế tất cả các mục khớp",
22
+ "replaceFirst": "Chỉ thay thế mục khớp đầu tiên"
23
+ },
18
24
  "file": "Tệp",
19
25
  "folder": "Thư mục",
20
26
  "moveFiles": {
@@ -34,7 +40,12 @@
34
40
  "readFile": "Đọc tệp",
35
41
  "readFileError": "Đọc tệp thất bại, vui lòng kiểm tra đường dẫn tệp có đúng không",
36
42
  "readFiles": "Đọc tệp",
37
- "readFilesError": "Đọc tệp thất bại, vui lòng kiểm tra đường dẫn tệp có đúng không"
43
+ "readFilesError": "Đọc tệp thất bại, vui lòng kiểm tra đường dẫn tệp có đúng không",
44
+ "writeFile": {
45
+ "characters": "Ký tự",
46
+ "preview": "Xem trước nội dung",
47
+ "truncated": "Đã bị cắt bớt"
48
+ }
38
49
  },
39
50
  "search": {
40
51
  "createNewSearch": "Tạo mới tìm kiếm",
@@ -2225,6 +2225,9 @@
2225
2225
  "megrez-3b-instruct": {
2226
2226
  "description": "Megrez 3B Instruct 是无问芯穹推出的小参数量高效模型。"
2227
2227
  },
2228
+ "meituan/longcat-flash-chat": {
2229
+ "description": "美团开源的专为对话交互和智能体任务优化的非思维型基础模型,在工具调用和复杂多轮交互场景中表现突出"
2230
+ },
2228
2231
  "meta-llama-3-70b-instruct": {
2229
2232
  "description": "一个强大的700亿参数模型,在推理、编码和广泛的语言应用方面表现出色。"
2230
2233
  },
@@ -2456,6 +2459,9 @@
2456
2459
  "minimax-m2": {
2457
2460
  "description": "MiniMax M2 是专为编码和代理工作流程构建的高效大型语言模型。"
2458
2461
  },
2462
+ "minimax/minimax-m2": {
2463
+ "description": "专为高效编码与 Agent 工作流而生"
2464
+ },
2459
2465
  "ministral-3b-latest": {
2460
2466
  "description": "Ministral 3B 是Mistral的世界顶级边缘模型。"
2461
2467
  },
@@ -3371,6 +3377,12 @@
3371
3377
  "wizardlm2:8x22b": {
3372
3378
  "description": "WizardLM 2 是微软AI提供的语言模型,在复杂对话、多语言、推理和智能助手领域表现尤为出色。"
3373
3379
  },
3380
+ "x-ai/grok-4-fast": {
3381
+ "description": "我们很高兴发布 Grok 4 Fast,这是我们在成本效益推理模型方面的最新进展。"
3382
+ },
3383
+ "x-ai/grok-code-fast-1": {
3384
+ "description": "我们很高兴推出 grok-code-fast-1,这是一款快速且经济高效的推理模型,在代理编码方面表现出色。"
3385
+ },
3374
3386
  "x1": {
3375
3387
  "description": "Spark X1 模型将进一步升级,在原来数学任务国内领先基础上,推理、文本生成、语言理解等通用任务实现效果对标 OpenAI o1 和 DeepSeek R1。"
3376
3388
  },
@@ -3431,6 +3443,9 @@
3431
3443
  "yi-vision-v2": {
3432
3444
  "description": "复杂视觉任务模型,提供基于多张图片的高性能理解、分析能力。"
3433
3445
  },
3446
+ "z-ai/glm-4.6": {
3447
+ "description": "智谱最新旗舰模型 GLM-4.6,在高级编码、长文本处理、推理与智能体能力上全面超越前代。"
3448
+ },
3434
3449
  "zai-org/GLM-4.5": {
3435
3450
  "description": "GLM-4.5 是一款专为智能体应用打造的基础模型,使用了混合专家(Mixture-of-Experts)架构。在工具调用、网页浏览、软件工程、前端编程领域进行了深度优化,支持无缝接入 Claude Code、Roo Code 等代码智能体中使用。GLM-4.5 采用混合推理模式,可以适应复杂推理和日常使用等多种应用场景。"
3436
3451
  },
@@ -330,6 +330,11 @@
330
330
  "screenshot": "截圖",
331
331
  "settings": "導出設置",
332
332
  "text": "文本",
333
+ "widthMode": {
334
+ "label": "寬度模式",
335
+ "narrow": "窄螢幕模式",
336
+ "wide": "寬螢幕模式"
337
+ },
333
338
  "withBackground": "包含背景圖片",
334
339
  "withFooter": "包含頁腳",
335
340
  "withPluginInfo": "包含插件信息",
@@ -2225,6 +2225,9 @@
2225
2225
  "megrez-3b-instruct": {
2226
2226
  "description": "Megrez 3B Instruct 是無問芯穹推出的小參數量高效模型。"
2227
2227
  },
2228
+ "meituan/longcat-flash-chat": {
2229
+ "description": "美團開源的專為對話互動與智慧體任務優化的非思維型基礎模型,在工具調用與複雜多輪互動場景中表現出色"
2230
+ },
2228
2231
  "meta-llama-3-70b-instruct": {
2229
2232
  "description": "一個強大的70億參數模型,在推理、編碼和廣泛的語言應用中表現出色。"
2230
2233
  },
@@ -2456,6 +2459,9 @@
2456
2459
  "minimax-m2": {
2457
2460
  "description": "MiniMax M2 是專為編碼與代理工作流程打造的高效大型語言模型。"
2458
2461
  },
2462
+ "minimax/minimax-m2": {
2463
+ "description": "專為高效編碼與 Agent 工作流程而設計"
2464
+ },
2459
2465
  "ministral-3b-latest": {
2460
2466
  "description": "Ministral 3B 是 Mistral 的全球頂尖邊緣模型。"
2461
2467
  },
@@ -3371,6 +3377,12 @@
3371
3377
  "wizardlm2:8x22b": {
3372
3378
  "description": "WizardLM 2 是微軟 AI 提供的語言模型,在複雜對話、多語言、推理和智能助手領域表現尤為出色。"
3373
3379
  },
3380
+ "x-ai/grok-4-fast": {
3381
+ "description": "我們很高興推出 Grok 4 Fast,這是我們在成本效益推理模型方面的最新進展。"
3382
+ },
3383
+ "x-ai/grok-code-fast-1": {
3384
+ "description": "我們很高興推出 grok-code-fast-1,這是一款快速且具成本效益的推理模型,在代理編碼方面表現優異。"
3385
+ },
3374
3386
  "x1": {
3375
3387
  "description": "Spark X1 模型將進一步升級,在原來數學任務國內領先的基礎上,推理、文本生成、語言理解等通用任務實現效果對標 OpenAI o1 和 DeepSeek R1。"
3376
3388
  },
@@ -3431,6 +3443,9 @@
3431
3443
  "yi-vision-v2": {
3432
3444
  "description": "複雜視覺任務模型,提供基於多張圖片的高性能理解、分析能力。"
3433
3445
  },
3446
+ "z-ai/glm-4.6": {
3447
+ "description": "智譜最新旗艦模型 GLM-4.6,在高階編碼、長文本處理、推理與智慧體能力上全面超越前代。"
3448
+ },
3434
3449
  "zai-org/GLM-4.5": {
3435
3450
  "description": "GLM-4.5 是一款專為智能體應用打造的基礎模型,使用了混合專家(Mixture-of-Experts)架構。在工具調用、網頁瀏覽、軟體工程、前端程式設計領域進行了深度優化,支持無縫接入 Claude Code、Roo Code 等程式碼智能體中使用。GLM-4.5 採用混合推理模式,可以適應複雜推理和日常使用等多種應用場景。"
3436
3451
  },
@@ -15,6 +15,12 @@
15
15
  "prompt": "提示詞"
16
16
  },
17
17
  "localFiles": {
18
+ "editFile": {
19
+ "newString": "取代為",
20
+ "oldString": "尋找內容",
21
+ "replaceAll": "取代所有符合項目",
22
+ "replaceFirst": "僅取代第一個符合項目"
23
+ },
18
24
  "file": "檔案",
19
25
  "folder": "資料夾",
20
26
  "moveFiles": {
@@ -34,7 +40,12 @@
34
40
  "readFile": "讀取檔案",
35
41
  "readFileError": "讀取檔案失敗,請檢查檔案路徑是否正確",
36
42
  "readFiles": "讀取檔案",
37
- "readFilesError": "讀取檔案失敗,請檢查檔案路徑是否正確"
43
+ "readFilesError": "讀取檔案失敗,請檢查檔案路徑是否正確",
44
+ "writeFile": {
45
+ "characters": "字元",
46
+ "preview": "內容預覽",
47
+ "truncated": "已截斷"
48
+ }
38
49
  },
39
50
  "search": {
40
51
  "createNewSearch": "建立新的搜尋紀錄",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/lobehub",
3
- "version": "2.0.0-next.74",
3
+ "version": "2.0.0-next.76",
4
4
  "description": "LobeHub - an open-source,comprehensive AI Agent 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",
@@ -51,6 +51,8 @@ export const convertOpenAIMessages = async (messages: OpenAI.ChatCompletionMessa
51
51
 
52
52
  // it's compatible for DeepSeek
53
53
  if (msg.reasoning_content !== undefined) result.reasoning_content = msg.reasoning_content;
54
+ // MiniMax uses reasoning_details for historical thinking, so forward it unchanged
55
+ if (msg.reasoning_details !== undefined) result.reasoning_details = msg.reasoning_details;
54
56
 
55
57
  return result;
56
58
  }),