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

@@ -1,23 +1,25 @@
{
"usage_detail": "使用详情",
"order_number": "订单号",
"generation_time": "生成时间",
"month": "月",
"app_name": "应用名",
"source": "来源",
"total_points_consumed": "AI 积分消耗",
"billing_module": "扣费模块",
"module_name": "模块名",
"ai_model": "AI 模型",
"token_length": "token 长度",
"text_length": "文本长度",
"duration_seconds": "时长(秒)",
"all": "所有",
"app_name": "应用名",
"billing_module": "扣费模块",
"details": "详情",
"duration_seconds": "时长(秒)",
"generation_time": "生成时间",
"input_token_length": "输入 tokens",
"member": "成员",
"member_name": "成员名",
"user_type": "类型",
"module_name": "模块名",
"month": "月",
"no_usage_records": "暂无使用记录",
"order_number": "订单号",
"output_token_length": "输出 tokens",
"project_name": "项目名",
"source": "来源",
"text_length": "文本长度",
"token_length": "token 长度",
"total_points": "AI 积分消耗",
"details": "详情",
"no_usage_records": "暂无使用记录"
}
"total_points_consumed": "AI 积分消耗",
"usage_detail": "使用详情",
"user_type": "类型"
}

View File

@@ -450,6 +450,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": "工具调用输入 Tokens",
"core.chat.response.Tool call output tokens": "工具调用输出 Tokens",
"core.chat.response.Tool call tokens": "工具调用 tokens 消耗",
"core.chat.response.context total length": "上下文总长度",
"core.chat.response.loop_input": "输入数组",
@@ -463,10 +465,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": "最大响应 tokens",
"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": "相似度",
@@ -1046,6 +1050,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 积分后继续使用。",