ستحتاج إلى استخدام الأمر "@agent" لاستخدام الأدوات.',
},
query: {
title: "استعلام",
- "desc-start": "سوف تقدم الإجابات",
- only: "فقط",
- "desc-end": "إذا وجد المستند في السياق",
+ description:
+ 'سيوفر الإجابات فقط إذا تم العثور على سياق الوثيقة. ستحتاج إلى استخدام الأمر "@agent" لاستخدام الأدوات.',
+ },
+ automatic: {
+ title: "سيارة",
+ description:
+ 'سيتم استخدام الأدوات تلقائيًا إذا كان النموذج ومزود الخدمة يدعمان استدعاء الأدوات الأصلية. إذا لم يتم دعم الأدوات الأصلية، فستحتاج إلى استخدام الأمر "@agent" لاستخدام الأدوات.',
},
},
history: {
diff --git a/frontend/src/locales/cs/common.js b/frontend/src/locales/cs/common.js
index 18b6abc5..b2d1b6be 100644
--- a/frontend/src/locales/cs/common.js
+++ b/frontend/src/locales/cs/common.js
@@ -191,15 +191,18 @@ const TRANSLATIONS = {
title: "Režim chatu",
chat: {
title: "Chat",
- "desc-start": "bude poskytovat odpovědi s obecnými znalostmi LLM",
- and: "a",
- "desc-end": "kontext dokumentu, který je nalezen.",
+ description:
+ "poskytne odpovědi založené na obecných znalostech LLM a kontextu dokumentu, který je k dispozici. Pro použití nástrojů budete muset použít příkaz @agent.",
},
query: {
title: "Dotaz",
- "desc-start": "bude poskytovat odpovědi",
- only: "pouze",
- "desc-end": "pokud je nalezen kontext dokumentu.",
+ description:
+ "budou poskytovat odpovědi pouze, pokud je nalezen kontext dokumentu. Pro použití nástrojů budete muset použít příkaz @agent.",
+ },
+ automatic: {
+ title: "Auto",
+ description:
+ "automaticky použije nástroje, pokud to podporují jak model, tak poskytovatel. Pokud není podporováno nativní volání nástrojů, budete muset použít příkaz `@agent` pro použití nástrojů.",
},
},
history: {
diff --git a/frontend/src/locales/da/common.js b/frontend/src/locales/da/common.js
index ea57718c..23e43d10 100644
--- a/frontend/src/locales/da/common.js
+++ b/frontend/src/locales/da/common.js
@@ -177,15 +177,18 @@ const TRANSLATIONS = {
title: "Chat-tilstand",
chat: {
title: "Chat",
- "desc-start": "vil give svar baseret på LLM'ens generelle viden",
- and: "og",
- "desc-end": "dokumentkontekst der findes.",
+ description:
+ 'vil give svar baseret på LLM\'s generelle viden og den relevante kontekst fra dokumentet. Du skal bruge kommandoen "@agent" for at bruge værktøjerne.',
},
query: {
title: "Forespørgsel",
- "desc-start": "vil give svar",
- only: "kun",
- "desc-end": "hvis dokumentkontekst findes.",
+ description:
+ "vil give svar kun, hvis dokumentets kontekst er fundet. Du skal bruge kommandoen @agent for at bruge værktøjerne.",
+ },
+ automatic: {
+ title: "Bil",
+ description:
+ 'vil automatisk bruge værktøjer, hvis modellen og leverandøren understøtter native værktøjskald. Hvis native værktøjskald ikke understøttes, skal du bruge kommandoen "@agent" for at bruge værktøjer.',
},
},
history: {
diff --git a/frontend/src/locales/de/common.js b/frontend/src/locales/de/common.js
index 7591d425..0c5dc8ba 100644
--- a/frontend/src/locales/de/common.js
+++ b/frontend/src/locales/de/common.js
@@ -184,15 +184,18 @@ const TRANSLATIONS = {
title: "Chat-Modus",
chat: {
title: "Chat",
- "desc-start": "wird Antworten mit dem allgemeinen Wissen des LLM",
- and: "und",
- "desc-end": "gefundenem Dokumentenkontext liefern.",
+ description:
+ "wird Antworten basierend auf dem allgemeinen Wissen des LLM und dem relevanten Kontext aus den Dokumenten und liefern. Sie benötigen den Befehl `@agent`, um die Tools zu nutzen.",
},
query: {
title: "Abfrage",
- "desc-start": "wird Antworten",
- only: "nur",
- "desc-end": "liefern, wenn Dokumentenkontext gefunden wird.",
+ description:
+ 'wird nur Antworten und bereitstellen, falls der Kontext des Dokuments gefunden wurde. Sie müssen den Befehl "@agent" verwenden, um die Tools zu nutzen.',
+ },
+ automatic: {
+ title: "Auto",
+ description:
+ 'wird automatisch Werkzeuge verwenden, wenn das Modell und der Anbieter native Werkzeugaufrufe unterstützen. Wenn native Werkzeugaufrufe nicht unterstützt werden, müssen Sie den Befehl "@agent" verwenden, um Werkzeuge zu nutzen.',
},
},
history: {
diff --git a/frontend/src/locales/en/common.js b/frontend/src/locales/en/common.js
index 67306800..55e6f43c 100644
--- a/frontend/src/locales/en/common.js
+++ b/frontend/src/locales/en/common.js
@@ -188,17 +188,20 @@ const TRANSLATIONS = {
},
mode: {
title: "Chat mode",
+ automatic: {
+ title: "Auto",
+ description:
+ "will automatically use tools if the model and provider support native tool calling. If native tooling is not supported, you will need to use the @agent command to use tools.",
+ },
chat: {
title: "Chat",
- "desc-start": "will provide answers with the LLM's general knowledge",
- and: "and",
- "desc-end": "document context that is found.",
+ description:
+ "will provide answers with the LLM's general knowledge and document context that is found. You will need to use the @agent command to use tools.",
},
query: {
title: "Query",
- "desc-start": "will provide answers",
- only: "only",
- "desc-end": "if document context is found.",
+ description:
+ "will provide answers only if document context is found. You will need to use the @agent command to use tools.",
},
},
history: {
diff --git a/frontend/src/locales/es/common.js b/frontend/src/locales/es/common.js
index 882054e0..2ec4fd7a 100644
--- a/frontend/src/locales/es/common.js
+++ b/frontend/src/locales/es/common.js
@@ -185,16 +185,18 @@ const TRANSLATIONS = {
title: "Modo de chat",
chat: {
title: "Chat",
- "desc-start":
- "proporcionará respuestas con el conocimiento general del LLM",
- and: "y",
- "desc-end": "el contexto del documento que se encuentre.",
+ description:
+ 'proporcionará respuestas basándose en el conocimiento general del LLM y en el contexto del documento que se encuentre disponible. Para utilizar las herramientas, deberá utilizar el comando "@agent".',
},
query: {
title: "Consulta",
- "desc-start": "proporcionará respuestas",
- only: "solo",
- "desc-end": "si se encuentra contexto del documento.",
+ description:
+ 'proporcionará respuestas solo si se encuentra el contexto del documento. Deberá utilizar el comando "@agent" para utilizar las herramientas.',
+ },
+ automatic: {
+ title: "Coche",
+ description:
+ 'Utilizará automáticamente las herramientas si el modelo y el proveedor admiten la llamada a herramientas nativas. Si no se admiten las herramientas nativas, deberá utilizar el comando "@agent" para utilizar las herramientas.',
},
},
history: {
diff --git a/frontend/src/locales/et/common.js b/frontend/src/locales/et/common.js
index 2cefa614..38b99031 100644
--- a/frontend/src/locales/et/common.js
+++ b/frontend/src/locales/et/common.js
@@ -181,15 +181,18 @@ const TRANSLATIONS = {
title: "Vestlusrežiim",
chat: {
title: "Vestlus",
- "desc-start": "annab vastuseid LLM-i üldteadmistest",
- and: "ja",
- "desc-end": "leitud dokumendikontekstist.",
+ description:
+ 'teenab vastuseid, kasutades LLM-i üldist teadmist ja dokumentide konteksti, mida on leitav. Selleks peate kasutama käsku "@agent".',
},
query: {
title: "Päring",
- "desc-start": "annab vastuseid",
- only: "ainult",
- "desc-end": "kui leitakse dokumendikontekst.",
+ description:
+ 'teenib vastuseid ainult__, kui dokumendi kontekst on leitud. Vajate kasutama käesu "agent", et kasutada tööriime.',
+ },
+ automatic: {
+ title: "Automaailm",
+ description:
+ 'kasutab automaatselt tööriistu, kui mudel ja pakkuja toetavad native tööriistade kasutamist. Kui native tööriistade kasutamine pole toetatud, peate kasutama käsku "@agent", et tööriiste kasutada.',
},
},
history: {
diff --git a/frontend/src/locales/fa/common.js b/frontend/src/locales/fa/common.js
index 3cb339ee..b11ad147 100644
--- a/frontend/src/locales/fa/common.js
+++ b/frontend/src/locales/fa/common.js
@@ -176,15 +176,18 @@ const TRANSLATIONS = {
title: "حالت گفتگو",
chat: {
title: "گفتگو",
- "desc-start": "پاسخها را با دانش عمومی LLM",
- and: "و",
- "desc-end": "محتوای اسناد یافت شده ارائه میدهد.",
+ description:
+ "با استفاده از دانش عمومی مدل زبانی و اطلاعات موجود در سند، پاسخها را ارائه خواهد داد. برای استفاده از ابزارها، باید از دستور @agent استفاده کنید.",
},
query: {
title: "پرسوجو",
- "desc-start": "پاسخها را",
- only: "فقط",
- "desc-end": "در صورت یافتن محتوای اسناد ارائه میدهد.",
+ description:
+ "پاسخها را تنها در صورت یافتن زمینه سند ارائه میدهد. برای استفاده از ابزارها، باید از دستور @agent استفاده کنید.",
+ },
+ automatic: {
+ title: "خودرو",
+ description:
+ "اگر مدل و ارائهدهنده از فراخوانی ابزار به صورت پیشفرض پشتیبانی کنند، ابزارها بهطور خودکار استفاده خواهند شد. در صورتی که فراخوانی ابزار به صورت پیشفرض پشتیبانی نشود، شما باید از دستور @agent برای استفاده از ابزارها استفاده کنید.",
},
},
history: {
diff --git a/frontend/src/locales/fr/common.js b/frontend/src/locales/fr/common.js
index decef6b9..68472588 100644
--- a/frontend/src/locales/fr/common.js
+++ b/frontend/src/locales/fr/common.js
@@ -177,16 +177,18 @@ const TRANSLATIONS = {
title: "Mode de chat",
chat: {
title: "Chat",
- "desc-start":
- "fournira des réponses avec les connaissances générales du LLM",
- and: "et",
- "desc-end": "le contexte du document trouvé.",
+ description:
+ 'fournira des réponses en utilisant les connaissances générales du LLM et le contexte du document correspondant. Vous devrez utiliser la commande "@agent" pour utiliser les outils.',
},
query: {
title: "Requête",
- "desc-start": "fournira des réponses",
- only: "uniquement",
- "desc-end": "si un contexte de document est trouvé.",
+ description:
+ "fournira des réponses uniquement si le contexte du document est trouvé. Vous devrez utiliser la commande @agent pour utiliser les outils.",
+ },
+ automatic: {
+ title: "Voiture",
+ description:
+ "utilisera automatiquement les outils si le modèle et le fournisseur prennent en charge l'appel de outils natifs. Si l'utilisation d'outils natifs n'est pas prise en charge, vous devrez utiliser la commande \"@agent\" pour utiliser les outils.",
},
},
history: {
diff --git a/frontend/src/locales/he/common.js b/frontend/src/locales/he/common.js
index e43c2461..ccd5075f 100644
--- a/frontend/src/locales/he/common.js
+++ b/frontend/src/locales/he/common.js
@@ -179,15 +179,18 @@ const TRANSLATIONS = {
title: "מצב צ'אט",
chat: {
title: "צ'אט",
- "desc-start": "יספק תשובות עם הידע הכללי של מודל השפה",
- and: "וכן",
- "desc-end": "מהקשר המסמכים שנמצא.",
+ description:
+ 'יוכל לספק תשובות בהתבסס על הידע הכללי של ה-LLM ועל ההקשר הרלוונטי מתוך המסמך. ו-\nתצטרכו להשתמש בפקודה "@agent" כדי להשתמש בכלי.',
},
query: {
title: "שאילתה",
- "desc-start": "יספק תשובות",
- only: "רק",
- "desc-end": "אם נמצא הקשר במסמכים.",
+ description:
+ "יספק תשובות רקבמידה ויהיה ניתן למצוא הקשר של המסמך. תצטרכו להשתמש בפקודה @agent כדי להשתמש בכלי.",
+ },
+ automatic: {
+ title: "רכב",
+ description:
+ 'הכלי ישתמש באופן אוטומטי בכלים אם המודל והספק תומכים בהם. אם אין תמיכה בכלים מקומיים, תצטרכו להשתמש בפקודה "@agent" כדי להשתמש בכלים.',
},
},
history: {
diff --git a/frontend/src/locales/it/common.js b/frontend/src/locales/it/common.js
index e19a0e69..36c72b8b 100644
--- a/frontend/src/locales/it/common.js
+++ b/frontend/src/locales/it/common.js
@@ -178,15 +178,18 @@ const TRANSLATIONS = {
title: "Modalità chat",
chat: {
title: "Chat",
- "desc-start": "fornirà risposte con la conoscenza generale dell'LLM",
- and: "e",
- "desc-end": "contesto documentale associato.",
+ description:
+ "fornirà risposte basate sulla conoscenza generale del modello LLM e sul contesto del documento e che è disponibile. Per utilizzare gli strumenti, sarà necessario utilizzare il comando @agent.",
},
query: {
title: "Query",
- "desc-start": "fornirà risposte",
- only: "solo",
- "desc-end": "se sarà presente un contesto documentale",
+ description:
+ 'fornirà risposte solo se il contesto del documento viene trovato. Per utilizzare gli strumenti, sarà necessario utilizzare il comando "@agent".',
+ },
+ automatic: {
+ title: "Auto",
+ description:
+ 'utilizzerà automaticamente gli strumenti se il modello e il fornitore supportano la chiamata nativa agli strumenti. Se la chiamata nativa agli strumenti non è supportata, sarà necessario utilizzare il comando "@agent" per utilizzare gli strumenti.',
},
},
history: {
diff --git a/frontend/src/locales/ja/common.js b/frontend/src/locales/ja/common.js
index 64f297b4..d7382458 100644
--- a/frontend/src/locales/ja/common.js
+++ b/frontend/src/locales/ja/common.js
@@ -175,15 +175,18 @@ const TRANSLATIONS = {
title: "チャットモード",
chat: {
title: "チャット",
- "desc-start": "LLMの一般知識で回答します",
- and: "および",
- "desc-end": "見つかったドキュメントコンテキストを使用します。",
+ description:
+ "LLMの一般的な知識と、関連するドキュメントの文脈に基づいて、回答を提供します。ツールを使用するには、`@agent`コマンドを使用する必要があります。",
},
query: {
title: "クエリ",
- "desc-start": "回答を提供します",
- only: "のみ",
- "desc-end": "ドキュメントコンテキストが見つかった場合のみ。",
+ description:
+ "該当する情報が見つかった場合、回答をのみ提供します。ツールを使用するには、@agentコマンドを使用する必要があります。",
+ },
+ automatic: {
+ title: "自動車",
+ description:
+ "ネイティブなツール呼び出しをサポートしている場合、モデルとプロバイダーが自動的にツールを使用します。 ネイティブなツール呼び出しがサポートされていない場合は、@agentコマンドを使用してツールを使用する必要があります。",
},
},
history: {
diff --git a/frontend/src/locales/ko/common.js b/frontend/src/locales/ko/common.js
index bf0dfa42..a86b98da 100644
--- a/frontend/src/locales/ko/common.js
+++ b/frontend/src/locales/ko/common.js
@@ -180,15 +180,18 @@ const TRANSLATIONS = {
title: "채팅 모드",
chat: {
title: "채팅",
- "desc-start": "문서 내용을 찾습니다.",
- and: "그리고",
- "desc-end": "LLM의 일반 지식을 같이 사용하여 답변을 제공합니다",
+ description:
+ "LLM의 일반적인 지식과 관련 문맥 정보를 활용하여 답변을 제공합니다. 도구를 사용하려면 @agent 명령어를 사용해야 합니다.",
},
query: {
title: "쿼리",
- "desc-start": "문서 컨텍스트를 찾을 ",
- only: "때만",
- "desc-end": "답변을 제공합니다.",
+ description:
+ "문서 맥락이 발견되면 에만 답변을 제공합니다. 도구를 사용하려면 @agent 명령을 사용해야 합니다.",
+ },
+ automatic: {
+ title: "자동",
+ description:
+ "모델과 제공업체가 네이티브 도구 호출을 지원하는 경우, 자동으로 도구를 사용합니다. 네이티브 도구 호출이 지원되지 않는 경우, 도구를 사용하려면 @agent 명령을 사용해야 합니다.",
},
},
history: {
diff --git a/frontend/src/locales/lv/common.js b/frontend/src/locales/lv/common.js
index f9ffd1d6..77c86816 100644
--- a/frontend/src/locales/lv/common.js
+++ b/frontend/src/locales/lv/common.js
@@ -183,15 +183,18 @@ const TRANSLATIONS = {
title: "Sarunas režīms",
chat: {
title: "Saruna",
- "desc-start": "sniegs atbildes ar LLM vispārējām zināšanām",
- and: "un",
- "desc-end": "dokumentu kontekstu, kas tiek atrasts.",
+ description:
+ 'sniedz atbildes, izmantojot LLM vispārīgo zināšanu un dokumenta kontekstu, kas ir pieejams. Lai izmantotu rīkus, jums jāizmantojat komandu "@agent".',
},
query: {
title: "Vaicājums",
- "desc-start": "sniegs atbildes",
- only: "tikai",
- "desc-end": "ja tiek atrasts dokumentu konteksts.",
+ description:
+ 'sniedz atbildes tikai , ja dokumenta konteksts ir atrasts. Lai izmantotu rīkus, jums būs jāizmanto komanda "@agent".',
+ },
+ automatic: {
+ title: "Automobiļs",
+ description:
+ 'automātiski izmantos rīkus, ja modelis un sniedzējs atbalsta vietējo rīku izmantošanu. Ja vietējā rīku izmantošana netiek atbalstīta, jums būs jāizmantojas "@agent" komanda, lai izmantotu rīkus.',
},
},
history: {
diff --git a/frontend/src/locales/nl/common.js b/frontend/src/locales/nl/common.js
index 2943f2b9..d350cfb9 100644
--- a/frontend/src/locales/nl/common.js
+++ b/frontend/src/locales/nl/common.js
@@ -176,15 +176,18 @@ const TRANSLATIONS = {
title: "Chatmodus",
chat: {
title: "Chat",
- "desc-start": "zal antwoorden geven met de algemene kennis van de LLM",
- and: "en",
- "desc-end": "documentcontext die wordt gevonden.",
+ description:
+ "zal antwoorden geven met de algemene kennis van het LLM en de relevante context uit het document. U moet het `@agent`-commando gebruiken om tools te gebruiken.",
},
query: {
title: "Query",
- "desc-start": "zal antwoorden geven",
- only: "alleen",
- "desc-end": "als documentcontext wordt gevonden.",
+ description:
+ "zal antwoorden alleen geven, indien de context van het document wordt gevonden. U moet het commando @agent gebruiken om tools te gebruiken.",
+ },
+ automatic: {
+ title: "Auto",
+ description:
+ "zal automatisch tools gebruiken als het model en de provider native tool-aanroepen ondersteunen. Als native tooling niet wordt ondersteund, moet u het `@agent`-commando gebruiken om tools te gebruiken.",
},
},
history: {
diff --git a/frontend/src/locales/pl/common.js b/frontend/src/locales/pl/common.js
index ab9ba831..efea7580 100644
--- a/frontend/src/locales/pl/common.js
+++ b/frontend/src/locales/pl/common.js
@@ -183,16 +183,18 @@ const TRANSLATIONS = {
title: "Tryb czatu",
chat: {
title: "Czat",
- "desc-start": "dostarczy odpowiedzi na podstawie wiedzy ogólnej LLM",
- and: "oraz",
- "desc-end": " znalezionym kontekście (dokumenty, źródła danych)",
+ description:
+ "zapewni odpowiedzi, wykorzystując ogólną wiedzę LLM oraz kontekst dokumentu, w którym ta wiedza znajduje się. Będziesz musiał użyć komendy `@agent` w celu korzystania z narzędzi.",
},
query: {
title: "Zapytanie (wyszukiwanie)",
- "desc-start": "dostarczy odpowiedzi",
- only: "tylko",
- "desc-end":
- "na podstawie znalezionego kontekstu (dokumenty, źródła danych) - w przeciwnym razie odmówi odpowiedzi.",
+ description:
+ "będzie dostarczać odpowiedzi tylko, jeśli zostanie zidentyfikowany kontekst dokumentu. Będziesz musiał użyć komendy `@agent` w celu korzystania z narzędzi.",
+ },
+ automatic: {
+ title: "Samochód",
+ description:
+ "automatycznie będzie wykorzystywał narzędzia, jeśli model i dostawca obsługują natywne wywoływanie narzędzi. Jeśli natywne narzędzia nie są obsługiwane, konieczne będzie użycie polecenia `@agent` w celu wykorzystania narzędzi.",
},
},
history: {
diff --git a/frontend/src/locales/pt_BR/common.js b/frontend/src/locales/pt_BR/common.js
index ebfc9dd7..1d5fd71a 100644
--- a/frontend/src/locales/pt_BR/common.js
+++ b/frontend/src/locales/pt_BR/common.js
@@ -183,15 +183,18 @@ const TRANSLATIONS = {
title: "Modo de Chat",
chat: {
title: "Chat",
- "desc-start": "fornecerá respostas com conhecimento geral do LLM",
- and: "e",
- "desc-end": "contexto dos documentos encontrados.",
+ description:
+ 'fornecerá respostas com base no conhecimento geral do LLM e no contexto do documento encontrado. Você precisará usar o comando "@agent" para utilizar as ferramentas.',
},
query: {
title: "Consulta",
- "desc-start": "fornecerá respostas",
- only: "apenas",
- "desc-end": "se contexto for encontrado nos documentos.",
+ description:
+ 'fornecerá respostas apenas caso o contexto do documento seja encontrado. Você precisará usar o comando "@agent" para utilizar as ferramentas.',
+ },
+ automatic: {
+ title: "Automóvel",
+ description:
+ 'utilizará automaticamente as ferramentas, se o modelo e o provedor suportarem a chamada nativa de ferramentas. Se a chamada nativa de ferramentas não for suportada, você precisará usar o comando "@agent" para utilizar as ferramentas.',
},
},
history: {
diff --git a/frontend/src/locales/ro/common.js b/frontend/src/locales/ro/common.js
index 49fa53ad..5e2b824d 100644
--- a/frontend/src/locales/ro/common.js
+++ b/frontend/src/locales/ro/common.js
@@ -185,16 +185,18 @@ const TRANSLATIONS = {
title: "Mod chat",
chat: {
title: "Chat",
- "desc-start":
- "oferă răspunsuri bazate pe cunoștințele generale ale LLM-ului",
- and: "și",
- "desc-end": "context document care este găsit.",
+ description:
+ 'va oferi răspunsuri folosind cunoștințele generale ale modelului LLM și contextul documentului respectiv. Va trebui să utilizați comanda "@agent" pentru a utiliza instrumentele.',
},
query: {
title: "Interogare",
- "desc-start": "oferă răspunsuri",
- only: "doar",
- "desc-end": "dacă contextul documentului este găsit.",
+ description:
+ 'vor oferi răspunsuri **doar** dacă contextul documentului este identificat. Veți avea nevoie să utilizați comanda "@agent" pentru a utiliza instrumentele.',
+ },
+ automatic: {
+ title: "Mașină",
+ description:
+ 'va utiliza automat instrumentele, dacă modelul și furnizorul suportă apelarea nativă a instrumentelor. Dacă apelarea nativă a instrumentelor nu este suportată, veți avea nevoie să utilizați comanda "@agent" pentru a utiliza instrumentele.',
},
},
history: {
diff --git a/frontend/src/locales/ru/common.js b/frontend/src/locales/ru/common.js
index bb9473ef..93ea56bb 100644
--- a/frontend/src/locales/ru/common.js
+++ b/frontend/src/locales/ru/common.js
@@ -176,15 +176,18 @@ const TRANSLATIONS = {
title: "Режим чата",
chat: {
title: "Чат",
- "desc-start": "будет предоставлять ответы с общей информацией LLM",
- and: "и",
- "desc-end": "найденный контекст документов.",
+ description:
+ "предоставит ответы, используя общие знания, содержащиеся в LLM, и контекст документа, который был предоставлен. Для использования инструментов необходимо использовать команду @agent.",
},
query: {
title: "Запрос",
- "desc-start": "будет предоставлять ответы",
- only: "только",
- "desc-end": "если найден контекст документов.",
+ description:
+ "предоставит ответы только в том случае, если будет найден контекст документа.Для использования инструментов необходимо использовать команду @agent.",
+ },
+ automatic: {
+ title: "Авто",
+ description:
+ "автоматически будет использовать инструменты, если модель и поставщик поддерживают вызов инструментов. Если вызов инструментов не поддерживается, вам потребуется использовать команду `@agent` для использования инструментов.",
},
},
history: {
diff --git a/frontend/src/locales/tr/common.js b/frontend/src/locales/tr/common.js
index 96e5e1d4..ca0cad0f 100644
--- a/frontend/src/locales/tr/common.js
+++ b/frontend/src/locales/tr/common.js
@@ -176,15 +176,18 @@ const TRANSLATIONS = {
title: "Sohbet Modu",
chat: {
title: "Sohbet",
- "desc-start": "LLM'nin genel bilgisiyle yanıtlar sunar",
- and: "ve",
- "desc-end": "bulunan belge bağlamını ekler.",
+ description:
+ "LLM'nin genel bilgisi ve bulunan doküman bağlamıyla cevaplar sunacaktır. Araçları kullanmak için @agent komutunu kullanmanız gerekecektir.",
},
query: {
title: "Sorgu",
- "desc-start": "yanıtları",
- only: "sadece",
- "desc-end": "belge bağlamı bulunduğunda sunar.",
+ description:
+ "yalnızca doküman bağlamı bulunursa yanıtlar sağlayacaktır.İhtiyaç duyacağınız araçları kullanmak için @agent komutunu kullanmanız gerekecektir.",
+ },
+ automatic: {
+ title: "Oto",
+ description:
+ " Varsa, model ve sağlayıcı tarafından desteklenen yerel araçları otomatik olarak kullanacaktır. Yerel araç kullanımı desteklenmiyorsa, araçları kullanmak için @agent komutunu kullanmanız gerekecektir.",
},
},
history: {
diff --git a/frontend/src/locales/vn/common.js b/frontend/src/locales/vn/common.js
index be950076..efde4c5e 100644
--- a/frontend/src/locales/vn/common.js
+++ b/frontend/src/locales/vn/common.js
@@ -176,15 +176,18 @@ const TRANSLATIONS = {
title: "Chế độ trò chuyện",
chat: {
title: "Trò chuyện",
- "desc-start": "sẽ cung cấp câu trả lời với kiến thức chung của LLM",
- and: "và",
- "desc-end": "ngữ cảnh tài liệu được tìm thấy.",
+ description:
+ "sẽ cung cấp câu trả lời dựa trên kiến thức chung của LLM và ngữ cảnh tài liệu được cung cấp. Bạn cần sử dụng lệnh @agent để sử dụng các công cụ.",
},
query: {
title: "Truy vấn",
- "desc-start": "sẽ cung cấp câu trả lời",
- only: "chỉ",
- "desc-end": "khi tìm thấy ngữ cảnh tài liệu.",
+ description:
+ "sẽ cung cấp câu trả lời chỉ khi ngữ cảnh của tài liệu được tìm thấy. Bạn cần sử dụng lệnh @agent để sử dụng các công cụ.",
+ },
+ automatic: {
+ title: "Tự động",
+ description:
+ "sẽ tự động sử dụng các công cụ nếu mô hình và nhà cung cấp hỗ trợ gọi công cụ gốc. Nếu không hỗ trợ gọi công cụ gốc, bạn sẽ cần sử dụng lệnh `@agent` để sử dụng các công cụ.",
},
},
history: {
diff --git a/frontend/src/locales/zh/common.js b/frontend/src/locales/zh/common.js
index 8d0505a6..cec21fd4 100644
--- a/frontend/src/locales/zh/common.js
+++ b/frontend/src/locales/zh/common.js
@@ -177,15 +177,18 @@ const TRANSLATIONS = {
title: "聊天模式",
chat: {
title: "聊天",
- "desc-start": "将提供 LLM 的一般知识",
- and: "和",
- "desc-end": "找到的文档上下文的答案。",
+ description:
+ "将提供答案,利用LLM的通用知识和相关文档的上下文信息。您需要使用 `@agent` 命令来使用工具。",
},
query: {
title: "查询",
- "desc-start": "将会提供答案",
- only: "仅当",
- "desc-end": "找到文档上下文时。",
+ description:
+ "将在找到文档上下文时提供答案 仅限。您需要使用 @agent 命令来使用工具。",
+ },
+ automatic: {
+ title: "自动",
+ description:
+ "如果模型和提供商支持原生工具调用,则会自动使用这些工具。 如果不支持原生工具调用,则需要使用 `@agent` 命令来使用工具。",
},
},
history: {
diff --git a/frontend/src/locales/zh_TW/common.js b/frontend/src/locales/zh_TW/common.js
index 08a3fba6..6bde4bd9 100644
--- a/frontend/src/locales/zh_TW/common.js
+++ b/frontend/src/locales/zh_TW/common.js
@@ -169,15 +169,18 @@ const TRANSLATIONS = {
title: "對話模式",
chat: {
title: "對話",
- "desc-start": "會結合 LLM 的一般知識",
- and: "以及",
- "desc-end": "已找到的文件內容來回答。",
+ description:
+ "將提供答案,利用 LLM 的一般知識和相關文件內容。您需要使用 `@agent` 命令來使用工具。",
},
query: {
title: "查詢",
- "desc-start": "會",
- only: "只",
- "desc-end": "在找到文件內容時回答。",
+ description:
+ "將提供答案,僅在找到文件上下文時 。您需要使用 @agent 指令來使用工具。",
+ },
+ automatic: {
+ title: "自動",
+ description:
+ "如果模型和供應商支援原生工具調用,則系統會自動使用這些工具。 如果原生工具調用不受支援,您需要使用 `@agent` 命令來使用工具。",
},
},
history: {
diff --git a/frontend/src/models/workspace.js b/frontend/src/models/workspace.js
index a2799da1..b36788cb 100644
--- a/frontend/src/models/workspace.js
+++ b/frontend/src/models/workspace.js
@@ -569,6 +569,27 @@ const Workspace = {
return response;
},
+ /**
+ * Checks if the agent command is available for a workspace
+ * by checking if the workspace's agent provider supports native tool calling.
+ *
+ * This can be model specific or enabled via ENV flag.
+ * @param {string} slug - workspace slug
+ * @returns {Promise<{showAgentCommand: boolean}>}
+ */
+ agentCommandAvailable: async function (slug = null) {
+ if (!slug) return { showAgentCommand: true };
+ return await fetch(
+ `${API_BASE}/workspace/${slug}/is-agent-command-available`,
+ { headers: baseHeaders() }
+ )
+ .then((res) => res.json())
+ .catch((e) => {
+ console.error(e);
+ return { showAgentCommand: true };
+ });
+ },
+
threads: WorkspaceThread,
};
diff --git a/frontend/src/pages/Main/Home/index.jsx b/frontend/src/pages/Main/Home/index.jsx
index 60a9d947..6ccf7545 100644
--- a/frontend/src/pages/Main/Home/index.jsx
+++ b/frontend/src/pages/Main/Home/index.jsx
@@ -64,11 +64,15 @@ export default function Home() {
async function init() {
const ws = await getTargetWorkspace();
if (ws) {
- const [suggestedMessages, pfpUrl] = await Promise.all([
+ const [suggestedMessages, { showAgentCommand }] = await Promise.all([
Workspace.getSuggestedMessages(ws.slug),
- Workspace.fetchPfp(ws.slug),
+ Workspace.agentCommandAvailable(ws.slug),
]);
- setWorkspace({ ...ws, suggestedMessages, pfpUrl });
+ setWorkspace({
+ ...ws,
+ suggestedMessages,
+ showAgentCommand,
+ });
}
setWorkspaceLoading(false);
}
@@ -289,6 +293,7 @@ function HomeContent({ workspace, setWorkspace, threadSlug, setThreadSlug }) {
{t("main-page.greeting")}
);
}
+
+/**
+ * A component that displays the explanation for a given chat mode.
+ * @param {'automatic' | 'chat' | 'query'} chatMode - The chat mode to display the explanation for.
+ * @returns {JSX.Element} The component to display the explanation for the given chat mode.
+ */
+function ChatModeExplanation({ chatMode = "chat" }) {
+ const { t } = useTranslation();
+ return (
+