Skip to content

Commit

Permalink
🐛 fix: fix context cache control and model builtin search switch (#6831)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
arvinxx authored Mar 9, 2025
1 parent dde2993 commit 5c6b8ea
Show file tree
Hide file tree
Showing 54 changed files with 386 additions and 482 deletions.
2 changes: 2 additions & 0 deletions locales/ar/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@
},
"ModelSwitchPanel": {
"emptyModel": "لا توجد نماذج ممكن تمكينها، يرجى الانتقال إلى الإعدادات لتمكينها",
"emptyProvider": "لا توجد مزودات مفعلة، يرجى الذهاب إلى الإعدادات لتفعيلها",
"goToSettings": "اذهب إلى الإعدادات",
"provider": "مزود"
},
"OllamaSetupGuide": {
Expand Down
3 changes: 3 additions & 0 deletions locales/ar/models.json
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,9 @@
"anthropic/claude-3.5-sonnet": {
"description": "Claude 3.5 Sonnet يقدم قدرات تتجاوز Opus وسرعة أكبر من Sonnet، مع الحفاظ على نفس السعر. يتميز Sonnet بمهارات خاصة في البرمجة وعلوم البيانات ومعالجة الصور والمهام الوكيلة."
},
"anthropic/claude-3.7-sonnet": {
"description": "Claude 3.7 Sonnet هو أكثر النماذج ذكاءً من Anthropic حتى الآن، وهو أيضًا أول نموذج مختلط للتفكير في السوق. يمكن لـ Claude 3.7 Sonnet إنتاج استجابات شبه فورية أو تفكير تدريجي ممتد، حيث يمكن للمستخدمين رؤية هذه العمليات بوضوح. يتميز Sonnet بشكل خاص في البرمجة، وعلوم البيانات، ومعالجة الصور، والمهام الوكيلة."
},
"aya": {
"description": "Aya 23 هو نموذج متعدد اللغات أطلقته Cohere، يدعم 23 لغة، مما يسهل التطبيقات اللغوية المتنوعة."
},
Expand Down
2 changes: 2 additions & 0 deletions locales/bg-BG/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@
},
"ModelSwitchPanel": {
"emptyModel": "Няма активирани модели, моля, посетете настройките и ги активирайте",
"emptyProvider": "Няма активиран доставчик на услуги, моля, отидете в настройките, за да го активирате",
"goToSettings": "Отидете в настройките",
"provider": "Доставчик"
},
"OllamaSetupGuide": {
Expand Down
3 changes: 3 additions & 0 deletions locales/bg-BG/models.json
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,9 @@
"anthropic/claude-3.5-sonnet": {
"description": "Claude 3.5 Sonnet предлага способности, надхвърлящи Opus, и по-бърза скорост в сравнение с Sonnet, като същевременно запазва същата цена. Sonnet е особено силен в програмирането, науката за данни, визуалната обработка и агентските задачи."
},
"anthropic/claude-3.7-sonnet": {
"description": "Claude 3.7 Sonnet е най-интелигентният модел на Anthropic до момента и е първият хибриден модел за разсъждение на пазара. Claude 3.7 Sonnet може да генерира почти мигновени отговори или удължено стъпково мислене, което позволява на потребителите ясно да видят тези процеси. Sonnet е особено добър в програмирането, науката за данни, визуалната обработка и агентските задачи."
},
"aya": {
"description": "Aya 23 е многозначен модел, представен от Cohere, поддържащ 23 езика, предоставяйки удобство за многоезични приложения."
},
Expand Down
2 changes: 2 additions & 0 deletions locales/de-DE/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@
},
"ModelSwitchPanel": {
"emptyModel": "Kein aktiviertes Modell. Bitte gehen Sie zu den Einstellungen, um es zu aktivieren.",
"emptyProvider": "Es sind keine aktiven Anbieter vorhanden, bitte gehen Sie zu den Einstellungen, um sie zu aktivieren",
"goToSettings": "Zu den Einstellungen gehen",
"provider": "Anbieter"
},
"OllamaSetupGuide": {
Expand Down
3 changes: 3 additions & 0 deletions locales/de-DE/models.json
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,9 @@
"anthropic/claude-3.5-sonnet": {
"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."
},
"anthropic/claude-3.7-sonnet": {
"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."
},
"aya": {
"description": "Aya 23 ist ein mehrsprachiges Modell von Cohere, das 23 Sprachen unterstützt und die Anwendung in einer Vielzahl von Sprachen erleichtert."
},
Expand Down
2 changes: 2 additions & 0 deletions locales/en-US/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@
},
"ModelSwitchPanel": {
"emptyModel": "No enabled model. Please go to settings to enable.",
"emptyProvider": "No enabled providers. Please go to settings to enable one.",
"goToSettings": "Go to settings",
"provider": "Provider"
},
"OllamaSetupGuide": {
Expand Down
3 changes: 3 additions & 0 deletions locales/en-US/models.json
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,9 @@
"anthropic/claude-3.5-sonnet": {
"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."
},
"anthropic/claude-3.7-sonnet": {
"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."
},
"aya": {
"description": "Aya 23 is a multilingual model launched by Cohere, supporting 23 languages, facilitating diverse language applications."
},
Expand Down
2 changes: 2 additions & 0 deletions locales/es-ES/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@
},
"ModelSwitchPanel": {
"emptyModel": "No hay modelos habilitados. Vaya a la configuración para habilitarlos.",
"emptyProvider": "No hay proveedores habilitados, por favor ve a la configuración para activarlos",
"goToSettings": "Ir a la configuración",
"provider": "Proveedor"
},
"OllamaSetupGuide": {
Expand Down
3 changes: 3 additions & 0 deletions locales/es-ES/models.json
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,9 @@
"anthropic/claude-3.5-sonnet": {
"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."
},
"anthropic/claude-3.7-sonnet": {
"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."
},
"aya": {
"description": "Aya 23 es un modelo multilingüe lanzado por Cohere, que admite 23 idiomas, facilitando aplicaciones de lenguaje diversas."
},
Expand Down
2 changes: 2 additions & 0 deletions locales/fa-IR/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@
},
"ModelSwitchPanel": {
"emptyModel": "هیچ مدلی فعال نیست، لطفاً به تنظیمات بروید و آن را فعال کنید",
"emptyProvider": "هیچ ارائه‌دهنده‌ای فعال نیست، لطفاً به تنظیمات بروید و آن را فعال کنید",
"goToSettings": "به تنظیمات بروید",
"provider": "ارائه‌دهنده"
},
"OllamaSetupGuide": {
Expand Down
3 changes: 3 additions & 0 deletions locales/fa-IR/models.json
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,9 @@
"anthropic/claude-3.5-sonnet": {
"description": "Claude 3.5 Sonnet توانایی‌هایی فراتر از Opus ارائه می‌دهد و سرعتی سریع‌تر از Sonnet دارد، در حالی که قیمت آن با Sonnet یکسان است. Sonnet به‌ویژه در برنامه‌نویسی، علم داده، پردازش بصری و وظایف نمایندگی مهارت دارد."
},
"anthropic/claude-3.7-sonnet": {
"description": "Claude 3.7 Sonnet هو هوش مصنوعی پیشرفته‌ترین مدل Anthropic است و همچنین اولین مدل استدلال ترکیبی در بازار به شمار می‌رود. Claude 3.7 Sonnet می‌تواند پاسخ‌های تقریباً آنی یا تفکر تدریجی و طولانی‌تری تولید کند که کاربران می‌توانند این فرآیندها را به وضوح مشاهده کنند. Sonnet به‌ویژه در برنامه‌نویسی، علم داده، پردازش بصری و وظایف نمایندگی مهارت دارد."
},
"aya": {
"description": "Aya 23 یک مدل چندزبانه است که توسط Cohere ارائه شده و از 23 زبان پشتیبانی می‌کند و برای برنامه‌های چندزبانه تسهیلات فراهم می‌آورد."
},
Expand Down
2 changes: 2 additions & 0 deletions locales/fr-FR/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@
},
"ModelSwitchPanel": {
"emptyModel": "Aucun modèle activé. Veuillez vous rendre dans les paramètres pour l'activer.",
"emptyProvider": "Aucun fournisseur activé, veuillez aller dans les paramètres pour l'activer",
"goToSettings": "Aller aux paramètres",
"provider": "Fournisseur"
},
"OllamaSetupGuide": {
Expand Down
3 changes: 3 additions & 0 deletions locales/fr-FR/models.json
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,9 @@
"anthropic/claude-3.5-sonnet": {
"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."
},
"anthropic/claude-3.7-sonnet": {
"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."
},
"aya": {
"description": "Aya 23 est un modèle multilingue lancé par Cohere, prenant en charge 23 langues, facilitant les applications linguistiques diversifiées."
},
Expand Down
2 changes: 2 additions & 0 deletions locales/it-IT/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@
},
"ModelSwitchPanel": {
"emptyModel": "Nessun modello attivo. Vai alle impostazioni per attivarne uno.",
"emptyProvider": "Nessun fornitore attivo, vai alle impostazioni per attivarlo",
"goToSettings": "Vai alle impostazioni",
"provider": "Provider"
},
"OllamaSetupGuide": {
Expand Down
3 changes: 3 additions & 0 deletions locales/it-IT/models.json
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,9 @@
"anthropic/claude-3.5-sonnet": {
"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."
},
"anthropic/claude-3.7-sonnet": {
"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."
},
"aya": {
"description": "Aya 23 è un modello multilingue lanciato da Cohere, supporta 23 lingue, facilitando applicazioni linguistiche diversificate."
},
Expand Down
2 changes: 2 additions & 0 deletions locales/ja-JP/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@
},
"ModelSwitchPanel": {
"emptyModel": "有効なモデルがありません。設定に移動して有効にしてください。",
"emptyProvider": "有効なサービスプロバイダーがありません。設定に移動して有効にしてください。",
"goToSettings": "設定に移動",
"provider": "プロバイダー"
},
"OllamaSetupGuide": {
Expand Down
3 changes: 3 additions & 0 deletions locales/ja-JP/models.json
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,9 @@
"anthropic/claude-3.5-sonnet": {
"description": "Claude 3.5 SonnetはOpusを超える能力を提供し、Sonnetよりも速い速度を持ちながら、Sonnetと同じ価格を維持します。Sonnetは特にプログラミング、データサイエンス、視覚処理、代理タスクに優れています。"
},
"anthropic/claude-3.7-sonnet": {
"description": "Claude 3.7 Sonnetは、Anthropicがこれまでに開発した最も知能の高いモデルであり、市場で初めての混合推論モデルです。Claude 3.7 Sonnetは、ほぼ瞬時の応答や段階的な思考を生成することができ、ユーザーはこれらのプロセスを明確に見ることができます。Sonnetは特にプログラミング、データサイエンス、視覚処理、代理タスクに優れています。"
},
"aya": {
"description": "Aya 23は、Cohereが提供する多言語モデルであり、23の言語をサポートし、多様な言語アプリケーションを便利にします。"
},
Expand Down
2 changes: 2 additions & 0 deletions locales/ko-KR/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@
},
"ModelSwitchPanel": {
"emptyModel": "활성화된 모델이 없습니다. 설정으로 이동하여 활성화하세요",
"emptyProvider": "활성화된 서비스 제공자가 없습니다. 설정으로 가서 활성화하세요.",
"goToSettings": "설정으로 가기",
"provider": "제공자"
},
"OllamaSetupGuide": {
Expand Down
3 changes: 3 additions & 0 deletions locales/ko-KR/models.json
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,9 @@
"anthropic/claude-3.5-sonnet": {
"description": "Claude 3.5 Sonnet은 Opus를 초월하는 능력과 Sonnet보다 더 빠른 속도를 제공하며, Sonnet과 동일한 가격을 유지합니다. Sonnet은 프로그래밍, 데이터 과학, 비주얼 처리 및 에이전트 작업에 특히 강합니다."
},
"anthropic/claude-3.7-sonnet": {
"description": "Claude 3.7 Sonnet은 Anthropic이 지금까지 개발한 가장 지능적인 모델로, 시장에서 최초의 혼합 추론 모델입니다. Claude 3.7 Sonnet은 거의 즉각적인 응답이나 연장된 단계적 사고를 생성할 수 있으며, 사용자는 이러한 과정을 명확하게 볼 수 있습니다. Sonnet은 프로그래밍, 데이터 과학, 시각 처리, 대리 작업에 특히 뛰어납니다."
},
"aya": {
"description": "Aya 23은 Cohere에서 출시한 다국어 모델로, 23개 언어를 지원하여 다양한 언어 응용에 편리함을 제공합니다."
},
Expand Down
2 changes: 2 additions & 0 deletions locales/nl-NL/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@
},
"ModelSwitchPanel": {
"emptyModel": "No enabled model, please go to settings to enable.",
"emptyProvider": "Geen ingeschakelde provider, ga naar instellingen om deze in te schakelen",
"goToSettings": "Ga naar instellingen",
"provider": "Provider"
},
"OllamaSetupGuide": {
Expand Down
3 changes: 3 additions & 0 deletions locales/nl-NL/models.json
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,9 @@
"anthropic/claude-3.5-sonnet": {
"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."
},
"anthropic/claude-3.7-sonnet": {
"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."
},
"aya": {
"description": "Aya 23 is een meertalig model van Cohere, ondersteunt 23 talen en biedt gemak voor diverse taaltoepassingen."
},
Expand Down
2 changes: 2 additions & 0 deletions locales/pl-PL/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@
},
"ModelSwitchPanel": {
"emptyModel": "Brak włączonych modeli, przejdź do ustawień i włącz je",
"emptyProvider": "Nie ma aktywnego dostawcy usług, przejdź do ustawień, aby go włączyć",
"goToSettings": "Przejdź do ustawień",
"provider": "Dostawca"
},
"OllamaSetupGuide": {
Expand Down
3 changes: 3 additions & 0 deletions locales/pl-PL/models.json
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,9 @@
"anthropic/claude-3.5-sonnet": {
"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."
},
"anthropic/claude-3.7-sonnet": {
"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."
},
"aya": {
"description": "Aya 23 to model wielojęzyczny wydany przez Cohere, wspierający 23 języki, ułatwiający różnorodne zastosowania językowe."
},
Expand Down
2 changes: 2 additions & 0 deletions locales/pt-BR/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@
},
"ModelSwitchPanel": {
"emptyModel": "Nenhum modelo habilitado. Por favor, vá para as configurações e habilite um.",
"emptyProvider": "Nenhum provedor ativado, por favor vá para as configurações para ativar",
"goToSettings": "Ir para as configurações",
"provider": "Fornecedor"
},
"OllamaSetupGuide": {
Expand Down
3 changes: 3 additions & 0 deletions locales/pt-BR/models.json
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,9 @@
"anthropic/claude-3.5-sonnet": {
"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."
},
"anthropic/claude-3.7-sonnet": {
"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."
},
"aya": {
"description": "Aya 23 é um modelo multilíngue lançado pela Cohere, suportando 23 idiomas, facilitando aplicações linguísticas diversificadas."
},
Expand Down
2 changes: 2 additions & 0 deletions locales/ru-RU/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@
},
"ModelSwitchPanel": {
"emptyModel": "Нет активированных моделей. Пожалуйста, перейдите в настройки и включите модель",
"emptyProvider": "Нет активных провайдеров, пожалуйста, перейдите в настройки для их включения",
"goToSettings": "Перейти в настройки",
"provider": "Поставщик"
},
"OllamaSetupGuide": {
Expand Down
Loading

0 comments on commit 5c6b8ea

Please sign in to comment.