Skip to content

【功能建议】在每次 AI 回复中显示模型名称、时间和 Token 数等信息 #336

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
hug1013 opened this issue Apr 4, 2025 · 1 comment
Open
1 task done

Comments

@hug1013
Copy link

hug1013 commented Apr 4, 2025

问题类型 (Issue Type):

  • 功能请求 (Feature Request)

这个功能的相关问题
目前,用户与 AI 交互时,无法直接看到当前是哪个具体模型提供了回答,也无法了解该次交互的资源消耗情况(例如处理时间、消耗的 tokens 数量)。这使得:

  1. 用户难以判断不同模型(如果后端有多个模型)的回答风格或能力差异。
  2. 开发者或高级用户难以评估请求的成本或性能。
  3. 在反馈问题时,难以提供精确的模型和当次请求的上下文信息。

解决方案。
希望在每次 AI 回答的旁边或上方/下方,增加一小块区域,用于显示本次交互的相关元数据。参考下图示例(来自另一个 AI 服务):

[在这里可以简单描述一下你截图里的内容,例如:截图显示了一个名为 'gemini-2.0-flash' 的模型,处理时间 'ct: 4.8s',以及可能的 token 数量 '6909, 606'。]

  • 建议显示的信息至少包括:
    • 模型名称/ID (Model Name/ID): 例如 gemini-pro, gpt-4-turbo, claude-3-opus 或内部模型标识符。
    • 处理时间 (Processing Time): 完成该次响应所花费的时间,例如 ct: 4.8s
    • Token 数量 (Token Count): 理想情况下能显示输入 Tokens 和输出 Tokens 的数量,例如 Tokens: 150 input / 850 output 或类似 6909, 606 的格式(如果这是项目内部的表示方式)。

这些信息可以以一种不显眼但清晰的方式集成到用户界面中,例如使用较小的字体或特定的背景色块。

Image

@hug1013 hug1013 changed the title [功能建议 ]在每次 AI 回复中显示模型名称、时间和 Token 数等信息 [功能建议]在每次 AI 回复中显示模型名称、时间和 Token 数等信息 Apr 4, 2025
@hug1013 hug1013 changed the title [功能建议]在每次 AI 回复中显示模型名称、时间和 Token 数等信息 【功能建议】在每次 AI 回复中显示模型名称、时间和 Token 数等信息 Apr 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@hug1013 and others