@lobehub/chat 1.19.30 → 1.19.31
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 +25 -0
- package/locales/ar/models.json +12 -0
- package/locales/bg-BG/models.json +12 -0
- package/locales/de-DE/models.json +12 -0
- package/locales/en-US/models.json +12 -0
- package/locales/es-ES/models.json +12 -0
- package/locales/fr-FR/models.json +12 -0
- package/locales/it-IT/models.json +12 -0
- package/locales/ja-JP/models.json +12 -0
- package/locales/ko-KR/models.json +12 -0
- package/locales/nl-NL/models.json +12 -0
- package/locales/pl-PL/models.json +12 -0
- package/locales/pt-BR/models.json +12 -0
- package/locales/ru-RU/models.json +12 -0
- package/locales/tr-TR/models.json +12 -0
- package/locales/vi-VN/models.json +12 -0
- package/locales/zh-CN/models.json +13 -1
- package/locales/zh-TW/models.json +12 -0
- package/package.json +1 -1
- package/src/config/modelProviders/google.ts +54 -2
- package/src/libs/agent-runtime/google/index.test.ts +99 -5
- package/src/libs/agent-runtime/google/index.ts +58 -30
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,31 @@
|
|
2
2
|
|
3
3
|
# Changelog
|
4
4
|
|
5
|
+
### [Version 1.19.31](https://github.com/lobehub/lobe-chat/compare/v1.19.30...v1.19.31)
|
6
|
+
|
7
|
+
<sup>Released on **2024-09-24**</sup>
|
8
|
+
|
9
|
+
#### 💄 Styles
|
10
|
+
|
11
|
+
- **misc**: Add google gemini 1.5 002 series.
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
<details>
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
17
|
+
|
18
|
+
#### Styles
|
19
|
+
|
20
|
+
- **misc**: Add google gemini 1.5 002 series, closes [#4118](https://github.com/lobehub/lobe-chat/issues/4118) ([10145fa](https://github.com/lobehub/lobe-chat/commit/10145fa))
|
21
|
+
|
22
|
+
</details>
|
23
|
+
|
24
|
+
<div align="right">
|
25
|
+
|
26
|
+
[](#readme-top)
|
27
|
+
|
28
|
+
</div>
|
29
|
+
|
5
30
|
### [Version 1.19.30](https://github.com/lobehub/lobe-chat/compare/v1.19.29...v1.19.30)
|
6
31
|
|
7
32
|
<sup>Released on **2024-09-24**</sup>
|
package/locales/ar/models.json
CHANGED
@@ -332,9 +332,15 @@
|
|
332
332
|
"gemini-1.5-flash-001": {
|
333
333
|
"description": "Gemini 1.5 Flash 001 هو نموذج متعدد الوسائط فعال، يدعم التوسع في التطبيقات الواسعة."
|
334
334
|
},
|
335
|
+
"gemini-1.5-flash-002": {
|
336
|
+
"description": "جمني 1.5 فلاش 002 هو نموذج متعدد الوسائط فعال، يدعم توسيع التطبيقات على نطاق واسع."
|
337
|
+
},
|
335
338
|
"gemini-1.5-flash-8b-exp-0827": {
|
336
339
|
"description": "Gemini 1.5 Flash 8B 0827 مصمم لمعالجة سيناريوهات المهام الكبيرة، ويوفر سرعة معالجة لا مثيل لها."
|
337
340
|
},
|
341
|
+
"gemini-1.5-flash-8b-exp-0924": {
|
342
|
+
"description": "جمني 1.5 فلاش 8B 0924 هو النموذج التجريبي الأحدث، حيث حقق تحسينات ملحوظة في الأداء في حالات الاستخدام النصية ومتعددة الوسائط."
|
343
|
+
},
|
338
344
|
"gemini-1.5-flash-exp-0827": {
|
339
345
|
"description": "Gemini 1.5 Flash 0827 يوفر قدرات معالجة متعددة الوسائط محسّنة، مناسبة لمجموعة متنوعة من سيناريوهات المهام المعقدة."
|
340
346
|
},
|
@@ -344,6 +350,9 @@
|
|
344
350
|
"gemini-1.5-pro-001": {
|
345
351
|
"description": "Gemini 1.5 Pro 001 هو حل ذكاء اصطناعي متعدد الوسائط قابل للتوسع، يدعم مجموعة واسعة من المهام المعقدة."
|
346
352
|
},
|
353
|
+
"gemini-1.5-pro-002": {
|
354
|
+
"description": "جمني 1.5 برو 002 هو النموذج الأحدث الجاهز للإنتاج، حيث يقدم مخرجات ذات جودة أعلى، مع تحسينات ملحوظة خاصة في الرياضيات والسياقات الطويلة والمهام البصرية."
|
355
|
+
},
|
347
356
|
"gemini-1.5-pro-exp-0801": {
|
348
357
|
"description": "Gemini 1.5 Pro 0801 يوفر قدرات معالجة متعددة الوسائط ممتازة، مما يوفر مرونة أكبر لتطوير التطبيقات."
|
349
358
|
},
|
@@ -874,6 +883,9 @@
|
|
874
883
|
"taichu_llm": {
|
875
884
|
"description": "نموذج اللغة الكبير TaiChu يتمتع بقدرات قوية في فهم اللغة، بالإضافة إلى إنشاء النصوص، والإجابة على الأسئلة، وبرمجة الأكواد، والحسابات الرياضية، والاستدلال المنطقي، وتحليل المشاعر، وتلخيص النصوص. يجمع بشكل مبتكر بين التدريب المسبق على البيانات الضخمة والمعرفة الغنية من مصادر متعددة، من خلال تحسين تقنيات الخوارزميات باستمرار واستيعاب المعرفة الجديدة من البيانات النصية الضخمة، مما يحقق تطورًا مستمرًا في أداء النموذج. يوفر للمستخدمين معلومات وخدمات أكثر سهولة وتجربة أكثر ذكاءً."
|
876
885
|
},
|
886
|
+
"taichu_vqa": {
|
887
|
+
"description": "تايتشو 2.0V يجمع بين فهم الصور، ونقل المعرفة، والاستدلال المنطقي، ويظهر أداءً بارزًا في مجال الأسئلة والأجوبة النصية والصورية."
|
888
|
+
},
|
877
889
|
"togethercomputer/StripedHyena-Nous-7B": {
|
878
890
|
"description": "StripedHyena Nous (7B) يوفر قدرة حسابية معززة من خلال استراتيجيات فعالة وهندسة نموذجية."
|
879
891
|
},
|
@@ -332,9 +332,15 @@
|
|
332
332
|
"gemini-1.5-flash-001": {
|
333
333
|
"description": "Gemini 1.5 Flash 001 е ефективен многомодален модел, който поддържа разширяване на широк спектър от приложения."
|
334
334
|
},
|
335
|
+
"gemini-1.5-flash-002": {
|
336
|
+
"description": "Gemini 1.5 Flash 002 е ефективен мултимодален модел, който поддържа разширения за широко приложение."
|
337
|
+
},
|
335
338
|
"gemini-1.5-flash-8b-exp-0827": {
|
336
339
|
"description": "Gemini 1.5 Flash 8B 0827 е проектиран за обработка на мащабни задачи, предлагащ ненадмината скорост на обработка."
|
337
340
|
},
|
341
|
+
"gemini-1.5-flash-8b-exp-0924": {
|
342
|
+
"description": "Gemini 1.5 Flash 8B 0924 е най-новият експериментален модел, който показва значителни подобрения в производителността както в текстови, така и в мултимодални приложения."
|
343
|
+
},
|
338
344
|
"gemini-1.5-flash-exp-0827": {
|
339
345
|
"description": "Gemini 1.5 Flash 0827 предлага оптимизирани многомодални обработващи способности, подходящи за множество сложни задачи."
|
340
346
|
},
|
@@ -344,6 +350,9 @@
|
|
344
350
|
"gemini-1.5-pro-001": {
|
345
351
|
"description": "Gemini 1.5 Pro 001 е разширяемо многомодално AI решение, което поддържа широк спектър от сложни задачи."
|
346
352
|
},
|
353
|
+
"gemini-1.5-pro-002": {
|
354
|
+
"description": "Gemini 1.5 Pro 002 е най-новият модел, готов за производство, който предлага по-високо качество на изхода, особено в математически, дълги контексти и визуални задачи."
|
355
|
+
},
|
347
356
|
"gemini-1.5-pro-exp-0801": {
|
348
357
|
"description": "Gemini 1.5 Pro 0801 предлага отлични способности за обработка на многомодални данни, предоставяйки по-голяма гъвкавост за разработка на приложения."
|
349
358
|
},
|
@@ -874,6 +883,9 @@
|
|
874
883
|
"taichu_llm": {
|
875
884
|
"description": "Моделът на езика TaiChu е с изключителни способности за разбиране на езика, текстово генериране, отговори на знания, програмиране, математически изчисления, логическо разсъждение, анализ на емоции, резюмиране на текст и др. Иновативно комбинира предварително обучение с големи данни и разнообразни източници на знания, чрез непрекъснато усъвършенстване на алгоритмичните технологии и усвояване на нови знания от масивни текстови данни, за да осигури на потребителите по-удобна информация и услуги, както и по-интелигентно изживяване."
|
876
885
|
},
|
886
|
+
"taichu_vqa": {
|
887
|
+
"description": "Taichu 2.0V обединява способности за разбиране на изображения, прехвърляне на знания, логическо обяснение и др., и се представя отлично в областта на въпросите и отговорите на текст и изображения."
|
888
|
+
},
|
877
889
|
"togethercomputer/StripedHyena-Nous-7B": {
|
878
890
|
"description": "StripedHyena Nous (7B) предлага подобрена изчислителна мощ чрез ефективни стратегии и архитектура на модела."
|
879
891
|
},
|
@@ -332,9 +332,15 @@
|
|
332
332
|
"gemini-1.5-flash-001": {
|
333
333
|
"description": "Gemini 1.5 Flash 001 ist ein effizientes multimodales Modell, das eine breite Anwendbarkeit unterstützt."
|
334
334
|
},
|
335
|
+
"gemini-1.5-flash-002": {
|
336
|
+
"description": "Gemini 1.5 Flash 002 ist ein effizientes multimodales Modell, das eine breite Palette von Anwendungen unterstützt."
|
337
|
+
},
|
335
338
|
"gemini-1.5-flash-8b-exp-0827": {
|
336
339
|
"description": "Gemini 1.5 Flash 8B 0827 ist für die Verarbeitung großangelegter Aufgabenszenarien konzipiert und bietet unvergleichliche Verarbeitungsgeschwindigkeit."
|
337
340
|
},
|
341
|
+
"gemini-1.5-flash-8b-exp-0924": {
|
342
|
+
"description": "Gemini 1.5 Flash 8B 0924 ist das neueste experimentelle Modell, das in Text- und multimodalen Anwendungsfällen erhebliche Leistungsverbesserungen aufweist."
|
343
|
+
},
|
338
344
|
"gemini-1.5-flash-exp-0827": {
|
339
345
|
"description": "Gemini 1.5 Flash 0827 bietet optimierte multimodale Verarbeitungsfähigkeiten, die für verschiedene komplexe Aufgabenszenarien geeignet sind."
|
340
346
|
},
|
@@ -344,6 +350,9 @@
|
|
344
350
|
"gemini-1.5-pro-001": {
|
345
351
|
"description": "Gemini 1.5 Pro 001 ist eine skalierbare multimodale KI-Lösung, die eine breite Palette komplexer Aufgaben unterstützt."
|
346
352
|
},
|
353
|
+
"gemini-1.5-pro-002": {
|
354
|
+
"description": "Gemini 1.5 Pro 002 ist das neueste produktionsbereite Modell, das eine höhere Ausgabequalität bietet, insbesondere bei mathematischen, langen Kontexten und visuellen Aufgaben erhebliche Verbesserungen aufweist."
|
355
|
+
},
|
347
356
|
"gemini-1.5-pro-exp-0801": {
|
348
357
|
"description": "Gemini 1.5 Pro 0801 bietet hervorragende multimodale Verarbeitungsfähigkeiten und bringt mehr Flexibilität in die Anwendungsentwicklung."
|
349
358
|
},
|
@@ -874,6 +883,9 @@
|
|
874
883
|
"taichu_llm": {
|
875
884
|
"description": "Das Zīdōng Taichu Sprachmodell verfügt über außergewöhnliche Sprachverständnisfähigkeiten sowie Fähigkeiten in Textgenerierung, Wissensabfrage, Programmierung, mathematischen Berechnungen, logischem Denken, Sentimentanalyse und Textzusammenfassung. Es kombiniert innovativ große Datenvortrainings mit reichhaltigem Wissen aus mehreren Quellen, verfeinert kontinuierlich die Algorithmen und absorbiert ständig neues Wissen aus umfangreichen Textdaten in Bezug auf Vokabular, Struktur, Grammatik und Semantik, um die Leistung des Modells kontinuierlich zu verbessern. Es bietet den Nutzern bequemere Informationen und Dienstleistungen sowie ein intelligenteres Erlebnis."
|
876
885
|
},
|
886
|
+
"taichu_vqa": {
|
887
|
+
"description": "Taichu 2.0V vereint Fähigkeiten wie Bildverständnis, Wissensübertragung und logische Attribution und zeigt herausragende Leistungen im Bereich der Bild-Text-Fragen."
|
888
|
+
},
|
877
889
|
"togethercomputer/StripedHyena-Nous-7B": {
|
878
890
|
"description": "StripedHyena Nous (7B) bietet durch effiziente Strategien und Modellarchitekturen verbesserte Rechenfähigkeiten."
|
879
891
|
},
|
@@ -332,9 +332,15 @@
|
|
332
332
|
"gemini-1.5-flash-001": {
|
333
333
|
"description": "Gemini 1.5 Flash 001 is an efficient multimodal model that supports extensive application scaling."
|
334
334
|
},
|
335
|
+
"gemini-1.5-flash-002": {
|
336
|
+
"description": "Gemini 1.5 Flash 002 is an efficient multimodal model that supports a wide range of applications."
|
337
|
+
},
|
335
338
|
"gemini-1.5-flash-8b-exp-0827": {
|
336
339
|
"description": "Gemini 1.5 Flash 8B 0827 is designed for handling large-scale task scenarios, providing unparalleled processing speed."
|
337
340
|
},
|
341
|
+
"gemini-1.5-flash-8b-exp-0924": {
|
342
|
+
"description": "Gemini 1.5 Flash 8B 0924 is the latest experimental model, showcasing significant performance improvements in both text and multimodal use cases."
|
343
|
+
},
|
338
344
|
"gemini-1.5-flash-exp-0827": {
|
339
345
|
"description": "Gemini 1.5 Flash 0827 offers optimized multimodal processing capabilities, suitable for a variety of complex task scenarios."
|
340
346
|
},
|
@@ -344,6 +350,9 @@
|
|
344
350
|
"gemini-1.5-pro-001": {
|
345
351
|
"description": "Gemini 1.5 Pro 001 is a scalable multimodal AI solution that supports a wide range of complex tasks."
|
346
352
|
},
|
353
|
+
"gemini-1.5-pro-002": {
|
354
|
+
"description": "Gemini 1.5 Pro 002 is the latest production-ready model, delivering higher quality outputs, with notable enhancements in mathematics, long-context, and visual tasks."
|
355
|
+
},
|
347
356
|
"gemini-1.5-pro-exp-0801": {
|
348
357
|
"description": "Gemini 1.5 Pro 0801 offers excellent multimodal processing capabilities, providing greater flexibility for application development."
|
349
358
|
},
|
@@ -874,6 +883,9 @@
|
|
874
883
|
"taichu_llm": {
|
875
884
|
"description": "The ZD Taichu language model possesses strong language understanding capabilities and excels in text creation, knowledge Q&A, code programming, mathematical calculations, logical reasoning, sentiment analysis, and text summarization. It innovatively combines large-scale pre-training with rich knowledge from multiple sources, continuously refining algorithmic techniques and absorbing new knowledge in vocabulary, structure, grammar, and semantics from vast text data, resulting in an evolving model performance. It provides users with more convenient information and services, as well as a more intelligent experience."
|
876
885
|
},
|
886
|
+
"taichu_vqa": {
|
887
|
+
"description": "Taichu 2.0V integrates capabilities such as image understanding, knowledge transfer, and logical reasoning, excelling in the field of image-text question answering."
|
888
|
+
},
|
877
889
|
"togethercomputer/StripedHyena-Nous-7B": {
|
878
890
|
"description": "StripedHyena Nous (7B) provides enhanced computational capabilities through efficient strategies and model architecture."
|
879
891
|
},
|
@@ -332,9 +332,15 @@
|
|
332
332
|
"gemini-1.5-flash-001": {
|
333
333
|
"description": "Gemini 1.5 Flash 001 es un modelo multimodal eficiente, que admite la escalabilidad para aplicaciones amplias."
|
334
334
|
},
|
335
|
+
"gemini-1.5-flash-002": {
|
336
|
+
"description": "Gemini 1.5 Flash 002 es un modelo multimodal eficiente, que admite una amplia gama de aplicaciones."
|
337
|
+
},
|
335
338
|
"gemini-1.5-flash-8b-exp-0827": {
|
336
339
|
"description": "Gemini 1.5 Flash 8B 0827 está diseñado para manejar escenarios de tareas a gran escala, ofreciendo una velocidad de procesamiento inigualable."
|
337
340
|
},
|
341
|
+
"gemini-1.5-flash-8b-exp-0924": {
|
342
|
+
"description": "Gemini 1.5 Flash 8B 0924 es el último modelo experimental, con mejoras significativas en el rendimiento tanto en casos de uso de texto como multimodal."
|
343
|
+
},
|
338
344
|
"gemini-1.5-flash-exp-0827": {
|
339
345
|
"description": "Gemini 1.5 Flash 0827 ofrece capacidades de procesamiento multimodal optimizadas, adecuadas para una variedad de escenarios de tareas complejas."
|
340
346
|
},
|
@@ -344,6 +350,9 @@
|
|
344
350
|
"gemini-1.5-pro-001": {
|
345
351
|
"description": "Gemini 1.5 Pro 001 es una solución de IA multimodal escalable, que admite una amplia gama de tareas complejas."
|
346
352
|
},
|
353
|
+
"gemini-1.5-pro-002": {
|
354
|
+
"description": "Gemini 1.5 Pro 002 es el último modelo listo para producción, que ofrece una calidad de salida superior, especialmente en tareas matemáticas, contextos largos y tareas visuales."
|
355
|
+
},
|
347
356
|
"gemini-1.5-pro-exp-0801": {
|
348
357
|
"description": "Gemini 1.5 Pro 0801 ofrece una excelente capacidad de procesamiento multimodal, brindando mayor flexibilidad para el desarrollo de aplicaciones."
|
349
358
|
},
|
@@ -874,6 +883,9 @@
|
|
874
883
|
"taichu_llm": {
|
875
884
|
"description": "El modelo de lenguaje Taichu de Zīdōng tiene una poderosa capacidad de comprensión del lenguaje, así como habilidades en creación de textos, preguntas y respuestas, programación de código, cálculos matemáticos, razonamiento lógico, análisis de sentimientos y resúmenes de texto. Combina de manera innovadora el preentrenamiento con grandes datos y un conocimiento rico de múltiples fuentes, perfeccionando continuamente la tecnología algorítmica y absorbiendo nuevos conocimientos en vocabulario, estructura, gramática y semántica de grandes volúmenes de datos textuales, logrando una evolución constante del modelo. Proporciona a los usuarios información y servicios más convenientes, así como una experiencia más inteligente."
|
876
885
|
},
|
886
|
+
"taichu_vqa": {
|
887
|
+
"description": "Taichu 2.0V combina capacidades de comprensión de imágenes, transferencia de conocimiento y atribución lógica, destacándose en el campo de preguntas y respuestas basadas en texto e imagen."
|
888
|
+
},
|
877
889
|
"togethercomputer/StripedHyena-Nous-7B": {
|
878
890
|
"description": "StripedHyena Nous (7B) proporciona una capacidad de cálculo mejorada a través de estrategias y arquitecturas de modelos eficientes."
|
879
891
|
},
|
@@ -332,9 +332,15 @@
|
|
332
332
|
"gemini-1.5-flash-001": {
|
333
333
|
"description": "Gemini 1.5 Flash 001 est un modèle multimodal efficace, prenant en charge l'extension d'applications variées."
|
334
334
|
},
|
335
|
+
"gemini-1.5-flash-002": {
|
336
|
+
"description": "Gemini 1.5 Flash 002 est un modèle multimodal efficace, prenant en charge une large gamme d'applications."
|
337
|
+
},
|
335
338
|
"gemini-1.5-flash-8b-exp-0827": {
|
336
339
|
"description": "Gemini 1.5 Flash 8B 0827 est conçu pour traiter des scénarios de tâches à grande échelle, offrant une vitesse de traitement inégalée."
|
337
340
|
},
|
341
|
+
"gemini-1.5-flash-8b-exp-0924": {
|
342
|
+
"description": "Gemini 1.5 Flash 8B 0924 est le dernier modèle expérimental, offrant des améliorations significatives en termes de performance dans les cas d'utilisation textuels et multimodaux."
|
343
|
+
},
|
338
344
|
"gemini-1.5-flash-exp-0827": {
|
339
345
|
"description": "Gemini 1.5 Flash 0827 offre des capacités de traitement multimodal optimisées, adaptées à divers scénarios de tâches complexes."
|
340
346
|
},
|
@@ -344,6 +350,9 @@
|
|
344
350
|
"gemini-1.5-pro-001": {
|
345
351
|
"description": "Gemini 1.5 Pro 001 est une solution d'IA multimodale extensible, prenant en charge une large gamme de tâches complexes."
|
346
352
|
},
|
353
|
+
"gemini-1.5-pro-002": {
|
354
|
+
"description": "Gemini 1.5 Pro 002 est le dernier modèle prêt pour la production, offrant une qualité de sortie supérieure, avec des améliorations notables dans les domaines des mathématiques, des contextes longs et des tâches visuelles."
|
355
|
+
},
|
347
356
|
"gemini-1.5-pro-exp-0801": {
|
348
357
|
"description": "Gemini 1.5 Pro 0801 offre d'excellentes capacités de traitement multimodal, apportant une plus grande flexibilité au développement d'applications."
|
349
358
|
},
|
@@ -874,6 +883,9 @@
|
|
874
883
|
"taichu_llm": {
|
875
884
|
"description": "Le modèle de langage Taichu Zidong possède une forte capacité de compréhension linguistique ainsi que des compétences en création de texte, questions-réponses, programmation, calcul mathématique, raisonnement logique, analyse des sentiments, et résumé de texte. Il combine de manière innovante le pré-entraînement sur de grandes données avec des connaissances riches provenant de multiples sources, en perfectionnant continuellement la technologie algorithmique et en intégrant de nouvelles connaissances sur le vocabulaire, la structure, la grammaire et le sens à partir de vastes ensembles de données textuelles, offrant aux utilisateurs des informations et des services plus pratiques ainsi qu'une expérience plus intelligente."
|
876
885
|
},
|
886
|
+
"taichu_vqa": {
|
887
|
+
"description": "Taichu 2.0V intègre des capacités de compréhension d'image, de transfert de connaissances et d'attribution logique, se distinguant dans le domaine des questions-réponses textuelles et visuelles."
|
888
|
+
},
|
877
889
|
"togethercomputer/StripedHyena-Nous-7B": {
|
878
890
|
"description": "StripedHyena Nous (7B) offre une capacité de calcul améliorée grâce à des stratégies et une architecture de modèle efficaces."
|
879
891
|
},
|
@@ -332,9 +332,15 @@
|
|
332
332
|
"gemini-1.5-flash-001": {
|
333
333
|
"description": "Gemini 1.5 Flash 001 è un modello multimodale efficiente, supporta l'espansione per applicazioni ampie."
|
334
334
|
},
|
335
|
+
"gemini-1.5-flash-002": {
|
336
|
+
"description": "Gemini 1.5 Flash 002 è un modello multimodale altamente efficiente, che supporta un'ampia gamma di applicazioni."
|
337
|
+
},
|
335
338
|
"gemini-1.5-flash-8b-exp-0827": {
|
336
339
|
"description": "Gemini 1.5 Flash 8B 0827 è progettato per gestire scenari di compiti su larga scala, offrendo una velocità di elaborazione senza pari."
|
337
340
|
},
|
341
|
+
"gemini-1.5-flash-8b-exp-0924": {
|
342
|
+
"description": "Gemini 1.5 Flash 8B 0924 è il modello sperimentale più recente, con miglioramenti significativi nelle prestazioni sia nei casi d'uso testuali che multimodali."
|
343
|
+
},
|
338
344
|
"gemini-1.5-flash-exp-0827": {
|
339
345
|
"description": "Gemini 1.5 Flash 0827 offre capacità di elaborazione multimodale ottimizzate, adatte a vari scenari di compiti complessi."
|
340
346
|
},
|
@@ -344,6 +350,9 @@
|
|
344
350
|
"gemini-1.5-pro-001": {
|
345
351
|
"description": "Gemini 1.5 Pro 001 è una soluzione AI multimodale scalabile, supporta un'ampia gamma di compiti complessi."
|
346
352
|
},
|
353
|
+
"gemini-1.5-pro-002": {
|
354
|
+
"description": "Gemini 1.5 Pro 002 è il modello più recente pronto per la produzione, che offre output di qualità superiore, con miglioramenti significativi in particolare in matematica, contesti lunghi e compiti visivi."
|
355
|
+
},
|
347
356
|
"gemini-1.5-pro-exp-0801": {
|
348
357
|
"description": "Gemini 1.5 Pro 0801 offre eccellenti capacità di elaborazione multimodale, fornendo maggiore flessibilità per lo sviluppo delle applicazioni."
|
349
358
|
},
|
@@ -874,6 +883,9 @@
|
|
874
883
|
"taichu_llm": {
|
875
884
|
"description": "Il modello linguistico Taichu di Zīdōng ha una straordinaria capacità di comprensione del linguaggio e abilità in creazione di testi, domande di conoscenza, programmazione, calcoli matematici, ragionamento logico, analisi del sentimento e sintesi di testi. Combina in modo innovativo il pre-addestramento su grandi dati con una ricca conoscenza multi-sorgente, affinando continuamente la tecnologia degli algoritmi e assorbendo costantemente nuove conoscenze da dati testuali massivi, migliorando continuamente le prestazioni del modello. Fornisce agli utenti informazioni e servizi più convenienti e un'esperienza più intelligente."
|
876
885
|
},
|
886
|
+
"taichu_vqa": {
|
887
|
+
"description": "Taichu 2.0V integra capacità di comprensione delle immagini, trasferimento di conoscenze e attribuzione logica, eccellendo nel campo delle domande e risposte basate su testo e immagini."
|
888
|
+
},
|
877
889
|
"togethercomputer/StripedHyena-Nous-7B": {
|
878
890
|
"description": "StripedHyena Nous (7B) offre capacità di calcolo potenziate attraverso strategie e architetture di modelli efficienti."
|
879
891
|
},
|
@@ -332,9 +332,15 @@
|
|
332
332
|
"gemini-1.5-flash-001": {
|
333
333
|
"description": "Gemini 1.5 Flash 001は、効率的なマルチモーダルモデルであり、幅広いアプリケーションの拡張をサポートします。"
|
334
334
|
},
|
335
|
+
"gemini-1.5-flash-002": {
|
336
|
+
"description": "Gemini 1.5 Flash 002は効率的なマルチモーダルモデルで、幅広いアプリケーションの拡張をサポートしています。"
|
337
|
+
},
|
335
338
|
"gemini-1.5-flash-8b-exp-0827": {
|
336
339
|
"description": "Gemini 1.5 Flash 8B 0827は、大規模なタスクシナリオの処理のために設計されており、比類のない処理速度を提供します。"
|
337
340
|
},
|
341
|
+
"gemini-1.5-flash-8b-exp-0924": {
|
342
|
+
"description": "Gemini 1.5 Flash 8B 0924は最新の実験モデルで、テキストおよびマルチモーダルのユースケースにおいて顕著な性能向上を実現しています。"
|
343
|
+
},
|
338
344
|
"gemini-1.5-flash-exp-0827": {
|
339
345
|
"description": "Gemini 1.5 Flash 0827は、最適化されたマルチモーダル処理能力を提供し、さまざまな複雑なタスクシナリオに適用できます。"
|
340
346
|
},
|
@@ -344,6 +350,9 @@
|
|
344
350
|
"gemini-1.5-pro-001": {
|
345
351
|
"description": "Gemini 1.5 Pro 001は、拡張可能なマルチモーダルAIソリューションであり、幅広い複雑なタスクをサポートします。"
|
346
352
|
},
|
353
|
+
"gemini-1.5-pro-002": {
|
354
|
+
"description": "Gemini 1.5 Pro 002は最新の生産準備モデルで、特に数学、長いコンテキスト、視覚タスクにおいて質の高い出力を提供し、顕著な向上を見せています。"
|
355
|
+
},
|
347
356
|
"gemini-1.5-pro-exp-0801": {
|
348
357
|
"description": "Gemini 1.5 Pro 0801は、優れたマルチモーダル処理能力を提供し、アプリケーション開発における柔軟性を高めます。"
|
349
358
|
},
|
@@ -874,6 +883,9 @@
|
|
874
883
|
"taichu_llm": {
|
875
884
|
"description": "紫東太初言語大モデルは、強力な言語理解能力とテキスト創作、知識問答、コードプログラミング、数学計算、論理推論、感情分析、テキスト要約などの能力を備えています。革新的に大データの事前学習と多源の豊富な知識を組み合わせ、アルゴリズム技術を継続的に磨き、膨大なテキストデータから語彙、構造、文法、意味などの新しい知識を吸収し、モデルの効果を進化させています。ユーザーにより便利な情報とサービス、よりインテリジェントな体験を提供します。"
|
876
885
|
},
|
886
|
+
"taichu_vqa": {
|
887
|
+
"description": "Taichu 2.0Vは画像理解、知識移転、論理的帰納などの能力を融合させており、テキストと画像の質問応答分野で優れたパフォーマンスを発揮しています。"
|
888
|
+
},
|
877
889
|
"togethercomputer/StripedHyena-Nous-7B": {
|
878
890
|
"description": "StripedHyena Nous (7B)は、高効率の戦略とモデルアーキテクチャを通じて、強化された計算能力を提供します。"
|
879
891
|
},
|
@@ -332,9 +332,15 @@
|
|
332
332
|
"gemini-1.5-flash-001": {
|
333
333
|
"description": "Gemini 1.5 Flash 001은 효율적인 다중 모달 모델로, 광범위한 응용 프로그램 확장을 지원합니다."
|
334
334
|
},
|
335
|
+
"gemini-1.5-flash-002": {
|
336
|
+
"description": "Gemini 1.5 Flash 002는 효율적인 다중 모달 모델로, 광범위한 응용 프로그램의 확장을 지원합니다."
|
337
|
+
},
|
335
338
|
"gemini-1.5-flash-8b-exp-0827": {
|
336
339
|
"description": "Gemini 1.5 Flash 8B 0827은 대규모 작업 시나리오 처리를 위해 설계되었으며, 비할 데 없는 처리 속도를 제공합니다."
|
337
340
|
},
|
341
|
+
"gemini-1.5-flash-8b-exp-0924": {
|
342
|
+
"description": "Gemini 1.5 Flash 8B 0924는 최신 실험 모델로, 텍스트 및 다중 모달 사용 사례에서 상당한 성능 향상을 보여줍니다."
|
343
|
+
},
|
338
344
|
"gemini-1.5-flash-exp-0827": {
|
339
345
|
"description": "Gemini 1.5 Flash 0827은 최적화된 다중 모달 처리 능력을 제공하며, 다양한 복잡한 작업 시나리오에 적합합니다."
|
340
346
|
},
|
@@ -344,6 +350,9 @@
|
|
344
350
|
"gemini-1.5-pro-001": {
|
345
351
|
"description": "Gemini 1.5 Pro 001은 확장 가능한 다중 모달 AI 솔루션으로, 광범위한 복잡한 작업을 지원합니다."
|
346
352
|
},
|
353
|
+
"gemini-1.5-pro-002": {
|
354
|
+
"description": "Gemini 1.5 Pro 002는 최신 생산 준비 모델로, 특히 수학, 긴 문맥 및 시각적 작업에서 더 높은 품질의 출력을 제공합니다."
|
355
|
+
},
|
347
356
|
"gemini-1.5-pro-exp-0801": {
|
348
357
|
"description": "Gemini 1.5 Pro 0801은 뛰어난 다중 모달 처리 능력을 제공하여 응용 프로그램 개발에 더 큰 유연성을 제공합니다."
|
349
358
|
},
|
@@ -874,6 +883,9 @@
|
|
874
883
|
"taichu_llm": {
|
875
884
|
"description": "자이동 태초 언어 대모델은 뛰어난 언어 이해 능력과 텍스트 창작, 지식 질문 응답, 코드 프로그래밍, 수학 계산, 논리 추론, 감정 분석, 텍스트 요약 등의 능력을 갖추고 있습니다. 혁신적으로 대규모 데이터 사전 훈련과 다원적 풍부한 지식을 결합하여 알고리즘 기술을 지속적으로 다듬고, 방대한 텍스트 데이터에서 어휘, 구조, 문법, 의미 등의 새로운 지식을 지속적으로 흡수하여 모델 성능을 지속적으로 진화시킵니다. 사용자에게 보다 편리한 정보와 서비스, 그리고 더 지능적인 경험을 제공합니다."
|
876
885
|
},
|
886
|
+
"taichu_vqa": {
|
887
|
+
"description": "Taichu 2.0V는 이미지 이해, 지식 이전, 논리적 귀속 등의 능력을 통합하여, 텍스트와 이미지 질문 응답 분야에서 뛰어난 성능을 발휘합니다."
|
888
|
+
},
|
877
889
|
"togethercomputer/StripedHyena-Nous-7B": {
|
878
890
|
"description": "StripedHyena Nous (7B)는 효율적인 전략과 모델 아키텍처를 통해 향상된 계산 능력을 제공합니다."
|
879
891
|
},
|
@@ -332,9 +332,15 @@
|
|
332
332
|
"gemini-1.5-flash-001": {
|
333
333
|
"description": "Gemini 1.5 Flash 001 is een efficiënt multimodaal model dat ondersteuning biedt voor brede toepassingsuitbreiding."
|
334
334
|
},
|
335
|
+
"gemini-1.5-flash-002": {
|
336
|
+
"description": "Gemini 1.5 Flash 002 is een efficiënt multimodaal model dat ondersteuning biedt voor een breed scala aan toepassingen."
|
337
|
+
},
|
335
338
|
"gemini-1.5-flash-8b-exp-0827": {
|
336
339
|
"description": "Gemini 1.5 Flash 8B 0827 is ontworpen voor het verwerken van grootschalige taakscenario's en biedt ongeëvenaarde verwerkingssnelheid."
|
337
340
|
},
|
341
|
+
"gemini-1.5-flash-8b-exp-0924": {
|
342
|
+
"description": "Gemini 1.5 Flash 8B 0924 is het nieuwste experimentele model, met aanzienlijke prestatieverbeteringen in tekst- en multimodale toepassingen."
|
343
|
+
},
|
338
344
|
"gemini-1.5-flash-exp-0827": {
|
339
345
|
"description": "Gemini 1.5 Flash 0827 biedt geoptimaliseerde multimodale verwerkingscapaciteiten, geschikt voor verschillende complexe taakscenario's."
|
340
346
|
},
|
@@ -344,6 +350,9 @@
|
|
344
350
|
"gemini-1.5-pro-001": {
|
345
351
|
"description": "Gemini 1.5 Pro 001 is een schaalbare multimodale AI-oplossing die ondersteuning biedt voor een breed scala aan complexe taken."
|
346
352
|
},
|
353
|
+
"gemini-1.5-pro-002": {
|
354
|
+
"description": "Gemini 1.5 Pro 002 is het nieuwste productieklare model, dat hogere kwaliteit output biedt, met name op het gebied van wiskunde, lange contexten en visuele taken."
|
355
|
+
},
|
347
356
|
"gemini-1.5-pro-exp-0801": {
|
348
357
|
"description": "Gemini 1.5 Pro 0801 biedt uitstekende multimodale verwerkingscapaciteiten en biedt meer flexibiliteit voor applicatieontwikkeling."
|
349
358
|
},
|
@@ -874,6 +883,9 @@
|
|
874
883
|
"taichu_llm": {
|
875
884
|
"description": "Het Zido Tai Chu-taalmodel heeft een sterke taalbegripcapaciteit en kan tekstcreatie, kennisvragen, codeprogrammering, wiskundige berekeningen, logische redenering, sentimentanalyse, tekstsamenvattingen en meer aan. Het combineert innovatief grote data voortraining met rijke kennis uit meerdere bronnen, door algoritmische technologie continu te verfijnen en voortdurend nieuwe kennis op te nemen uit enorme tekstdata op het gebied van vocabulaire, structuur, grammatica en semantiek, waardoor de modelprestaties voortdurend evolueren. Het biedt gebruikers gemakkelijkere informatie en diensten en een meer intelligente ervaring."
|
876
885
|
},
|
886
|
+
"taichu_vqa": {
|
887
|
+
"description": "Taichu 2.0V combineert capaciteiten zoals beeldbegrip, kennisoverdracht en logische toerekening, en presteert uitstekend in het domein van beeld-tekst vraag en antwoord."
|
888
|
+
},
|
877
889
|
"togethercomputer/StripedHyena-Nous-7B": {
|
878
890
|
"description": "StripedHyena Nous (7B) biedt verbeterde rekenkracht door middel van efficiënte strategieën en modelarchitectuur."
|
879
891
|
},
|
@@ -332,9 +332,15 @@
|
|
332
332
|
"gemini-1.5-flash-001": {
|
333
333
|
"description": "Gemini 1.5 Flash 001 to wydajny model multimodalny, wspierający szerokie zastosowania."
|
334
334
|
},
|
335
|
+
"gemini-1.5-flash-002": {
|
336
|
+
"description": "Gemini 1.5 Flash 002 to wydajny model multimodalny, który wspiera szeroką gamę zastosowań."
|
337
|
+
},
|
335
338
|
"gemini-1.5-flash-8b-exp-0827": {
|
336
339
|
"description": "Gemini 1.5 Flash 8B 0827 został zaprojektowany do obsługi dużych zadań, oferując niezrównaną prędkość przetwarzania."
|
337
340
|
},
|
341
|
+
"gemini-1.5-flash-8b-exp-0924": {
|
342
|
+
"description": "Gemini 1.5 Flash 8B 0924 to najnowszy eksperymentalny model, który wykazuje znaczące poprawy wydajności w zastosowaniach tekstowych i multimodalnych."
|
343
|
+
},
|
338
344
|
"gemini-1.5-flash-exp-0827": {
|
339
345
|
"description": "Gemini 1.5 Flash 0827 oferuje zoptymalizowane możliwości przetwarzania multimodalnego, odpowiednie do różnych złożonych scenariuszy zadań."
|
340
346
|
},
|
@@ -344,6 +350,9 @@
|
|
344
350
|
"gemini-1.5-pro-001": {
|
345
351
|
"description": "Gemini 1.5 Pro 001 to skalowalne rozwiązanie AI multimodalnego, wspierające szeroki zakres złożonych zadań."
|
346
352
|
},
|
353
|
+
"gemini-1.5-pro-002": {
|
354
|
+
"description": "Gemini 1.5 Pro 002 to najnowszy model gotowy do produkcji, oferujący wyższą jakość wyników, ze szczególnym uwzględnieniem zadań matematycznych, długich kontekstów i zadań wizualnych."
|
355
|
+
},
|
347
356
|
"gemini-1.5-pro-exp-0801": {
|
348
357
|
"description": "Gemini 1.5 Pro 0801 oferuje doskonałe możliwości przetwarzania multimodalnego, zapewniając większą elastyczność w rozwoju aplikacji."
|
349
358
|
},
|
@@ -874,6 +883,9 @@
|
|
874
883
|
"taichu_llm": {
|
875
884
|
"description": "Model językowy TaiChu charakteryzuje się wyjątkową zdolnością rozumienia języka oraz umiejętnościami w zakresie tworzenia tekstów, odpowiadania na pytania, programowania, obliczeń matematycznych, wnioskowania logicznego, analizy emocji i streszczenia tekstu. Innowacyjnie łączy wstępne uczenie się na dużych zbiorach danych z bogatą wiedzą z wielu źródeł, stale doskonaląc technologię algorytmiczną i nieustannie przyswajając nową wiedzę z zakresu słownictwa, struktury, gramatyki i semantyki z ogromnych zbiorów danych tekstowych, co prowadzi do ciągłej ewolucji modelu. Umożliwia użytkownikom łatwiejszy dostęp do informacji i usług oraz bardziej inteligentne doświadczenia."
|
876
885
|
},
|
886
|
+
"taichu_vqa": {
|
887
|
+
"description": "Taichu 2.0V łączy zdolności rozumienia obrazów, transferu wiedzy i logicznego wnioskowania, osiągając znakomite wyniki w dziedzinie pytań i odpowiedzi na podstawie tekstu i obrazów."
|
888
|
+
},
|
877
889
|
"togethercomputer/StripedHyena-Nous-7B": {
|
878
890
|
"description": "StripedHyena Nous (7B) oferuje zwiększoną moc obliczeniową dzięki efektywnym strategiom i architekturze modelu."
|
879
891
|
},
|
@@ -332,9 +332,15 @@
|
|
332
332
|
"gemini-1.5-flash-001": {
|
333
333
|
"description": "Gemini 1.5 Flash 001 é um modelo multimodal eficiente, suportando a expansão de aplicações amplas."
|
334
334
|
},
|
335
|
+
"gemini-1.5-flash-002": {
|
336
|
+
"description": "O Gemini 1.5 Flash 002 é um modelo multimodal eficiente, que suporta uma ampla gama de aplicações."
|
337
|
+
},
|
335
338
|
"gemini-1.5-flash-8b-exp-0827": {
|
336
339
|
"description": "Gemini 1.5 Flash 8B 0827 é projetado para lidar com cenários de tarefas em larga escala, oferecendo velocidade de processamento incomparável."
|
337
340
|
},
|
341
|
+
"gemini-1.5-flash-8b-exp-0924": {
|
342
|
+
"description": "O Gemini 1.5 Flash 8B 0924 é o mais recente modelo experimental, com melhorias significativas de desempenho em casos de uso de texto e multimídia."
|
343
|
+
},
|
338
344
|
"gemini-1.5-flash-exp-0827": {
|
339
345
|
"description": "Gemini 1.5 Flash 0827 oferece capacidade de processamento multimodal otimizada, adequada para uma variedade de cenários de tarefas complexas."
|
340
346
|
},
|
@@ -344,6 +350,9 @@
|
|
344
350
|
"gemini-1.5-pro-001": {
|
345
351
|
"description": "Gemini 1.5 Pro 001 é uma solução de IA multimodal escalável, suportando uma ampla gama de tarefas complexas."
|
346
352
|
},
|
353
|
+
"gemini-1.5-pro-002": {
|
354
|
+
"description": "O Gemini 1.5 Pro 002 é o mais recente modelo pronto para produção, oferecendo saídas de maior qualidade, com melhorias significativas em tarefas matemáticas, contextos longos e tarefas visuais."
|
355
|
+
},
|
347
356
|
"gemini-1.5-pro-exp-0801": {
|
348
357
|
"description": "Gemini 1.5 Pro 0801 oferece excelente capacidade de processamento multimodal, proporcionando maior flexibilidade para o desenvolvimento de aplicações."
|
349
358
|
},
|
@@ -874,6 +883,9 @@
|
|
874
883
|
"taichu_llm": {
|
875
884
|
"description": "O modelo de linguagem Taichu possui uma forte capacidade de compreensão de linguagem, além de habilidades em criação de texto, perguntas e respostas, programação de código, cálculos matemáticos, raciocínio lógico, análise de sentimentos e resumo de texto. Inova ao combinar pré-treinamento com grandes dados e conhecimento rico de múltiplas fontes, aprimorando continuamente a tecnologia de algoritmos e absorvendo novos conhecimentos de vocabulário, estrutura, gramática e semântica de grandes volumes de dados textuais, proporcionando aos usuários informações e serviços mais convenientes e uma experiência mais inteligente."
|
876
885
|
},
|
886
|
+
"taichu_vqa": {
|
887
|
+
"description": "O Taichu 2.0V combina habilidades de compreensão de imagem, transferência de conhecimento e atribuição lógica, destacando-se no campo de perguntas e respostas baseadas em texto e imagem."
|
888
|
+
},
|
877
889
|
"togethercomputer/StripedHyena-Nous-7B": {
|
878
890
|
"description": "StripedHyena Nous (7B) oferece capacidade de computação aprimorada através de estratégias e arquiteturas de modelo eficientes."
|
879
891
|
},
|
@@ -332,9 +332,15 @@
|
|
332
332
|
"gemini-1.5-flash-001": {
|
333
333
|
"description": "Gemini 1.5 Flash 001 — это эффективная многомодальная модель, поддерживающая масштабирование для широкого спектра приложений."
|
334
334
|
},
|
335
|
+
"gemini-1.5-flash-002": {
|
336
|
+
"description": "Gemini 1.5 Flash 002 — это эффективная мультимодальная модель, поддерживающая расширенные применения."
|
337
|
+
},
|
335
338
|
"gemini-1.5-flash-8b-exp-0827": {
|
336
339
|
"description": "Gemini 1.5 Flash 8B 0827 разработан для обработки масштабных задач, обеспечивая непревзойдённую скорость обработки."
|
337
340
|
},
|
341
|
+
"gemini-1.5-flash-8b-exp-0924": {
|
342
|
+
"description": "Gemini 1.5 Flash 8B 0924 — это последняя экспериментальная модель, которая демонстрирует значительное улучшение производительности как в текстовых, так и в мультимодальных задачах."
|
343
|
+
},
|
338
344
|
"gemini-1.5-flash-exp-0827": {
|
339
345
|
"description": "Gemini 1.5 Flash 0827 предлагает оптимизированные многомодальные возможности обработки, подходящие для различных сложных задач."
|
340
346
|
},
|
@@ -344,6 +350,9 @@
|
|
344
350
|
"gemini-1.5-pro-001": {
|
345
351
|
"description": "Gemini 1.5 Pro 001 — это масштабируемое решение для многомодального ИИ, поддерживающее широкий спектр сложных задач."
|
346
352
|
},
|
353
|
+
"gemini-1.5-pro-002": {
|
354
|
+
"description": "Gemini 1.5 Pro 002 — это последняя модель, готовая к производству, которая обеспечивает более высокое качество вывода, особенно в математических задачах, длинных контекстах и визуальных задачах."
|
355
|
+
},
|
347
356
|
"gemini-1.5-pro-exp-0801": {
|
348
357
|
"description": "Gemini 1.5 Pro 0801 предлагает выдающиеся возможности многомодальной обработки, обеспечивая большую гибкость для разработки приложений."
|
349
358
|
},
|
@@ -874,6 +883,9 @@
|
|
874
883
|
"taichu_llm": {
|
875
884
|
"description": "Модель языка TaiChu обладает выдающимися способностями к пониманию языка, а также к созданию текстов, ответам на вопросы, программированию, математическим вычислениям, логическому выводу, анализу эмоций и резюмированию текстов. Инновационно сочетает предобучение на больших данных с богатством многопоточных знаний, постоянно совершенствуя алгоритмические технологии и поглощая новые знания о словах, структуре, грамматике и семантике из огромных объемов текстовых данных, обеспечивая пользователям более удобную информацию и услуги, а также более интеллектуальный опыт."
|
876
885
|
},
|
886
|
+
"taichu_vqa": {
|
887
|
+
"description": "Taichu 2.0V объединяет возможности понимания изображений, передачи знаний, логического вывода и других, демонстрируя выдающиеся результаты в области вопросов и ответов на основе текста и изображений."
|
888
|
+
},
|
877
889
|
"togethercomputer/StripedHyena-Nous-7B": {
|
878
890
|
"description": "StripedHyena Nous (7B) обеспечивает повышенные вычислительные возможности благодаря эффективным стратегиям и архитектуре модели."
|
879
891
|
},
|
@@ -332,9 +332,15 @@
|
|
332
332
|
"gemini-1.5-flash-001": {
|
333
333
|
"description": "Gemini 1.5 Flash 001, geniş uygulama alanları için destekleyen verimli bir çok modlu modeldir."
|
334
334
|
},
|
335
|
+
"gemini-1.5-flash-002": {
|
336
|
+
"description": "Gemini 1.5 Flash 002, geniş uygulama yelpazesini destekleyen verimli bir çok modlu modeldir."
|
337
|
+
},
|
335
338
|
"gemini-1.5-flash-8b-exp-0827": {
|
336
339
|
"description": "Gemini 1.5 Flash 8B 0827, büyük ölçekli görev senaryolarını işlemek için tasarlanmış, eşsiz bir işleme hızı sunar."
|
337
340
|
},
|
341
|
+
"gemini-1.5-flash-8b-exp-0924": {
|
342
|
+
"description": "Gemini 1.5 Flash 8B 0924, metin ve çok modlu kullanım durumlarında önemli performans artışları sunan en son deneysel modeldir."
|
343
|
+
},
|
338
344
|
"gemini-1.5-flash-exp-0827": {
|
339
345
|
"description": "Gemini 1.5 Flash 0827, çeşitli karmaşık görev senaryoları için optimize edilmiş çok modlu işleme yeteneği sunar."
|
340
346
|
},
|
@@ -344,6 +350,9 @@
|
|
344
350
|
"gemini-1.5-pro-001": {
|
345
351
|
"description": "Gemini 1.5 Pro 001, geniş karmaşık görevleri destekleyen ölçeklenebilir bir çok modlu AI çözümüdür."
|
346
352
|
},
|
353
|
+
"gemini-1.5-pro-002": {
|
354
|
+
"description": "Gemini 1.5 Pro 002, daha yüksek kaliteli çıktılar sunan en son üretim hazır modeldir; özellikle matematik, uzun bağlam ve görsel görevlerde önemli iyileştirmeler sağlamaktadır."
|
355
|
+
},
|
347
356
|
"gemini-1.5-pro-exp-0801": {
|
348
357
|
"description": "Gemini 1.5 Pro 0801, mükemmel çok modlu işleme yeteneği sunar ve uygulama geliştirmeye daha fazla esneklik kazandırır."
|
349
358
|
},
|
@@ -874,6 +883,9 @@
|
|
874
883
|
"taichu_llm": {
|
875
884
|
"description": "Zidong Taichu dil büyük modeli, güçlü dil anlama yeteneği ile metin oluşturma, bilgi sorgulama, kod programlama, matematik hesaplama, mantıksal akıl yürütme, duygu analizi, metin özeti gibi yeteneklere sahiptir. Yenilikçi bir şekilde büyük veri ön eğitimi ile çok kaynaklı zengin bilgiyi birleştirir, algoritma teknolojisini sürekli olarak geliştirir ve büyük metin verilerinden kelime, yapı, dil bilgisi, anlam gibi yeni bilgileri sürekli olarak edinir, modelin performansını sürekli olarak evrimleştirir. Kullanıcılara daha kolay bilgi ve hizmetler sunar ve daha akıllı bir deneyim sağlar."
|
876
885
|
},
|
886
|
+
"taichu_vqa": {
|
887
|
+
"description": "Taichu 2.0V, görüntü anlama, bilgi aktarımı, mantıksal çıkarım gibi yetenekleri birleştirerek, metin ve görsel soru-cevap alanında öne çıkmaktadır."
|
888
|
+
},
|
877
889
|
"togethercomputer/StripedHyena-Nous-7B": {
|
878
890
|
"description": "StripedHyena Nous (7B), etkili stratejiler ve model mimarisi ile artırılmış hesaplama yetenekleri sunar."
|
879
891
|
},
|
@@ -332,9 +332,15 @@
|
|
332
332
|
"gemini-1.5-flash-001": {
|
333
333
|
"description": "Gemini 1.5 Flash 001 là một mô hình đa phương thức hiệu quả, hỗ trợ mở rộng cho nhiều ứng dụng."
|
334
334
|
},
|
335
|
+
"gemini-1.5-flash-002": {
|
336
|
+
"description": "Gemini 1.5 Flash 002 là một mô hình đa phương thức hiệu quả, hỗ trợ mở rộng cho nhiều ứng dụng."
|
337
|
+
},
|
335
338
|
"gemini-1.5-flash-8b-exp-0827": {
|
336
339
|
"description": "Gemini 1.5 Flash 8B 0827 được thiết kế để xử lý các tình huống nhiệm vụ quy mô lớn, cung cấp tốc độ xử lý vô song."
|
337
340
|
},
|
341
|
+
"gemini-1.5-flash-8b-exp-0924": {
|
342
|
+
"description": "Gemini 1.5 Flash 8B 0924 là mô hình thử nghiệm mới nhất, có sự cải thiện đáng kể về hiệu suất trong các trường hợp sử dụng văn bản và đa phương thức."
|
343
|
+
},
|
338
344
|
"gemini-1.5-flash-exp-0827": {
|
339
345
|
"description": "Gemini 1.5 Flash 0827 cung cấp khả năng xử lý đa phương thức được tối ưu hóa, phù hợp cho nhiều tình huống nhiệm vụ phức tạp."
|
340
346
|
},
|
@@ -344,6 +350,9 @@
|
|
344
350
|
"gemini-1.5-pro-001": {
|
345
351
|
"description": "Gemini 1.5 Pro 001 là giải pháp AI đa phương thức có thể mở rộng, hỗ trợ nhiều nhiệm vụ phức tạp."
|
346
352
|
},
|
353
|
+
"gemini-1.5-pro-002": {
|
354
|
+
"description": "Gemini 1.5 Pro 002 là mô hình sẵn sàng cho sản xuất mới nhất, cung cấp đầu ra chất lượng cao hơn, đặc biệt là trong các nhiệm vụ toán học, ngữ cảnh dài và thị giác."
|
355
|
+
},
|
347
356
|
"gemini-1.5-pro-exp-0801": {
|
348
357
|
"description": "Gemini 1.5 Pro 0801 cung cấp khả năng xử lý đa phương thức xuất sắc, mang lại sự linh hoạt lớn hơn cho phát triển ứng dụng."
|
349
358
|
},
|
@@ -874,6 +883,9 @@
|
|
874
883
|
"taichu_llm": {
|
875
884
|
"description": "Mô hình ngôn ngữ lớn Taichu có khả năng hiểu ngôn ngữ mạnh mẽ và các khả năng như sáng tạo văn bản, trả lời câu hỏi kiến thức, lập trình mã, tính toán toán học, suy luận logic, phân tích cảm xúc, tóm tắt văn bản. Đổi mới kết hợp giữa đào tạo trước với dữ liệu phong phú từ nhiều nguồn, thông qua việc liên tục cải tiến công nghệ thuật toán và hấp thụ kiến thức mới từ dữ liệu văn bản khổng lồ, giúp mô hình ngày càng hoàn thiện. Cung cấp thông tin và dịch vụ tiện lợi hơn cho người dùng cùng trải nghiệm thông minh hơn."
|
876
885
|
},
|
886
|
+
"taichu_vqa": {
|
887
|
+
"description": "Taichu 2.0V kết hợp khả năng hiểu hình ảnh, chuyển giao kiến thức, suy luận logic, v.v., thể hiện xuất sắc trong lĩnh vực hỏi đáp hình ảnh và văn bản."
|
888
|
+
},
|
877
889
|
"togethercomputer/StripedHyena-Nous-7B": {
|
878
890
|
"description": "StripedHyena Nous (7B) cung cấp khả năng tính toán nâng cao thông qua chiến lược và kiến trúc mô hình hiệu quả."
|
879
891
|
},
|
@@ -332,9 +332,15 @@
|
|
332
332
|
"gemini-1.5-flash-001": {
|
333
333
|
"description": "Gemini 1.5 Flash 001 是一款高效的多模态模型,支持广泛应用的扩展。"
|
334
334
|
},
|
335
|
+
"gemini-1.5-flash-002": {
|
336
|
+
"description": "Gemini 1.5 Flash 002 是一款高效的多模态模型,支持广泛应用的扩展。"
|
337
|
+
},
|
335
338
|
"gemini-1.5-flash-8b-exp-0827": {
|
336
339
|
"description": "Gemini 1.5 Flash 8B 0827 专为处理大规模任务场景设计,提供无与伦比的处理速度。"
|
337
340
|
},
|
341
|
+
"gemini-1.5-flash-8b-exp-0924": {
|
342
|
+
"description": "Gemini 1.5 Flash 8B 0924 是最新的实验性模型,在文本和多模态用例中都有显著的性能提升。"
|
343
|
+
},
|
338
344
|
"gemini-1.5-flash-exp-0827": {
|
339
345
|
"description": "Gemini 1.5 Flash 0827 提供了优化后的多模态处理能力,适用多种复杂任务场景。"
|
340
346
|
},
|
@@ -344,6 +350,9 @@
|
|
344
350
|
"gemini-1.5-pro-001": {
|
345
351
|
"description": "Gemini 1.5 Pro 001 是可扩展的多模态AI解决方案,支持广泛的复杂任务。"
|
346
352
|
},
|
353
|
+
"gemini-1.5-pro-002": {
|
354
|
+
"description": "Gemini 1.5 Pro 002 是最新的生产就绪模型,提供更高质量的输出,特别在数学、长上下文和视觉任务方面有显著提升。"
|
355
|
+
},
|
347
356
|
"gemini-1.5-pro-exp-0801": {
|
348
357
|
"description": "Gemini 1.5 Pro 0801 提供出色的多模态处理能力,为应用开发带来更大灵活性。"
|
349
358
|
},
|
@@ -872,7 +881,10 @@
|
|
872
881
|
"description": "支持大规模上下文交互,适合复杂对话场景。"
|
873
882
|
},
|
874
883
|
"taichu_llm": {
|
875
|
-
"description": "
|
884
|
+
"description": "Taichu 2.0 基于海量高质数据训练,具有更强的文本理解、内容创作、对话问答等能力"
|
885
|
+
},
|
886
|
+
"taichu_vqa": {
|
887
|
+
"description": "Taichu 2.0V 融合了图像理解、知识迁移、逻辑归因等能力,在图文问答领域表现突出"
|
876
888
|
},
|
877
889
|
"togethercomputer/StripedHyena-Nous-7B": {
|
878
890
|
"description": "StripedHyena Nous (7B) 通过高效的策略和模型架构,提供增强的计算能力。"
|
@@ -332,9 +332,15 @@
|
|
332
332
|
"gemini-1.5-flash-001": {
|
333
333
|
"description": "Gemini 1.5 Flash 001 是一款高效的多模態模型,支持廣泛應用的擴展。"
|
334
334
|
},
|
335
|
+
"gemini-1.5-flash-002": {
|
336
|
+
"description": "Gemini 1.5 Flash 002 是一款高效的多模態模型,支持廣泛應用的擴展。"
|
337
|
+
},
|
335
338
|
"gemini-1.5-flash-8b-exp-0827": {
|
336
339
|
"description": "Gemini 1.5 Flash 8B 0827 專為處理大規模任務場景設計,提供無與倫比的處理速度。"
|
337
340
|
},
|
341
|
+
"gemini-1.5-flash-8b-exp-0924": {
|
342
|
+
"description": "Gemini 1.5 Flash 8B 0924 是最新的實驗性模型,在文本和多模態用例中都有顯著的性能提升。"
|
343
|
+
},
|
338
344
|
"gemini-1.5-flash-exp-0827": {
|
339
345
|
"description": "Gemini 1.5 Flash 0827 提供了優化後的多模態處理能力,適用多種複雜任務場景。"
|
340
346
|
},
|
@@ -344,6 +350,9 @@
|
|
344
350
|
"gemini-1.5-pro-001": {
|
345
351
|
"description": "Gemini 1.5 Pro 001 是可擴展的多模態 AI 解決方案,支持廣泛的複雜任務。"
|
346
352
|
},
|
353
|
+
"gemini-1.5-pro-002": {
|
354
|
+
"description": "Gemini 1.5 Pro 002 是最新的生產就緒模型,提供更高品質的輸出,特別在數學、長上下文和視覺任務方面有顯著提升。"
|
355
|
+
},
|
347
356
|
"gemini-1.5-pro-exp-0801": {
|
348
357
|
"description": "Gemini 1.5 Pro 0801 提供出色的多模態處理能力,為應用開發帶來更大靈活性。"
|
349
358
|
},
|
@@ -874,6 +883,9 @@
|
|
874
883
|
"taichu_llm": {
|
875
884
|
"description": "紫東太初語言大模型具備超強語言理解能力以及文本創作、知識問答、代碼編程、數學計算、邏輯推理、情感分析、文本摘要等能力。創新性地將大數據預訓練與多源豐富知識相結合,通過持續打磨算法技術,並不斷吸收海量文本數據中詞彙、結構、語法、語義等方面的新知識,實現模型效果不斷進化。為用戶提供更加便捷的信息和服務以及更為智能化的體驗。"
|
876
885
|
},
|
886
|
+
"taichu_vqa": {
|
887
|
+
"description": "Taichu 2.0V 融合了圖像理解、知識遷移、邏輯歸因等能力,在圖文問答領域表現突出。"
|
888
|
+
},
|
877
889
|
"togethercomputer/StripedHyena-Nous-7B": {
|
878
890
|
"description": "StripedHyena Nous (7B) 通過高效的策略和模型架構,提供增強的計算能力。"
|
879
891
|
},
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.19.
|
3
|
+
"version": "1.19.31",
|
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",
|
@@ -22,7 +22,6 @@ const Google: ModelProviderCard = {
|
|
22
22
|
{
|
23
23
|
description: 'Gemini 1.5 Flash 0827 提供了优化后的多模态处理能力,适用多种复杂任务场景。',
|
24
24
|
displayName: 'Gemini 1.5 Flash 0827',
|
25
|
-
enabled: true,
|
26
25
|
functionCall: true,
|
27
26
|
id: 'gemini-1.5-flash-exp-0827',
|
28
27
|
maxOutput: 8192,
|
@@ -45,12 +44,49 @@ const Google: ModelProviderCard = {
|
|
45
44
|
tokens: 1_048_576 + 8192,
|
46
45
|
vision: true,
|
47
46
|
},
|
47
|
+
{
|
48
|
+
description:
|
49
|
+
'Gemini 1.5 Flash 8B 0924 是最新的实验性模型,在文本和多模态用例中都有显著的性能提升。',
|
50
|
+
displayName: 'Gemini 1.5 Flash 8B 0924',
|
51
|
+
enabled: true,
|
52
|
+
functionCall: true,
|
53
|
+
id: 'gemini-1.5-flash-8b-exp-0924',
|
54
|
+
maxOutput: 8192,
|
55
|
+
pricing: {
|
56
|
+
cachedInput: 0.018_75,
|
57
|
+
input: 0.075,
|
58
|
+
output: 0.3,
|
59
|
+
},
|
60
|
+
releasedAt: '2024-09-24',
|
61
|
+
tokens: 1_048_576 + 8192,
|
62
|
+
vision: true,
|
63
|
+
},
|
48
64
|
{
|
49
65
|
description: 'Gemini 1.5 Flash 001 是一款高效的多模态模型,支持广泛应用的扩展。',
|
50
66
|
displayName: 'Gemini 1.5 Flash 001',
|
51
67
|
functionCall: true,
|
52
68
|
id: 'gemini-1.5-flash-001',
|
53
69
|
maxOutput: 8192,
|
70
|
+
pricing: {
|
71
|
+
cachedInput: 0.018_75,
|
72
|
+
input: 0.075,
|
73
|
+
output: 0.3,
|
74
|
+
},
|
75
|
+
tokens: 1_048_576 + 8192,
|
76
|
+
vision: true,
|
77
|
+
},
|
78
|
+
{
|
79
|
+
description: 'Gemini 1.5 Flash 002 是一款高效的多模态模型,支持广泛应用的扩展。',
|
80
|
+
displayName: 'Gemini 1.5 Flash 002',
|
81
|
+
functionCall: true,
|
82
|
+
id: 'gemini-1.5-flash-002',
|
83
|
+
maxOutput: 8192,
|
84
|
+
pricing: {
|
85
|
+
cachedInput: 0.018_75,
|
86
|
+
input: 0.075,
|
87
|
+
output: 0.3,
|
88
|
+
},
|
89
|
+
releasedAt: '2024-09-25',
|
54
90
|
tokens: 1_048_576 + 8192,
|
55
91
|
vision: true,
|
56
92
|
},
|
@@ -74,7 +110,6 @@ const Google: ModelProviderCard = {
|
|
74
110
|
{
|
75
111
|
description: 'Gemini 1.5 Pro 0827 结合最新优化技术,带来更高效的多模态数据处理能力。',
|
76
112
|
displayName: 'Gemini 1.5 Pro 0827',
|
77
|
-
enabled: true,
|
78
113
|
functionCall: true,
|
79
114
|
id: 'gemini-1.5-pro-exp-0827',
|
80
115
|
maxOutput: 8192,
|
@@ -117,6 +152,23 @@ const Google: ModelProviderCard = {
|
|
117
152
|
tokens: 2_097_152 + 8192,
|
118
153
|
vision: true,
|
119
154
|
},
|
155
|
+
{
|
156
|
+
description:
|
157
|
+
'Gemini 1.5 Pro 002 是最新的生产就绪模型,提供更高质量的输出,特别在数学、长上下文和视觉任务方面有显著提升。',
|
158
|
+
displayName: 'Gemini 1.5 Pro 002',
|
159
|
+
enabled: true,
|
160
|
+
functionCall: true,
|
161
|
+
id: 'gemini-1.5-pro-002',
|
162
|
+
maxOutput: 8192,
|
163
|
+
pricing: {
|
164
|
+
cachedInput: 0.315,
|
165
|
+
input: 1.25,
|
166
|
+
output: 2.5,
|
167
|
+
},
|
168
|
+
releasedAt: '2024-09-24',
|
169
|
+
tokens: 2_097_152 + 8192,
|
170
|
+
vision: true,
|
171
|
+
},
|
120
172
|
{
|
121
173
|
description: 'Gemini 1.0 Pro 是Google的高性能AI模型,专为广泛任务扩展而设计。',
|
122
174
|
displayName: 'Gemini 1.0 Pro',
|
@@ -304,6 +304,30 @@ describe('LobeGoogleAI', () => {
|
|
304
304
|
|
305
305
|
describe('private method', () => {
|
306
306
|
describe('convertContentToGooglePart', () => {
|
307
|
+
it('should handle text type messages', async () => {
|
308
|
+
const result = await instance['convertContentToGooglePart']({
|
309
|
+
type: 'text',
|
310
|
+
text: 'Hello',
|
311
|
+
});
|
312
|
+
expect(result).toEqual({ text: 'Hello' });
|
313
|
+
});
|
314
|
+
|
315
|
+
it('should handle base64 type images', async () => {
|
316
|
+
const base64Image =
|
317
|
+
'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==';
|
318
|
+
const result = await instance['convertContentToGooglePart']({
|
319
|
+
type: 'image_url',
|
320
|
+
image_url: { url: base64Image },
|
321
|
+
});
|
322
|
+
|
323
|
+
expect(result).toEqual({
|
324
|
+
inlineData: {
|
325
|
+
data: 'iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==',
|
326
|
+
mimeType: 'image/png',
|
327
|
+
},
|
328
|
+
});
|
329
|
+
});
|
330
|
+
|
307
331
|
it('should handle URL type images', async () => {
|
308
332
|
const imageUrl = 'http://example.com/image.png';
|
309
333
|
const mockBase64 = 'mockBase64Data';
|
@@ -357,7 +381,7 @@ describe('LobeGoogleAI', () => {
|
|
357
381
|
{ content: 'Hi', role: 'assistant' },
|
358
382
|
];
|
359
383
|
|
360
|
-
const contents = await instance['buildGoogleMessages'](messages, 'gemini-
|
384
|
+
const contents = await instance['buildGoogleMessages'](messages, 'gemini-1.0');
|
361
385
|
|
362
386
|
expect(contents).toHaveLength(3);
|
363
387
|
expect(contents).toEqual([
|
@@ -373,7 +397,7 @@ describe('LobeGoogleAI', () => {
|
|
373
397
|
{ content: 'Who are you', role: 'user' },
|
374
398
|
];
|
375
399
|
|
376
|
-
const contents = await instance['buildGoogleMessages'](messages, 'gemini-
|
400
|
+
const contents = await instance['buildGoogleMessages'](messages, 'gemini-1.0');
|
377
401
|
|
378
402
|
expect(contents).toHaveLength(3);
|
379
403
|
expect(contents).toEqual([
|
@@ -487,9 +511,6 @@ describe('LobeGoogleAI', () => {
|
|
487
511
|
});
|
488
512
|
});
|
489
513
|
|
490
|
-
// 类似地添加 array/string/number/boolean 类型schema的测试用例
|
491
|
-
// ...
|
492
|
-
|
493
514
|
it('should correctly convert nested schema', () => {
|
494
515
|
const schema: JSONSchema7 = {
|
495
516
|
type: 'object',
|
@@ -523,6 +544,36 @@ describe('LobeGoogleAI', () => {
|
|
523
544
|
},
|
524
545
|
});
|
525
546
|
});
|
547
|
+
|
548
|
+
it('should correctly convert array schema', () => {
|
549
|
+
const schema: JSONSchema7 = {
|
550
|
+
type: 'array',
|
551
|
+
items: { type: 'string' },
|
552
|
+
};
|
553
|
+
const converted = instance['convertSchemaObject'](schema);
|
554
|
+
expect(converted).toEqual({
|
555
|
+
type: FunctionDeclarationSchemaType.ARRAY,
|
556
|
+
items: { type: FunctionDeclarationSchemaType.STRING },
|
557
|
+
});
|
558
|
+
});
|
559
|
+
|
560
|
+
it('should correctly convert string schema', () => {
|
561
|
+
const schema: JSONSchema7 = { type: 'string' };
|
562
|
+
const converted = instance['convertSchemaObject'](schema);
|
563
|
+
expect(converted).toEqual({ type: FunctionDeclarationSchemaType.STRING });
|
564
|
+
});
|
565
|
+
|
566
|
+
it('should correctly convert number schema', () => {
|
567
|
+
const schema: JSONSchema7 = { type: 'number' };
|
568
|
+
const converted = instance['convertSchemaObject'](schema);
|
569
|
+
expect(converted).toEqual({ type: FunctionDeclarationSchemaType.NUMBER });
|
570
|
+
});
|
571
|
+
|
572
|
+
it('should correctly convert boolean schema', () => {
|
573
|
+
const schema: JSONSchema7 = { type: 'boolean' };
|
574
|
+
const converted = instance['convertSchemaObject'](schema);
|
575
|
+
expect(converted).toEqual({ type: FunctionDeclarationSchemaType.BOOLEAN });
|
576
|
+
});
|
526
577
|
});
|
527
578
|
|
528
579
|
describe('convertOAIMessagesToGoogleMessage', () => {
|
@@ -592,6 +643,49 @@ describe('LobeGoogleAI', () => {
|
|
592
643
|
],
|
593
644
|
});
|
594
645
|
});
|
646
|
+
|
647
|
+
it('should correctly convert function call message', async () => {
|
648
|
+
const message = {
|
649
|
+
role: 'assistant',
|
650
|
+
tool_calls: [
|
651
|
+
{
|
652
|
+
id: 'call_1',
|
653
|
+
function: {
|
654
|
+
name: 'get_current_weather',
|
655
|
+
arguments: JSON.stringify({ location: 'London', unit: 'celsius' }),
|
656
|
+
},
|
657
|
+
type: 'function',
|
658
|
+
},
|
659
|
+
],
|
660
|
+
} as OpenAIChatMessage;
|
661
|
+
|
662
|
+
const converted = await instance['convertOAIMessagesToGoogleMessage'](message);
|
663
|
+
expect(converted).toEqual({
|
664
|
+
role: 'function',
|
665
|
+
parts: [
|
666
|
+
{
|
667
|
+
functionCall: {
|
668
|
+
name: 'get_current_weather',
|
669
|
+
args: { location: 'London', unit: 'celsius' },
|
670
|
+
},
|
671
|
+
},
|
672
|
+
],
|
673
|
+
});
|
674
|
+
});
|
675
|
+
|
676
|
+
it('should correctly handle empty content', async () => {
|
677
|
+
const message: OpenAIChatMessage = {
|
678
|
+
role: 'user',
|
679
|
+
content: '' as any, // explicitly set as empty string
|
680
|
+
};
|
681
|
+
|
682
|
+
const converted = await instance['convertOAIMessagesToGoogleMessage'](message);
|
683
|
+
|
684
|
+
expect(converted).toEqual({
|
685
|
+
role: 'user',
|
686
|
+
parts: [{ text: '' }],
|
687
|
+
});
|
688
|
+
});
|
595
689
|
});
|
596
690
|
});
|
597
691
|
});
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import {
|
2
2
|
Content,
|
3
|
+
FunctionCallPart,
|
3
4
|
FunctionDeclaration,
|
4
5
|
FunctionDeclarationSchemaProperty,
|
5
6
|
FunctionDeclarationSchemaType,
|
@@ -11,6 +12,7 @@ import { JSONSchema7 } from 'json-schema';
|
|
11
12
|
import { transform } from 'lodash-es';
|
12
13
|
|
13
14
|
import { imageUrlToBase64 } from '@/utils/imageToBase64';
|
15
|
+
import { safeParseJSON } from '@/utils/safeParseJSON';
|
14
16
|
|
15
17
|
import { LobeRuntimeAI } from '../BaseAI';
|
16
18
|
import { AgentRuntimeErrorType, ILobeAgentRuntimeErrorType } from '../error';
|
@@ -50,8 +52,9 @@ export class LobeGoogleAI implements LobeRuntimeAI {
|
|
50
52
|
this.baseURL = baseURL;
|
51
53
|
}
|
52
54
|
|
53
|
-
async chat(
|
55
|
+
async chat(rawPayload: ChatStreamPayload, options?: ChatCompetitionOptions) {
|
54
56
|
try {
|
57
|
+
const payload = this.buildPayload(rawPayload);
|
55
58
|
const model = payload.model;
|
56
59
|
|
57
60
|
const contents = await this.buildGoogleMessages(payload.messages, model);
|
@@ -88,7 +91,11 @@ export class LobeGoogleAI implements LobeRuntimeAI {
|
|
88
91
|
},
|
89
92
|
{ apiVersion: 'v1beta', baseUrl: this.baseURL },
|
90
93
|
)
|
91
|
-
.generateContentStream({
|
94
|
+
.generateContentStream({
|
95
|
+
contents,
|
96
|
+
systemInstruction: payload.system as string,
|
97
|
+
tools: this.buildGoogleTools(payload.tools),
|
98
|
+
});
|
92
99
|
|
93
100
|
const googleStream = googleGenAIResultToStream(geminiStreamResult);
|
94
101
|
const [prod, useForDebug] = googleStream.tee();
|
@@ -111,6 +118,16 @@ export class LobeGoogleAI implements LobeRuntimeAI {
|
|
111
118
|
}
|
112
119
|
}
|
113
120
|
|
121
|
+
private buildPayload(payload: ChatStreamPayload) {
|
122
|
+
const system_message = payload.messages.find((m) => m.role === 'system');
|
123
|
+
const user_messages = payload.messages.filter((m) => m.role !== 'system');
|
124
|
+
|
125
|
+
return {
|
126
|
+
...payload,
|
127
|
+
messages: user_messages,
|
128
|
+
system: system_message?.content,
|
129
|
+
};
|
130
|
+
}
|
114
131
|
private convertContentToGooglePart = async (content: UserMessageContentPart): Promise<Part> => {
|
115
132
|
switch (content.type) {
|
116
133
|
case 'text': {
|
@@ -152,6 +169,17 @@ export class LobeGoogleAI implements LobeRuntimeAI {
|
|
152
169
|
message: OpenAIChatMessage,
|
153
170
|
): Promise<Content> => {
|
154
171
|
const content = message.content as string | UserMessageContentPart[];
|
172
|
+
if (!!message.tool_calls) {
|
173
|
+
return {
|
174
|
+
parts: message.tool_calls.map<FunctionCallPart>((tool) => ({
|
175
|
+
functionCall: {
|
176
|
+
args: safeParseJSON(tool.function.arguments)!,
|
177
|
+
name: tool.function.name,
|
178
|
+
},
|
179
|
+
})),
|
180
|
+
role: 'function',
|
181
|
+
};
|
182
|
+
}
|
155
183
|
|
156
184
|
return {
|
157
185
|
parts:
|
@@ -168,44 +196,44 @@ export class LobeGoogleAI implements LobeRuntimeAI {
|
|
168
196
|
messages: OpenAIChatMessage[],
|
169
197
|
model: string,
|
170
198
|
): Promise<Content[]> => {
|
171
|
-
// if the model is gemini-1.
|
172
|
-
if (model
|
173
|
-
const
|
174
|
-
|
175
|
-
|
199
|
+
// if the model is gemini-1.0 we don't need to pair messages
|
200
|
+
if (model.startsWith('gemini-1.0')) {
|
201
|
+
const contents: Content[] = [];
|
202
|
+
let lastRole = 'model';
|
203
|
+
|
204
|
+
for (const message of messages) {
|
205
|
+
// current to filter function message
|
206
|
+
if (message.role === 'function') {
|
207
|
+
continue;
|
208
|
+
}
|
209
|
+
const googleMessage = await this.convertOAIMessagesToGoogleMessage(message);
|
176
210
|
|
177
|
-
|
178
|
-
|
211
|
+
// if the last message is a model message and the current message is a model message
|
212
|
+
// then we need to add a user message to separate them
|
213
|
+
if (lastRole === googleMessage.role) {
|
214
|
+
contents.push({ parts: [{ text: '' }], role: lastRole === 'user' ? 'model' : 'user' });
|
215
|
+
}
|
179
216
|
|
180
|
-
|
181
|
-
|
217
|
+
// add the current message to the contents
|
218
|
+
contents.push(googleMessage);
|
182
219
|
|
183
|
-
|
184
|
-
|
185
|
-
if (message.role === 'function') {
|
186
|
-
continue;
|
220
|
+
// update the last role
|
221
|
+
lastRole = googleMessage.role;
|
187
222
|
}
|
188
|
-
const googleMessage = await this.convertOAIMessagesToGoogleMessage(message);
|
189
223
|
|
190
|
-
// if the last message is a
|
191
|
-
|
192
|
-
|
193
|
-
contents.push({ parts: [{ text: '' }], role: lastRole === 'user' ? 'model' : 'user' });
|
224
|
+
// if the last message is a user message, then we need to add a model message to separate them
|
225
|
+
if (lastRole === 'model') {
|
226
|
+
contents.push({ parts: [{ text: '' }], role: 'user' });
|
194
227
|
}
|
195
228
|
|
196
|
-
|
197
|
-
contents.push(googleMessage);
|
198
|
-
|
199
|
-
// update the last role
|
200
|
-
lastRole = googleMessage.role;
|
229
|
+
return contents;
|
201
230
|
}
|
202
231
|
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
}
|
232
|
+
const pools = messages
|
233
|
+
.filter((message) => message.role !== 'function')
|
234
|
+
.map(async (msg) => await this.convertOAIMessagesToGoogleMessage(msg));
|
207
235
|
|
208
|
-
return
|
236
|
+
return Promise.all(pools);
|
209
237
|
};
|
210
238
|
|
211
239
|
private parseErrorMessage(message: string): {
|