RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
Docs: fix token wording (#21761)
Wang Qi5004934edf13
diff --git a/internal/service/chat_pipeline.go b/internal/service/chat_pipeline.goindex a03ae585fc..388842d7a5 100644--- a/internal/service/chat_pipeline.go+++ b/internal/service/chat_pipeline.go@@ -4482,7 +4482,7 @@ func BuildChatConfig(dialog *entity.Chat, config map[string]interface{}) *modelMfunc clampChatConfigMaxTokens(cfg *modelModule.ChatConfig, modelMaxTokens, usedTokenCount int) (int, bool, error) {if usedTokenCount >= modelMaxTokens {- return 0, false, fmt.Errorf("prompt uses %d tokens, leaving no completion capacity for model max_tokens %d", usedTokenCount, modelMaxTokens)+ return 0, false, fmt.Errorf("prompt uses %d tokens, leaving no completion capacity for model max context length %d", usedTokenCount, modelMaxTokens)}if cfg == nil || cfg.MaxTokens == nil {return 0, false, nildiff --git a/web/src/locales/en.ts b/web/src/locales/en.tsindex ed89de6abb..777fb5fe8d 100644--- a/web/src/locales/en.ts+++ b/web/src/locales/en.ts@@ -1154,7 +1154,7 @@ This auto-tagging feature enhances retrieval by adding another layer of domain-soperation: 'Operation',model: 'Model',modelTip: 'Large language chat model',- tokensSpent: '{{total}} tokens ({{prompt}} in + {{completion}} out)',+ tokensSpent: '{{total}} tokens ({{prompt}} input, {{completion}} output)',turnElapsed: '{{seconds}}s',decisionModel: 'Decision model',decisionModelTip:diff --git a/web/src/locales/tr.ts b/web/src/locales/tr.tsindex 1baaa65900..d47df1ef07 100644--- a/web/src/locales/tr.ts+++ b/web/src/locales/tr.ts@@ -1151,7 +1151,7 @@ Bu otomatik etiketleme özelliği, mevcut datasete alanına özgü bilgi katmanoperation: 'İşlem',model: 'Model',modelTip: 'Büyük dil sohbet modeli',- tokensSpent: '{{total}} token ({{prompt}} giriş + {{completion}} çıkış)',+ tokensSpent: '{{total}} token ({{prompt}} giriş, {{completion}} çıkış)',turnElapsed: '{{seconds}} sn',decisionModel: 'Karar modeli',decisionModelTip:diff --git a/web/src/locales/zh.ts b/web/src/locales/zh.tsindex 5b7d9d4de7..2330e3092a 100644--- a/web/src/locales/zh.ts+++ b/web/src/locales/zh.ts@@ -1045,7 +1045,7 @@ NER:使用 spaCy NER 和基于规则的关键词提取来抽取 Entities 和 Rmodel: '模型',modelTip: '大语言聊天模型',tokensSpent:- '消耗 {{total}} tokens(输入 {{prompt}} + 输出 {{completion}})',+ '消耗 {{total}} tokens(输入 {{prompt}}, 输出 {{completion}})',turnElapsed: '耗时 {{seconds}}s',decisionModel: '决策模型',decisionModelTip: