关于数据库版本对于用户和模型的使用量监控问题 #4936
Answered
by
arvinxx
SAnBlog
asked this question in
General Question | 普通问题
-
我目前的场景是部署数据库版本后提供给了不少朋友间使用,同时用了不少的服务提供商,就会存在2个问题,不知道朋友们都喜欢使用哪个模型?或者哪个用户的使用量比较多?好了解哪个模型好用之类的,也方便重点进行维护 |
Beta Was this translation helpful? Give feedback.
Answered by
arvinxx
Dec 9, 2024
Replies: 2 comments 16 replies
-
目前支持的监测中,哪一个可以做到以上的要求? |
Beta Was this translation helpful? Give feedback.
7 replies
-
基于 messages 表可以做一个统计。你可以让 claude sonnet3.5 来给你写 db sql 做查询的,比如我们现在 cloud 上的数据用量: 表结构在这里:https://github.com/lobehub/lobe-chat/tree/main/src/database/schemas。 SQL 为: SELECT
model,
COUNT(*) as usage_count
FROM messages
WHERE
role = 'assistant'
AND model IS NOT NULL
GROUP BY model
ORDER BY usage_count DESC; |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我和我的助手对话: