From ee654f08d214b460c7c9bb8637bdb35306205798 Mon Sep 17 00:00:00 2001 From: Magicbook1108 Date: Wed, 28 Jan 2026 09:52:32 +0800 Subject: [PATCH] Refact: update description for max_token in embedding #12792 (#12845) ### What problem does this PR solve? Refact: update description for max_token in embedding #12792 ### Type of change - [x] Refactoring Co-authored-by: Liu An --- .../agent/agent_component_reference/agent.mdx | 2 +- .../agent_component_reference/transformer.md | 2 +- uv.lock | 26 +++++++++++++++++ web/src/locales/de.ts | 6 ++-- web/src/locales/en.ts | 28 +++++++++++++++++-- web/src/locales/es.ts | 6 ++-- web/src/locales/fr.ts | 4 +-- web/src/locales/id.ts | 6 ++-- web/src/locales/it.ts | 18 +++++++----- web/src/locales/ja.ts | 6 ++-- web/src/locales/pt-br.ts | 4 +-- web/src/locales/ru.ts | 4 +-- web/src/locales/vi.ts | 6 ++-- web/src/locales/zh-traditional.ts | 6 ++-- web/src/locales/zh.ts | 6 ++-- 15 files changed, 85 insertions(+), 45 deletions(-) diff --git a/docs/guides/agent/agent_component_reference/agent.mdx b/docs/guides/agent/agent_component_reference/agent.mdx index 7a2207393..b12c24666 100644 --- a/docs/guides/agent/agent_component_reference/agent.mdx +++ b/docs/guides/agent/agent_component_reference/agent.mdx @@ -135,7 +135,7 @@ Click the dropdown menu of **Model** to show the model configuration window. - A higher **frequency penalty** value results in the model being more conservative in its use of repeated tokens. - Defaults to 0.7. - **Max tokens**: - This sets the maximum length of the model's output, measured in the number of tokens (words or pieces of words). It is disabled by default, allowing the model to determine the number of tokens in its responses. + - The maximum context size of the agent. :::tip NOTE - It is not necessary to stick with the same model for all components. If a specific model is not performing well for a particular task, consider using a different one. diff --git a/docs/guides/agent/agent_component_reference/transformer.md b/docs/guides/agent/agent_component_reference/transformer.md index 50e4eeee5..822abe80e 100644 --- a/docs/guides/agent/agent_component_reference/transformer.md +++ b/docs/guides/agent/agent_component_reference/transformer.md @@ -46,7 +46,7 @@ Click the dropdown menu of **Model** to show the model configuration window. - A higher **frequency penalty** value results in the model being more conservative in its use of repeated tokens. - Defaults to 0.7. - **Max tokens**: - This sets the maximum length of the model's output, measured in the number of tokens (words or pieces of words). It is disabled by default, allowing the model to determine the number of tokens in its responses. + - The maximum context size of the agent. :::tip NOTE - It is not necessary to stick with the same model for all components. If a specific model is not performing well for a particular task, consider using a different one. diff --git a/uv.lock b/uv.lock index 33030c5a9..6da33ee57 100644 --- a/uv.lock +++ b/uv.lock @@ -4076,6 +4076,30 @@ wheels = [ { url = "https://pypi.tuna.tsinghua.edu.cn/packages/85/a5/dba3384423834009bdd41c7021de5c663468a0e7bc4071cb301721e52a99/mypy_boto3_s3-1.40.26-py3-none-any.whl", hash = "sha256:6d055d16ef89a0133ade92f6b4f09603e4acc31a0f5e8f846edf4eb48f17b5a7", size = 82762, upload-time = "2025-09-08T20:12:19.338Z" }, ] +[[package]] +name = "mysql-connector-python" +version = "9.5.0" +source = { registry = "https://pypi.tuna.tsinghua.edu.cn/simple" } +sdist = { url = "https://pypi.tuna.tsinghua.edu.cn/packages/39/33/b332b001bc8c5ee09255a0d4b09a254da674450edd6a3e5228b245ca82a0/mysql_connector_python-9.5.0.tar.gz", hash = "sha256:92fb924285a86d8c146ebd63d94f9eaefa548da7813bc46271508fdc6cc1d596", size = 12251077, upload-time = "2025-10-22T09:05:45.423Z" } +wheels = [ + { url = "https://pypi.tuna.tsinghua.edu.cn/packages/02/89/167ebee82f4b01ba7339c241c3cc2518886a2be9f871770a1efa81b940a0/mysql_connector_python-9.5.0-cp312-cp312-macosx_14_0_arm64.whl", hash = "sha256:a72c2ef9d50b84f3c567c31b3bf30901af740686baa2a4abead5f202e0b7ea61", size = 17581904, upload-time = "2025-10-22T09:01:53.21Z" }, + { url = "https://pypi.tuna.tsinghua.edu.cn/packages/67/46/630ca969ce10b30fdc605d65dab4a6157556d8cc3b77c724f56c2d83cb79/mysql_connector_python-9.5.0-cp312-cp312-macosx_14_0_x86_64.whl", hash = "sha256:bd9ba5a946cfd3b3b2688a75135357e862834b0321ed936fd968049be290872b", size = 18448195, upload-time = "2025-10-22T09:01:55.378Z" }, + { url = "https://pypi.tuna.tsinghua.edu.cn/packages/f6/87/4c421f41ad169d8c9065ad5c46673c7af889a523e4899c1ac1d6bfd37262/mysql_connector_python-9.5.0-cp312-cp312-manylinux_2_28_aarch64.whl", hash = "sha256:5ef7accbdf8b5f6ec60d2a1550654b7e27e63bf6f7b04020d5fb4191fb02bc4d", size = 33668638, upload-time = "2025-10-22T09:01:57.896Z" }, + { url = "https://pypi.tuna.tsinghua.edu.cn/packages/a6/01/67cf210d50bfefbb9224b9a5c465857c1767388dade1004c903c8e22a991/mysql_connector_python-9.5.0-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:a6e0a4a0274d15e3d4c892ab93f58f46431222117dba20608178dfb2cc4d5fd8", size = 34102899, upload-time = "2025-10-22T09:02:00.291Z" }, + { url = "https://pypi.tuna.tsinghua.edu.cn/packages/cd/ef/3d1a67d503fff38cc30e11d111cf28f0976987fb175f47b10d44494e1080/mysql_connector_python-9.5.0-cp312-cp312-win_amd64.whl", hash = "sha256:b6c69cb37600b7e22f476150034e2afbd53342a175e20aea887f8158fc5e3ff6", size = 16512684, upload-time = "2025-10-22T09:02:02.411Z" }, + { url = "https://pypi.tuna.tsinghua.edu.cn/packages/72/18/f221aeac49ce94ac119a427afbd51fe1629d48745b571afc0de49647b528/mysql_connector_python-9.5.0-cp313-cp313-macosx_14_0_arm64.whl", hash = "sha256:1f5f7346b0d5edb2e994c1bd77b3f5eed88b0ca368ad6788d1012c7e56d7bf68", size = 17581933, upload-time = "2025-10-22T09:02:04.396Z" }, + { url = "https://pypi.tuna.tsinghua.edu.cn/packages/de/8e/14d44db7353350006a12e46d61c3a995bba06acd7547fc78f9bb32611e0c/mysql_connector_python-9.5.0-cp313-cp313-macosx_14_0_x86_64.whl", hash = "sha256:07bf52591b4215cb4318b4617c327a6d84c31978c11e3255f01a627bcda2618e", size = 18448446, upload-time = "2025-10-22T09:02:06.399Z" }, + { url = "https://pypi.tuna.tsinghua.edu.cn/packages/6b/f5/ab306f292a99bff3544ff44ad53661a031dc1a11e5b1ad64b9e5b5290ef9/mysql_connector_python-9.5.0-cp313-cp313-manylinux_2_28_aarch64.whl", hash = "sha256:8972c1f960b30d487f34f9125ec112ea2b3200bd02c53e5e32ee7a43be6d64c1", size = 33668933, upload-time = "2025-10-22T09:02:08.785Z" }, + { url = "https://pypi.tuna.tsinghua.edu.cn/packages/e8/ee/d146d2642552ebb5811cf551f06aca7da536c80b18fb6c75bdbc29723388/mysql_connector_python-9.5.0-cp313-cp313-manylinux_2_28_x86_64.whl", hash = "sha256:f6d32d7aa514d2f6f8709ba1e018314f82ab2acea2e6af30d04c1906fe9171b9", size = 34103214, upload-time = "2025-10-22T09:02:11.657Z" }, + { url = "https://pypi.tuna.tsinghua.edu.cn/packages/e7/f8/5e88e5eda1fe58f7d146b73744f691d85dce76fb42e7ce3de53e49911da3/mysql_connector_python-9.5.0-cp313-cp313-win_amd64.whl", hash = "sha256:edd47048eb65c196b28aa9d2c0c6a017d8ca084a9a7041cd317301c829eb5a05", size = 16512689, upload-time = "2025-10-22T09:02:14.167Z" }, + { url = "https://pypi.tuna.tsinghua.edu.cn/packages/14/42/52bef145028af1b8e633eb77773278a04b2cd9f824117209aba093018445/mysql_connector_python-9.5.0-cp314-cp314-macosx_14_0_arm64.whl", hash = "sha256:6effda35df1a96d9a096f04468d40f2324ea36b34d0e9632e81daae8be97b308", size = 17581903, upload-time = "2025-10-22T09:02:16.441Z" }, + { url = "https://pypi.tuna.tsinghua.edu.cn/packages/f4/a6/bd800b42bde86bf2e9468dfabcbd7538c66daff9d1a9fc97d2cc897f96fa/mysql_connector_python-9.5.0-cp314-cp314-macosx_14_0_x86_64.whl", hash = "sha256:fd057bd042464eedbf5337d1ceea7f2a4ab075a1cf6d1d62ffd5184966a656dd", size = 18448394, upload-time = "2025-10-22T09:02:18.436Z" }, + { url = "https://pypi.tuna.tsinghua.edu.cn/packages/4a/21/a1a3247775d0dfee094499cb915560755eaa1013ac3b03e34a98b0e16e49/mysql_connector_python-9.5.0-cp314-cp314-manylinux_2_28_aarch64.whl", hash = "sha256:2797dd7bbefb1d1669d984cfb284ea6b34401bbd9c1b3bf84e646d0bd3a82197", size = 33669845, upload-time = "2025-10-22T09:02:20.966Z" }, + { url = "https://pypi.tuna.tsinghua.edu.cn/packages/58/b7/dcab48349ab8abafd6f40f113101549e0cf107e43dd9c7e1fae79799604b/mysql_connector_python-9.5.0-cp314-cp314-manylinux_2_28_x86_64.whl", hash = "sha256:a5fff063ed48281b7374a4da6b9ef4293d390c153f79b1589ee547ea08c92310", size = 34104103, upload-time = "2025-10-22T09:02:23.469Z" }, + { url = "https://pypi.tuna.tsinghua.edu.cn/packages/21/3a/be129764fe5f5cd89a5aa3f58e7a7471284715f4af71097a980d24ebec0a/mysql_connector_python-9.5.0-cp314-cp314-win_amd64.whl", hash = "sha256:56104693478fd447886c470a6d0558ded0fe2577df44c18232a6af6a2bbdd3e9", size = 17001255, upload-time = "2025-10-22T09:02:25.765Z" }, + { url = "https://pypi.tuna.tsinghua.edu.cn/packages/95/e1/45373c06781340c7b74fe9b88b85278ac05321889a307eaa5be079a997d4/mysql_connector_python-9.5.0-py2.py3-none-any.whl", hash = "sha256:ace137b88eb6fdafa1e5b2e03ac76ce1b8b1844b3a4af1192a02ae7c1a45bdee", size = 479047, upload-time = "2025-10-22T09:02:27.809Z" }, +] + [[package]] name = "nest-asyncio" version = "1.6.0" @@ -6109,6 +6133,7 @@ dependencies = [ { name = "mistralai" }, { name = "moodlepy" }, { name = "mypy-boto3-s3" }, + { name = "mysql-connector-python" }, { name = "office365-rest-python-client" }, { name = "ollama" }, { name = "onnxruntime", marker = "platform_machine != 'x86_64' or sys_platform == 'darwin'" }, @@ -6243,6 +6268,7 @@ requires-dist = [ { name = "mistralai", specifier = "==0.4.2" }, { name = "moodlepy", specifier = ">=0.23.0" }, { name = "mypy-boto3-s3", specifier = "==1.40.26" }, + { name = "mysql-connector-python", specifier = ">=9.0.0,<10.0.0" }, { name = "office365-rest-python-client", specifier = "==2.6.2" }, { name = "ollama", specifier = ">=0.5.0" }, { name = "onnxruntime", marker = "platform_machine != 'x86_64' or sys_platform == 'darwin'", specifier = "==1.23.2" }, diff --git a/web/src/locales/de.ts b/web/src/locales/de.ts index d2ee04c70..6c0fb7777 100644 --- a/web/src/locales/de.ts +++ b/web/src/locales/de.ts @@ -816,8 +816,7 @@ Diese Auto-Tag-Funktion verbessert den Abruf, indem sie eine weitere Schicht dom 'Ähnlich wie die Präsenzstrafe reduziert dies die Tendenz des Modells, dieselben Wörter häufig zu wiederholen.', maxTokens: 'Maximale Tokens', maxTokensMessage: 'Maximale Tokens sind erforderlich', - maxTokensTip: - 'Dies legt die maximale Länge der Ausgabe des Modells fest, gemessen an der Anzahl der Tokens (Wörter oder Wortteile). Standardmäßig 512. Wenn deaktiviert, heben Sie die maximale Token-Begrenzung auf und erlauben dem Modell, die Anzahl der Tokens in seinen Antworten selbst zu bestimmen.', + maxTokensTip: `Die maximale Kontextgröße des Agenten; ein ungültiger oder falscher Wert führt zu einem Fehler. Standardmäßig 512.`, maxTokensInvalidMessage: 'Bitte geben Sie eine gültige Zahl für Maximale Tokens ein.', maxTokensMinMessage: 'Maximale Tokens können nicht weniger als 0 sein.', @@ -1067,8 +1066,7 @@ Beispiel: Virtual Hosted Style`, 'Aktualisieren Sie hier Ihr Foto und Ihre persönlichen Daten.', maxTokens: 'Maximale Tokens', maxTokensMessage: 'Maximale Tokens sind erforderlich', - maxTokensTip: - 'Dies legt die maximale Länge der Ausgabe des Modells fest, gemessen an der Anzahl der Tokens (Wörter oder Wortteile). Standardmäßig 512. Wenn deaktiviert, heben Sie die maximale Token-Begrenzung auf und erlauben dem Modell, die Anzahl der Tokens in seinen Antworten selbst zu bestimmen.', + maxTokensTip: `Die maximale Kontextgröße des Agenten; ein ungültiger oder falscher Wert führt zu einem Fehler. Standardmäßig 512.`, maxTokensInvalidMessage: 'Bitte geben Sie eine gültige Zahl für Maximale Tokens ein.', maxTokensMinMessage: 'Maximale Tokens können nicht weniger als 0 sein.', diff --git a/web/src/locales/en.ts b/web/src/locales/en.ts index ac762f155..4573659d2 100644 --- a/web/src/locales/en.ts +++ b/web/src/locales/en.ts @@ -788,7 +788,7 @@ This auto-tagging feature enhances retrieval by adding another layer of domain-s 'Similar to the presence penalty, this reduces the model’s tendency to repeat the same words frequently.', maxTokens: 'Max tokens', maxTokensMessage: 'Max tokens is required', - maxTokensTip: `This sets the maximum length of the model's output, measured in the number of tokens (words or pieces of words). Defaults to 512. If disabled, you lift the maximum token limit, allowing the model to determine the number of tokens in its responses.`, + maxTokensTip: `The maximum context size of the agent; an invalid or incorrect value will cause an error. Defaults to 512.`, maxTokensInvalidMessage: 'Please enter a valid number for Max tokens.', maxTokensMinMessage: 'Max tokens cannot be less than 0.', quote: 'Show quote', @@ -1014,6 +1014,30 @@ Example: Virtual Hosted Style`, 'API token generated from https://id.atlassian.com/manage-profile/security/api-tokens.', jiraPasswordTip: 'Optional password for Jira Server/Data Center environments.', + mysqlDescription: + 'Connect to MySQL database to sync data from tables using SQL queries.', + mysqlQueryTip: + 'SQL query to extract data from your database (e.g., SELECT * FROM products WHERE status = "active").', + mysqlContentColumnsTip: + 'Comma-separated column names whose values will be combined as document content for vectorization.', + mysqlMetadataColumnsTip: + 'Comma-separated column names to store as document metadata (not vectorized, but searchable).', + mysqlIdColumnTip: + 'Column to use as unique document ID. If not specified, a hash of the content will be used.', + mysqlTimestampColumnTip: + 'Datetime/timestamp column for incremental sync. Only rows modified after the last sync will be fetched.', + postgresqlDescription: + 'Connect to PostgreSQL database to sync data from tables using SQL queries.', + postgresqlQueryTip: + "SQL query to extract data from your database (e.g., SELECT * FROM products WHERE status = 'active').", + postgresqlContentColumnsTip: + 'Comma-separated column names whose values will be combined as document content for vectorization.', + postgresqlMetadataColumnsTip: + 'Comma-separated column names to store as document metadata (not vectorized, but searchable).', + postgresqlIdColumnTip: + 'Column to use as unique document ID. If not specified, a hash of the content will be used.', + postgresqlTimestampColumnTip: + 'Datetime/timestamp column for incremental sync. Only rows modified after the last sync will be fetched.', availableSourcesDescription: 'Select a data source to add', availableSources: 'Available sources', datasourceDescription: 'Manage your data source and connections', @@ -1026,7 +1050,7 @@ Example: Virtual Hosted Style`, profileDescription: 'Update your photo and personal details here.', maxTokens: 'Max tokens', maxTokensMessage: 'Max tokens is required', - maxTokensTip: `This sets the maximum length of the model's output, measured in the number of tokens (words or pieces of words). Defaults to 512. If disabled, you lift the maximum token limit, allowing the model to determine the number of tokens in its responses.`, + maxTokensTip: `The maximum context size of the agent; an invalid or incorrect value will cause an error. Defaults to 512.`, maxTokensInvalidMessage: 'Please enter a valid number for Max tokens.', maxTokensMinMessage: 'Max tokens cannot be less than 0.', password: 'Password', diff --git a/web/src/locales/es.ts b/web/src/locales/es.ts index c2cce3420..74e5bfa93 100644 --- a/web/src/locales/es.ts +++ b/web/src/locales/es.ts @@ -247,8 +247,7 @@ export default { 'Similar a la penalización por presencia, esto reduce la tendencia del modelo a repetir las mismas palabras con frecuencia.', maxTokens: 'Máximo de tokens', maxTokensMessage: 'El máximo de tokens es obligatorio', - maxTokensTip: - 'Esto establece la longitud máxima de la salida del modelo, medida en el número de tokens (palabras o piezas de palabras).', + maxTokensTip: `El tamaño máximo de contexto del agente; un valor no válido o incorrecto provocará un error. Valor predeterminado: 512.`, maxTokensInvalidMessage: 'Por favor, ingresa un número válido para Max Tokens.', maxTokensMinMessage: 'Max Tokens no puede ser menor que 0.', @@ -303,8 +302,7 @@ export default { profileDescription: 'Actualiza tu foto y tus datos personales aquí.', maxTokens: 'Máximo de tokens', maxTokensMessage: 'El máximo de tokens es obligatorio', - maxTokensTip: - 'Esto establece la longitud máxima de la salida del modelo, medida en el número de tokens (palabras o piezas de palabras).', + maxTokensTip: `El tamaño máximo de contexto del agente; un valor no válido o incorrecto provocará un error. Valor predeterminado: 512.`, maxTokensInvalidMessage: 'Por favor, ingresa un número válido para Max Tokens.', maxTokensMinMessage: 'Max Tokens no puede ser menor que 0.', diff --git a/web/src/locales/fr.ts b/web/src/locales/fr.ts index 942b8f79e..597cf37d4 100644 --- a/web/src/locales/fr.ts +++ b/web/src/locales/fr.ts @@ -402,7 +402,7 @@ export default { frequencyPenaltyTip: `Similaire à la pénalité de présence, cela réduit la tendance du modèle à répéter fréquemment les mêmes mots.`, maxTokens: 'Nombre max de tokens', maxTokensMessage: 'Le nombre max de tokens est requis', - maxTokensTip: `Définit la longueur maximale de la sortie du modèle, mesurée en nombre de tokens (mots ou morceaux de mots). Par défaut 512. Si désactivé, aucune limite maximale n’est imposée, le modèle décide alors du nombre de tokens dans ses réponses.`, + maxTokensTip: `La taille maximale de contexte de l’agent ; une valeur invalide ou incorrecte provoquera une erreur. Valeur par défaut : 512.`, maxTokensInvalidMessage: 'Veuillez saisir un nombre valide pour le nombre max de tokens.', maxTokensMinMessage: @@ -483,7 +483,7 @@ export default { 'Mettez à jour votre photo et vos informations personnelles ici.', maxTokens: 'Nombre maximum de tokens', maxTokensMessage: 'Le nombre maximum de tokens est requis', - maxTokensTip: `Cela définit la longueur maximale de la sortie du modèle, mesurée en nombre de tokens (mots ou morceaux de mots). Par défaut à 512. Si désactivé, la limite maximale de tokens est levée, permettant au modèle de déterminer le nombre de tokens dans ses réponses.`, + maxTokensTip: `La taille maximale de contexte de l’agent ; une valeur invalide ou incorrecte provoquera une erreur. Valeur par défaut : 512.`, maxTokensInvalidMessage: 'Veuillez saisir un nombre valide pour le nombre maximum de tokens.', maxTokensMinMessage: diff --git a/web/src/locales/id.ts b/web/src/locales/id.ts index 4ed764c4b..4f90d6499 100644 --- a/web/src/locales/id.ts +++ b/web/src/locales/id.ts @@ -418,8 +418,7 @@ export default { 'Mirip dengan penalti kehadiran, ini mengurangi kecenderungan model untuk mengulangi kata yang sama secara sering.', maxTokens: 'Token Maksimum', maxTokensMessage: 'Token Maksimum diperlukan', - maxTokensTip: - 'Ini menetapkan panjang maksimum keluaran model, diukur dalam jumlah token (kata atau potongan kata).', + maxTokensTip: `Ukuran konteks maksimum agen; nilai yang tidak valid atau salah akan menyebabkan kesalahan. Default 512.`, maxTokensInvalidMessage: 'Silakan masukkan angka yang valid untuk Max Tokens.', maxTokensMinMessage: 'Max Tokens tidak boleh kurang dari 0.', @@ -476,8 +475,7 @@ export default { profileDescription: 'Perbarui foto dan detail pribadi Anda di sini.', maxTokens: 'Token Maksimum', maxTokensMessage: 'Token Maksimum diperlukan', - maxTokensTip: - 'Ini menetapkan panjang maksimum keluaran model, diukur dalam jumlah token (kata atau potongan kata).', + maxTokensTip: `Ukuran konteks maksimum agen; nilai yang tidak valid atau salah akan menyebabkan kesalahan. Default 512.`, maxTokensInvalidMessage: 'Silakan masukkan angka yang valid untuk Max Tokens.', maxTokensMinMessage: 'Max Tokens tidak boleh kurang dari 0.', diff --git a/web/src/locales/it.ts b/web/src/locales/it.ts index b2c6f3330..1625c2e96 100644 --- a/web/src/locales/it.ts +++ b/web/src/locales/it.ts @@ -491,12 +491,15 @@ Quanto sopra è il contenuto che devi riassumere.`, paddleocrOptions: 'Opzioni PaddleOCR', paddleocrApiUrl: 'URL API di PaddleOCR', paddleocrApiUrlTip: 'URL dell’endpoint API del servizio PaddleOCR', - paddleocrApiUrlPlaceholder: 'Ad esempio: https://paddleocr-server.com/layout-parsing', + paddleocrApiUrlPlaceholder: + 'Ad esempio: https://paddleocr-server.com/layout-parsing', paddleocrAccessToken: 'Token di accesso AI Studio', - paddleocrAccessTokenTip: 'Token di accesso per l’API PaddleOCR (facoltativo)', + paddleocrAccessTokenTip: + 'Token di accesso per l’API PaddleOCR (facoltativo)', paddleocrAccessTokenPlaceholder: 'Il tuo token AI Studio (facoltativo)', paddleocrAlgorithm: 'Algoritmo PaddleOCR', - paddleocrAlgorithmTip: 'Algoritmo utilizzato per l’elaborazione PaddleOCR', + paddleocrAlgorithmTip: + 'Algoritmo utilizzato per l’elaborazione PaddleOCR', paddleocrSelectAlgorithm: 'Seleziona algoritmo', paddleocrModelNamePlaceholder: 'Ad esempio: paddleocr-ambiente-1', }, @@ -605,7 +608,7 @@ Quanto sopra è il contenuto che devi riassumere.`, 'Simile alla penalità di presenza, questo riduce la tendenza del modello a ripetere le stesse parole frequentemente.', maxTokens: 'Token massimi', maxTokensMessage: 'Token massimi richiesti', - maxTokensTip: `Questo imposta la lunghezza massima dell'output del modello, misurata in numero di token (parole o pezzi di parole). Il valore predefinito è 512.`, + maxTokensTip: `La dimensione massima del contesto dell'agente; un valore non valido o errato causerà un errore. Valore predefinito 512.`, maxTokensInvalidMessage: 'Inserisci un numero valido per Token massimi.', maxTokensMinMessage: 'Token massimi non può essere inferiore a 0.', quote: 'Mostra citazione', @@ -713,7 +716,7 @@ Quanto sopra è il contenuto che devi riassumere.`, profileDescription: 'Aggiorna la tua foto e i dettagli personali qui.', maxTokens: 'Token massimi', maxTokensMessage: 'Token massimi richiesti', - maxTokensTip: `Questo imposta la lunghezza massima dell'output del modello, misurata in numero di token. Il valore predefinito è 512.`, + maxTokensTip: `La dimensione massima del contesto dell'agente; un valore non valido o errato causerà un errore. Valore predefinito 512.`, maxTokensInvalidMessage: 'Inserisci un numero valido per Token massimi.', maxTokensMinMessage: 'Token massimi non può essere inferiore a 0.', password: 'Password', @@ -798,14 +801,15 @@ Quanto sopra è il contenuto che devi riassumere.`, baseUrlNameMessage: 'Inserisci il tuo URL base!', paddleocr: { apiUrl: 'URL API di PaddleOCR', - apiUrlPlaceholder: 'Ad esempio: https://paddleocr-server.com/layout-parsing', + apiUrlPlaceholder: + 'Ad esempio: https://paddleocr-server.com/layout-parsing', accessToken: 'Token di accesso AI Studio', accessTokenPlaceholder: 'Il tuo token AI Studio (facoltativo)', algorithm: 'Algoritmo PaddleOCR', selectAlgorithm: 'Seleziona algoritmo', modelNamePlaceholder: 'Ad esempio: paddleocr-from-env-1', modelNameRequired: 'Il nome del modello è obbligatorio', - apiUrlRequired: 'L’URL API di PaddleOCR è obbligatorio' + apiUrlRequired: 'L’URL API di PaddleOCR è obbligatorio', }, vision: 'Supporta Vision?', ollamaLink: 'Come integrare {{name}}', diff --git a/web/src/locales/ja.ts b/web/src/locales/ja.ts index f7450dd9d..79c78d8f6 100644 --- a/web/src/locales/ja.ts +++ b/web/src/locales/ja.ts @@ -427,8 +427,7 @@ export default { '存在ペナルティと同様に、モデルが同じ単語を頻繁に繰り返す傾向を減少させます。', maxTokens: '最大トークン数', maxTokensMessage: '最大トークン数は必須です', - maxTokensTip: - 'これは、モデルの出力の最大長を設定します。トークン(単語または単語の一部)の数で測定されます。', + maxTokensTip: `エージェントの最大コンテキストサイズ。無効または不正な値はエラーになります。デフォルトは512。`, maxTokensInvalidMessage: '最大トークン数に有効な数値を入力してください。', maxTokensMinMessage: '最大トークン数は0以上でなければなりません。', quote: '引用を表示', @@ -517,8 +516,7 @@ export default { profileDescription: 'ここで写真と個人情報を更新してください。', maxTokens: '最大トークン数', maxTokensMessage: '最大トークン数は必須です', - maxTokensTip: - 'これは、モデルの出力の最大長を設定します。トークン(単語または単語の一部)の数で測定されます。', + maxTokensTip: `エージェントの最大コンテキストサイズ。無効または不正な値はエラーになります。デフォルトは512。`, maxTokensInvalidMessage: '有効な数値を入力してください。', maxTokensMinMessage: '最大トークン数は0以上でなければなりません。', password: 'パスワード', diff --git a/web/src/locales/pt-br.ts b/web/src/locales/pt-br.ts index dfcb5525c..9e7331da9 100644 --- a/web/src/locales/pt-br.ts +++ b/web/src/locales/pt-br.ts @@ -413,7 +413,7 @@ export default { 'Semelhante à penalidade de presença, isso reduz a tendência do modelo de repetir as mesmas palavras frequentemente.', maxTokens: 'Máximo de tokens', maxTokensMessage: 'O máximo de tokens é obrigatório', - maxTokensTip: `Define o comprimento máximo da saída do modelo, medido pelo número de tokens (palavras ou partes de palavras). O padrão é 512. Se desativado, você remove o limite máximo de tokens, permitindo que o modelo determine o número de tokens em suas respostas.`, + maxTokensTip: `O tamanho máximo de contexto do agente; um valor inválido ou incorreto causará um erro. Padrão: 512.`, maxTokensInvalidMessage: 'Por favor, insira um número válido para o máximo de tokens.', maxTokensMinMessage: 'O máximo de tokens não pode ser menor que 0.', @@ -471,7 +471,7 @@ export default { profileDescription: 'Atualize sua foto e detalhes pessoais aqui.', maxTokens: 'Máximo de Tokens', maxTokensMessage: 'Máximo de Tokens é obrigatório', - maxTokensTip: `Isso define o comprimento máximo da saída do modelo, medido em número de tokens (palavras ou partes de palavras). O padrão é 512. Se desativado, você remove o limite máximo de tokens, permitindo que o modelo determine o número de tokens em suas respostas.`, + maxTokensTip: `O tamanho máximo de contexto do agente; um valor inválido ou incorreto causará um erro. Padrão: 512.`, maxTokensInvalidMessage: 'Por favor, insira um número válido para Máximo de Tokens.', maxTokensMinMessage: 'O Máximo de Tokens não pode ser menor que 0.', diff --git a/web/src/locales/ru.ts b/web/src/locales/ru.ts index 945c0c01b..60c8abc64 100644 --- a/web/src/locales/ru.ts +++ b/web/src/locales/ru.ts @@ -628,7 +628,7 @@ export default { 'Подобно штрафу за присутствие, это снижает тенденцию модели часто повторять одни и те же слова.', maxTokens: 'Макс. токенов', maxTokensMessage: 'Макс. токенов обязательно', - maxTokensTip: `Это устанавливает максимальную длину вывода модели, измеряемую в количестве токенов (слов или частей слов). По умолчанию 512. Если отключено, вы снимаете ограничение на максимальное количество токенов, позволяя модели определять количество токенов в своих ответах.`, + maxTokensTip: `Максимальный размер контекста агента; недопустимое или неверное значение приведёт к ошибке. По умолчанию 512.`, maxTokensInvalidMessage: 'Пожалуйста, введите действительное число для Макс. Токенов.', maxTokensMinMessage: 'Макс. Токенов не может быть меньше 0.', @@ -837,7 +837,7 @@ export default { profileDescription: 'Обновите ваше фото и личные данные здесь.', maxTokens: 'Макс. Токенов', maxTokensMessage: 'Макс. Токенов обязательно', - maxTokensTip: `Это устанавливает максимальную длину вывода модели, измеряемую в количестве токенов (слов или частей слов). По умолчанию 512. Если отключено, вы снимаете ограничение на максимальное количество токенов, позволяя модели определять количество токенов в своих ответах.`, + maxTokensTip: `Максимальный размер контекста агента; недопустимое или неверное значение приведёт к ошибке. По умолчанию 512.`, maxTokensInvalidMessage: 'Пожалуйста, введите действительное число для Макс. Токенов.', maxTokensMinMessage: 'Макс. Токенов не может быть меньше 0.', diff --git a/web/src/locales/vi.ts b/web/src/locales/vi.ts index 3a1f169cc..313f84a5c 100644 --- a/web/src/locales/vi.ts +++ b/web/src/locales/vi.ts @@ -458,8 +458,7 @@ export default { 'Tương tự như hình phạt hiện diện, điều này làm giảm xu hướng của mô hình lặp lại cùng một từ thường xuyên.', maxTokens: 'Token tối đa', maxTokensMessage: 'Token tối đa là bắt buộc', - maxTokensTip: - 'Điều này đặt độ dài tối đa của đầu ra của mô hình, được đo bằng số lượng token (từ hoặc phần của từ).', + maxTokensTip: `Kích thước ngữ cảnh tối đa của tác nhân; giá trị không hợp lệ hoặc sai sẽ gây lỗi. Mặc định là 512.`, maxTokensInvalidMessage: 'Vui lòng nhập số Token tối đa hợp lệ.', maxTokensMinMessage: 'Token tối đa không thể nhỏ hơn 0.', quote: 'Hiển thị Trích dẫn', @@ -524,8 +523,7 @@ export default { profileDescription: 'Cập nhật ảnh và thông tin cá nhân của bạn tại đây.', maxTokens: 'Token tối đa', maxTokensMessage: 'Token tối đa là bắt buộc', - maxTokensTip: - 'Điều này đặt độ dài tối đa của đầu ra của mô hình, được đo bằng số lượng token (từ hoặc phần của từ).', + maxTokensTip: `Kích thước ngữ cảnh tối đa của tác nhân; giá trị không hợp lệ hoặc sai sẽ gây lỗi. Mặc định là 512.`, maxTokensInvalidMessage: 'Vui lòng nhập số Token tối đa hợp lệ.', maxTokensMinMessage: 'Token tối đa không thể nhỏ hơn 0.', password: 'Mật khẩu', diff --git a/web/src/locales/zh-traditional.ts b/web/src/locales/zh-traditional.ts index fd48cc25b..c3923fa13 100644 --- a/web/src/locales/zh-traditional.ts +++ b/web/src/locales/zh-traditional.ts @@ -492,8 +492,7 @@ export default { '與存在懲罰類似,這減少了模型頻繁重複相同單詞的傾向。', maxTokens: '最大token數', maxTokensMessage: '最大token數是必填項', - maxTokensTip: - '這設置了模型輸出的最大長度,以標記(單詞或單詞片段)的數量來衡量。', + maxTokensTip: `代理的最大上下文大小;無效或不正確的值會導致錯誤。預設為 512。`, maxTokensInvalidMessage: '請輸入有效的最大標記數。', maxTokensMinMessage: '最大標記數不能小於 0。', quote: '顯示引文', @@ -577,8 +576,7 @@ export default { '選擇此模式後,EC2 執行個體將使用其既有的 IAM Role 存取 AWS 服務,無需額外憑證。', maxTokens: '最大token數', maxTokensMessage: '最大token數是必填項', - maxTokensTip: - '這設置了模型輸出的最大長度,以標記(單詞或單詞片段)的數量來衡量。', + maxTokensTip: `代理的最大上下文大小;無效或不正確的值會導致錯誤。預設為 512。`, maxTokensInvalidMessage: '請輸入有效的最大標記數。', maxTokensMinMessage: '最大標記數不能小於 0。', password: '密碼', diff --git a/web/src/locales/zh.ts b/web/src/locales/zh.ts index 8c55a44ce..c6bf714e6 100644 --- a/web/src/locales/zh.ts +++ b/web/src/locales/zh.ts @@ -750,8 +750,7 @@ General:实体和关系提取提示来自 GitHub - microsoft/graphrag:基于 '与存在惩罚类似,这减少了模型频繁重复相同单词的倾向。', maxTokens: '最大token数', maxTokensMessage: '最大token数是必填项', - maxTokensTip: - '这设置了模型输出的最大长度,以标记(单词或单词片段)的数量来衡量。', + maxTokensTip: `代理的最大上下文大小;无效或不正确的值会导致错误。默认值为 512。`, maxTokensInvalidMessage: '请输入有效的最大令牌数。', maxTokensMinMessage: '最大令牌数不能小于 0。', quote: '显示引文', @@ -935,8 +934,7 @@ General:实体和关系提取提示来自 GitHub - microsoft/graphrag:基于 profileDescription: '在此更新您的照片和个人详细信息。', maxTokens: '最大token数', maxTokensMessage: '最大token数是必填项', - maxTokensTip: - '这设置了模型输出的最大长度,以标记(单词或单词片段)的数量来衡量。', + maxTokensTip: `代理的最大上下文大小;无效或不正确的值会导致错误。默认值为 512。`, maxTokensInvalidMessage: '请输入有效的最大令牌数。', maxTokensMinMessage: '最大令牌数不能小于 0。', password: '密码',