V4.8.17 feature (#3493)

* split tokens into input and output (#3477)

* split tokens into input and output

* query extension & tool call & question guide

* fix

* perf: input and output tokens

* perf: tool call if else

* perf: remove code

* fix: extract usage count

* fix: qa usage count

---------

Co-authored-by: heheer <heheer@sealos.io>
This commit is contained in:
Archer
2024-12-30 10:13:25 +08:00
committed by GitHub
parent da2831b948
commit 50bf7f9a3b
46 changed files with 467 additions and 230 deletions

View File

@@ -6,12 +6,14 @@
"details": "詳情",
"duration_seconds": "時長(秒)",
"generation_time": "生成時間",
"input_token_length": "輸入 tokens",
"member": "成員",
"member_name": "成員名",
"module_name": "模組名",
"month": "月",
"no_usage_records": "暫無使用紀錄",
"order_number": "訂單編號",
"output_token_length": "輸出 tokens",
"project_name": "專案名",
"source": "來源",
"text_length": "文字長度",
@@ -20,4 +22,4 @@
"total_points_consumed": "AI 積分消耗",
"usage_detail": "使用詳情",
"user_type": "類型"
}
}

View File

@@ -447,6 +447,8 @@
"core.chat.response.Extension model": "問題最佳化模型",
"core.chat.response.Read complete response": "檢視詳細資料",
"core.chat.response.Read complete response tips": "點選檢視詳細流程",
"core.chat.response.Tool call input tokens": "工具呼叫輸入 Token 消耗",
"core.chat.response.Tool call output tokens": "工具呼叫輸出 Token 消耗",
"core.chat.response.Tool call tokens": "工具呼叫 Token 消耗",
"core.chat.response.context total length": "上下文總長度",
"core.chat.response.loop_input": "輸入陣列",
@@ -460,10 +462,12 @@
"core.chat.response.module historyPreview": "記錄預覽(僅顯示部分內容)",
"core.chat.response.module http result": "回應內容",
"core.chat.response.module if else Result": "條件判斷結果",
"core.chat.response.module input tokens": "輸入 tokens",
"core.chat.response.module limit": "單次搜尋上限",
"core.chat.response.module maxToken": "最大回應 Token 數",
"core.chat.response.module model": "模型",
"core.chat.response.module name": "模型名稱",
"core.chat.response.module output tokens": "輸出 tokens",
"core.chat.response.module query": "問題/搜尋詞",
"core.chat.response.module quoteList": "引用內容",
"core.chat.response.module similarity": "相似度",
@@ -1043,6 +1047,8 @@
"support.user.team.Team Tags Async Success": "同步完成",
"support.user.team.member": "成員",
"support.wallet.Ai point every thousand tokens": "{{points}} 點數/1K tokens",
"support.wallet.Ai point every thousand tokens_input": "輸入:{{points}} 积分/1K tokens",
"support.wallet.Ai point every thousand tokens_output": "輸出:{{points}} 积分/1K tokens",
"support.wallet.Amount": "金額",
"support.wallet.Buy": "購買",
"support.wallet.Not sufficient": "您的 AI 點數不足,請先升級方案或購買額外 AI 點數後繼續使用。",