Skip to content

Commit 5c6b8ea

Browse files
authored
🐛 fix: fix context cache control and model builtin search switch (lobehub#6831)
* upgrade readability * improve openai performance * improve model select * upgrade pglite to 0.2.17 * fix google builtin search config * fix tests * fix claude max output tokens and context caching config * fix context caching config * update i18n * fix tests
1 parent dde2993 commit 5c6b8ea

File tree

54 files changed

+386
-482
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+386
-482
lines changed

locales/ar/components.json

+2
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@
8585
},
8686
"ModelSwitchPanel": {
8787
"emptyModel": "لا توجد نماذج ممكن تمكينها، يرجى الانتقال إلى الإعدادات لتمكينها",
88+
"emptyProvider": "لا توجد مزودات مفعلة، يرجى الذهاب إلى الإعدادات لتفعيلها",
89+
"goToSettings": "اذهب إلى الإعدادات",
8890
"provider": "مزود"
8991
},
9092
"OllamaSetupGuide": {

locales/ar/models.json

+3
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,9 @@
506506
"anthropic/claude-3.5-sonnet": {
507507
"description": "Claude 3.5 Sonnet يقدم قدرات تتجاوز Opus وسرعة أكبر من Sonnet، مع الحفاظ على نفس السعر. يتميز Sonnet بمهارات خاصة في البرمجة وعلوم البيانات ومعالجة الصور والمهام الوكيلة."
508508
},
509+
"anthropic/claude-3.7-sonnet": {
510+
"description": "Claude 3.7 Sonnet هو أكثر النماذج ذكاءً من Anthropic حتى الآن، وهو أيضًا أول نموذج مختلط للتفكير في السوق. يمكن لـ Claude 3.7 Sonnet إنتاج استجابات شبه فورية أو تفكير تدريجي ممتد، حيث يمكن للمستخدمين رؤية هذه العمليات بوضوح. يتميز Sonnet بشكل خاص في البرمجة، وعلوم البيانات، ومعالجة الصور، والمهام الوكيلة."
511+
},
509512
"aya": {
510513
"description": "Aya 23 هو نموذج متعدد اللغات أطلقته Cohere، يدعم 23 لغة، مما يسهل التطبيقات اللغوية المتنوعة."
511514
},

locales/bg-BG/components.json

+2
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@
8585
},
8686
"ModelSwitchPanel": {
8787
"emptyModel": "Няма активирани модели, моля, посетете настройките и ги активирайте",
88+
"emptyProvider": "Няма активиран доставчик на услуги, моля, отидете в настройките, за да го активирате",
89+
"goToSettings": "Отидете в настройките",
8890
"provider": "Доставчик"
8991
},
9092
"OllamaSetupGuide": {

locales/bg-BG/models.json

+3
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,9 @@
506506
"anthropic/claude-3.5-sonnet": {
507507
"description": "Claude 3.5 Sonnet предлага способности, надхвърлящи Opus, и по-бърза скорост в сравнение с Sonnet, като същевременно запазва същата цена. Sonnet е особено силен в програмирането, науката за данни, визуалната обработка и агентските задачи."
508508
},
509+
"anthropic/claude-3.7-sonnet": {
510+
"description": "Claude 3.7 Sonnet е най-интелигентният модел на Anthropic до момента и е първият хибриден модел за разсъждение на пазара. Claude 3.7 Sonnet може да генерира почти мигновени отговори или удължено стъпково мислене, което позволява на потребителите ясно да видят тези процеси. Sonnet е особено добър в програмирането, науката за данни, визуалната обработка и агентските задачи."
511+
},
509512
"aya": {
510513
"description": "Aya 23 е многозначен модел, представен от Cohere, поддържащ 23 езика, предоставяйки удобство за многоезични приложения."
511514
},

locales/de-DE/components.json

+2
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@
8585
},
8686
"ModelSwitchPanel": {
8787
"emptyModel": "Kein aktiviertes Modell. Bitte gehen Sie zu den Einstellungen, um es zu aktivieren.",
88+
"emptyProvider": "Es sind keine aktiven Anbieter vorhanden, bitte gehen Sie zu den Einstellungen, um sie zu aktivieren",
89+
"goToSettings": "Zu den Einstellungen gehen",
8890
"provider": "Anbieter"
8991
},
9092
"OllamaSetupGuide": {

locales/de-DE/models.json

+3
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,9 @@
506506
"anthropic/claude-3.5-sonnet": {
507507
"description": "Claude 3.5 Sonnet bietet Fähigkeiten, die über Opus hinausgehen, und eine schnellere Geschwindigkeit als Sonnet, während es den gleichen Preis wie Sonnet beibehält. Sonnet ist besonders gut in Programmierung, Datenwissenschaft, visueller Verarbeitung und Agentenaufgaben."
508508
},
509+
"anthropic/claude-3.7-sonnet": {
510+
"description": "Claude 3.7 Sonnet ist das intelligenteste Modell von Anthropic bis heute und das erste hybride Inferenzmodell auf dem Markt. Claude 3.7 Sonnet kann nahezu sofortige Antworten oder verlängerte, schrittweise Überlegungen erzeugen, wobei die Benutzer diesen Prozess klar nachvollziehen können. Sonnet ist besonders gut in den Bereichen Programmierung, Datenwissenschaft, visuelle Verarbeitung und Agentenaufgaben."
511+
},
509512
"aya": {
510513
"description": "Aya 23 ist ein mehrsprachiges Modell von Cohere, das 23 Sprachen unterstützt und die Anwendung in einer Vielzahl von Sprachen erleichtert."
511514
},

locales/en-US/components.json

+2
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@
8585
},
8686
"ModelSwitchPanel": {
8787
"emptyModel": "No enabled model. Please go to settings to enable.",
88+
"emptyProvider": "No enabled providers. Please go to settings to enable one.",
89+
"goToSettings": "Go to settings",
8890
"provider": "Provider"
8991
},
9092
"OllamaSetupGuide": {

locales/en-US/models.json

+3
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,9 @@
506506
"anthropic/claude-3.5-sonnet": {
507507
"description": "Claude 3.5 Sonnet offers capabilities that surpass Opus and faster speeds than Sonnet, while maintaining the same pricing as Sonnet. Sonnet excels particularly in programming, data science, visual processing, and agent tasks."
508508
},
509+
"anthropic/claude-3.7-sonnet": {
510+
"description": "Claude 3.7 Sonnet is Anthropic's most advanced model to date and the first hybrid reasoning model on the market. Claude 3.7 Sonnet can generate near-instant responses or extended step-by-step reasoning, allowing users to clearly observe these processes. Sonnet excels particularly in programming, data science, visual processing, and agent tasks."
511+
},
509512
"aya": {
510513
"description": "Aya 23 is a multilingual model launched by Cohere, supporting 23 languages, facilitating diverse language applications."
511514
},

locales/es-ES/components.json

+2
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@
8585
},
8686
"ModelSwitchPanel": {
8787
"emptyModel": "No hay modelos habilitados. Vaya a la configuración para habilitarlos.",
88+
"emptyProvider": "No hay proveedores habilitados, por favor ve a la configuración para activarlos",
89+
"goToSettings": "Ir a la configuración",
8890
"provider": "Proveedor"
8991
},
9092
"OllamaSetupGuide": {

locales/es-ES/models.json

+3
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,9 @@
506506
"anthropic/claude-3.5-sonnet": {
507507
"description": "Claude 3.5 Sonnet ofrece capacidades que superan a Opus y una velocidad más rápida que Sonnet, manteniendo el mismo precio que Sonnet. Sonnet es especialmente hábil en programación, ciencia de datos, procesamiento visual y tareas de agente."
508508
},
509+
"anthropic/claude-3.7-sonnet": {
510+
"description": "Claude 3.7 Sonnet es el modelo más inteligente de Anthropic hasta la fecha y el primer modelo de razonamiento híbrido en el mercado. Claude 3.7 Sonnet puede generar respuestas casi instantáneas o un pensamiento prolongado y gradual, permitiendo a los usuarios observar claramente estos procesos. Sonnet es especialmente hábil en programación, ciencia de datos, procesamiento visual y tareas de agente."
511+
},
509512
"aya": {
510513
"description": "Aya 23 es un modelo multilingüe lanzado por Cohere, que admite 23 idiomas, facilitando aplicaciones de lenguaje diversas."
511514
},

locales/fa-IR/components.json

+2
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@
8585
},
8686
"ModelSwitchPanel": {
8787
"emptyModel": "هیچ مدلی فعال نیست، لطفاً به تنظیمات بروید و آن را فعال کنید",
88+
"emptyProvider": "هیچ ارائه‌دهنده‌ای فعال نیست، لطفاً به تنظیمات بروید و آن را فعال کنید",
89+
"goToSettings": "به تنظیمات بروید",
8890
"provider": "ارائه‌دهنده"
8991
},
9092
"OllamaSetupGuide": {

locales/fa-IR/models.json

+3
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,9 @@
506506
"anthropic/claude-3.5-sonnet": {
507507
"description": "Claude 3.5 Sonnet توانایی‌هایی فراتر از Opus ارائه می‌دهد و سرعتی سریع‌تر از Sonnet دارد، در حالی که قیمت آن با Sonnet یکسان است. Sonnet به‌ویژه در برنامه‌نویسی، علم داده، پردازش بصری و وظایف نمایندگی مهارت دارد."
508508
},
509+
"anthropic/claude-3.7-sonnet": {
510+
"description": "Claude 3.7 Sonnet هو هوش مصنوعی پیشرفته‌ترین مدل Anthropic است و همچنین اولین مدل استدلال ترکیبی در بازار به شمار می‌رود. Claude 3.7 Sonnet می‌تواند پاسخ‌های تقریباً آنی یا تفکر تدریجی و طولانی‌تری تولید کند که کاربران می‌توانند این فرآیندها را به وضوح مشاهده کنند. Sonnet به‌ویژه در برنامه‌نویسی، علم داده، پردازش بصری و وظایف نمایندگی مهارت دارد."
511+
},
509512
"aya": {
510513
"description": "Aya 23 یک مدل چندزبانه است که توسط Cohere ارائه شده و از 23 زبان پشتیبانی می‌کند و برای برنامه‌های چندزبانه تسهیلات فراهم می‌آورد."
511514
},

locales/fr-FR/components.json

+2
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@
8585
},
8686
"ModelSwitchPanel": {
8787
"emptyModel": "Aucun modèle activé. Veuillez vous rendre dans les paramètres pour l'activer.",
88+
"emptyProvider": "Aucun fournisseur activé, veuillez aller dans les paramètres pour l'activer",
89+
"goToSettings": "Aller aux paramètres",
8890
"provider": "Fournisseur"
8991
},
9092
"OllamaSetupGuide": {

locales/fr-FR/models.json

+3
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,9 @@
506506
"anthropic/claude-3.5-sonnet": {
507507
"description": "Claude 3.5 Sonnet offre des capacités supérieures à celles d'Opus et une vitesse plus rapide que Sonnet, tout en maintenant le même prix que Sonnet. Sonnet excelle particulièrement dans la programmation, la science des données, le traitement visuel et les tâches d'agent."
508508
},
509+
"anthropic/claude-3.7-sonnet": {
510+
"description": "Claude 3.7 Sonnet est le modèle le plus intelligent d'Anthropic à ce jour, et le premier modèle de raisonnement hybride sur le marché. Claude 3.7 Sonnet peut produire des réponses quasi instantanées ou un raisonnement prolongé, permettant aux utilisateurs de voir clairement ces processus. Sonnet excelle particulièrement dans la programmation, la science des données, le traitement visuel et les tâches d'agent."
511+
},
509512
"aya": {
510513
"description": "Aya 23 est un modèle multilingue lancé par Cohere, prenant en charge 23 langues, facilitant les applications linguistiques diversifiées."
511514
},

locales/it-IT/components.json

+2
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@
8585
},
8686
"ModelSwitchPanel": {
8787
"emptyModel": "Nessun modello attivo. Vai alle impostazioni per attivarne uno.",
88+
"emptyProvider": "Nessun fornitore attivo, vai alle impostazioni per attivarlo",
89+
"goToSettings": "Vai alle impostazioni",
8890
"provider": "Provider"
8991
},
9092
"OllamaSetupGuide": {

locales/it-IT/models.json

+3
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,9 @@
506506
"anthropic/claude-3.5-sonnet": {
507507
"description": "Claude 3.5 Sonnet offre capacità superiori rispetto a Opus e una velocità maggiore rispetto a Sonnet, mantenendo lo stesso prezzo di Sonnet. Sonnet è particolarmente abile in programmazione, scienza dei dati, elaborazione visiva e compiti di agenzia."
508508
},
509+
"anthropic/claude-3.7-sonnet": {
510+
"description": "Claude 3.7 Sonnet è il modello più intelligente di Anthropic fino ad oggi ed è il primo modello di ragionamento ibrido sul mercato. Claude 3.7 Sonnet può generare risposte quasi istantanee o pensieri prolungati e graduali, consentendo agli utenti di vedere chiaramente questi processi. Sonnet è particolarmente abile nella programmazione, nella scienza dei dati, nell'elaborazione visiva e nei compiti di agenzia."
511+
},
509512
"aya": {
510513
"description": "Aya 23 è un modello multilingue lanciato da Cohere, supporta 23 lingue, facilitando applicazioni linguistiche diversificate."
511514
},

locales/ja-JP/components.json

+2
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@
8585
},
8686
"ModelSwitchPanel": {
8787
"emptyModel": "有効なモデルがありません。設定に移動して有効にしてください。",
88+
"emptyProvider": "有効なサービスプロバイダーがありません。設定に移動して有効にしてください。",
89+
"goToSettings": "設定に移動",
8890
"provider": "プロバイダー"
8991
},
9092
"OllamaSetupGuide": {

locales/ja-JP/models.json

+3
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,9 @@
506506
"anthropic/claude-3.5-sonnet": {
507507
"description": "Claude 3.5 SonnetはOpusを超える能力を提供し、Sonnetよりも速い速度を持ちながら、Sonnetと同じ価格を維持します。Sonnetは特にプログラミング、データサイエンス、視覚処理、代理タスクに優れています。"
508508
},
509+
"anthropic/claude-3.7-sonnet": {
510+
"description": "Claude 3.7 Sonnetは、Anthropicがこれまでに開発した最も知能の高いモデルであり、市場で初めての混合推論モデルです。Claude 3.7 Sonnetは、ほぼ瞬時の応答や段階的な思考を生成することができ、ユーザーはこれらのプロセスを明確に見ることができます。Sonnetは特にプログラミング、データサイエンス、視覚処理、代理タスクに優れています。"
511+
},
509512
"aya": {
510513
"description": "Aya 23は、Cohereが提供する多言語モデルであり、23の言語をサポートし、多様な言語アプリケーションを便利にします。"
511514
},

locales/ko-KR/components.json

+2
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@
8585
},
8686
"ModelSwitchPanel": {
8787
"emptyModel": "활성화된 모델이 없습니다. 설정으로 이동하여 활성화하세요",
88+
"emptyProvider": "활성화된 서비스 제공자가 없습니다. 설정으로 가서 활성화하세요.",
89+
"goToSettings": "설정으로 가기",
8890
"provider": "제공자"
8991
},
9092
"OllamaSetupGuide": {

locales/ko-KR/models.json

+3
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,9 @@
506506
"anthropic/claude-3.5-sonnet": {
507507
"description": "Claude 3.5 Sonnet은 Opus를 초월하는 능력과 Sonnet보다 더 빠른 속도를 제공하며, Sonnet과 동일한 가격을 유지합니다. Sonnet은 프로그래밍, 데이터 과학, 비주얼 처리 및 에이전트 작업에 특히 강합니다."
508508
},
509+
"anthropic/claude-3.7-sonnet": {
510+
"description": "Claude 3.7 Sonnet은 Anthropic이 지금까지 개발한 가장 지능적인 모델로, 시장에서 최초의 혼합 추론 모델입니다. Claude 3.7 Sonnet은 거의 즉각적인 응답이나 연장된 단계적 사고를 생성할 수 있으며, 사용자는 이러한 과정을 명확하게 볼 수 있습니다. Sonnet은 프로그래밍, 데이터 과학, 시각 처리, 대리 작업에 특히 뛰어납니다."
511+
},
509512
"aya": {
510513
"description": "Aya 23은 Cohere에서 출시한 다국어 모델로, 23개 언어를 지원하여 다양한 언어 응용에 편리함을 제공합니다."
511514
},

locales/nl-NL/components.json

+2
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@
8585
},
8686
"ModelSwitchPanel": {
8787
"emptyModel": "No enabled model, please go to settings to enable.",
88+
"emptyProvider": "Geen ingeschakelde provider, ga naar instellingen om deze in te schakelen",
89+
"goToSettings": "Ga naar instellingen",
8890
"provider": "Provider"
8991
},
9092
"OllamaSetupGuide": {

locales/nl-NL/models.json

+3
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,9 @@
506506
"anthropic/claude-3.5-sonnet": {
507507
"description": "Claude 3.5 Sonnet biedt mogelijkheden die verder gaan dan Opus en een snellere snelheid dan Sonnet, terwijl het dezelfde prijs als Sonnet behoudt. Sonnet is bijzonder goed in programmeren, datawetenschap, visuele verwerking en agenttaken."
508508
},
509+
"anthropic/claude-3.7-sonnet": {
510+
"description": "Claude 3.7 Sonnet is het meest geavanceerde model van Anthropic tot nu toe en het eerste hybride redeneermodel op de markt. Claude 3.7 Sonnet kan bijna onmiddellijke reacties of uitgebreide stapsgewijze overpeinzingen genereren, waarbij gebruikers deze processen duidelijk kunnen volgen. Sonnet is bijzonder goed in programmeren, datawetenschap, visuele verwerking en agenttaken."
511+
},
509512
"aya": {
510513
"description": "Aya 23 is een meertalig model van Cohere, ondersteunt 23 talen en biedt gemak voor diverse taaltoepassingen."
511514
},

locales/pl-PL/components.json

+2
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@
8585
},
8686
"ModelSwitchPanel": {
8787
"emptyModel": "Brak włączonych modeli, przejdź do ustawień i włącz je",
88+
"emptyProvider": "Nie ma aktywnego dostawcy usług, przejdź do ustawień, aby go włączyć",
89+
"goToSettings": "Przejdź do ustawień",
8890
"provider": "Dostawca"
8991
},
9092
"OllamaSetupGuide": {

locales/pl-PL/models.json

+3
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,9 @@
506506
"anthropic/claude-3.5-sonnet": {
507507
"description": "Claude 3.5 Sonnet oferuje możliwości przewyższające Opus oraz szybsze tempo niż Sonnet, zachowując tę samą cenę. Sonnet szczególnie dobrze radzi sobie z programowaniem, nauką o danych, przetwarzaniem wizualnym i zadaniami agenta."
508508
},
509+
"anthropic/claude-3.7-sonnet": {
510+
"description": "Claude 3.7 Sonnet to najinteligentniejszy model stworzony przez Anthropic, a także pierwszy na rynku model mieszanej dedukcji. Claude 3.7 Sonnet potrafi generować niemal natychmiastowe odpowiedzi lub wydłużone, krok po kroku myślenie, które użytkownicy mogą wyraźnie obserwować. Sonnet szczególnie dobrze radzi sobie z programowaniem, nauką o danych, przetwarzaniem wizualnym oraz zadaniami agenta."
511+
},
509512
"aya": {
510513
"description": "Aya 23 to model wielojęzyczny wydany przez Cohere, wspierający 23 języki, ułatwiający różnorodne zastosowania językowe."
511514
},

locales/pt-BR/components.json

+2
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@
8585
},
8686
"ModelSwitchPanel": {
8787
"emptyModel": "Nenhum modelo habilitado. Por favor, vá para as configurações e habilite um.",
88+
"emptyProvider": "Nenhum provedor ativado, por favor vá para as configurações para ativar",
89+
"goToSettings": "Ir para as configurações",
8890
"provider": "Fornecedor"
8991
},
9092
"OllamaSetupGuide": {

locales/pt-BR/models.json

+3
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,9 @@
506506
"anthropic/claude-3.5-sonnet": {
507507
"description": "Claude 3.5 Sonnet oferece capacidades que vão além do Opus e uma velocidade superior ao Sonnet, mantendo o mesmo preço do Sonnet. O Sonnet é especialmente habilidoso em programação, ciência de dados, processamento visual e tarefas de agente."
508508
},
509+
"anthropic/claude-3.7-sonnet": {
510+
"description": "Claude 3.7 Sonnet é o modelo mais inteligente da Anthropic até agora e é o primeiro modelo de raciocínio misto do mercado. Claude 3.7 Sonnet pode gerar respostas quase instantâneas ou um pensamento gradual prolongado, permitindo que os usuários vejam claramente esses processos. Sonnet é especialmente habilidoso em programação, ciência de dados, processamento visual e tarefas de agente."
511+
},
509512
"aya": {
510513
"description": "Aya 23 é um modelo multilíngue lançado pela Cohere, suportando 23 idiomas, facilitando aplicações linguísticas diversificadas."
511514
},

locales/ru-RU/components.json

+2
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@
8585
},
8686
"ModelSwitchPanel": {
8787
"emptyModel": "Нет активированных моделей. Пожалуйста, перейдите в настройки и включите модель",
88+
"emptyProvider": "Нет активных провайдеров, пожалуйста, перейдите в настройки для их включения",
89+
"goToSettings": "Перейти в настройки",
8890
"provider": "Поставщик"
8991
},
9092
"OllamaSetupGuide": {

0 commit comments

Comments
 (0)