lobehub / lobe-chat

🤯 Lobe Chat - an open-source, modern-design AI chat framework. Supports Multi AI Providers( OpenAI / Claude 3 / Gemini / Ollama / Azure / DeepSeek), Knowledge Base (file upload / knowledge management / RAG ), Multi-Modals (Vision/TTS) and plugin system. One-click FREE deployment of your private ChatGPT/ Claude application.
https://chat-preview.lobehub.com
Other
40.77k stars 9.28k forks source link

[Request] 能否把【用户管理】和【用量统计】加进去 #3952

Closed wcu1117 closed 4 days ago

wcu1117 commented 4 days ago

🥰 需求描述

我看见源码里面有这几个选项,但是对应的页面功能没有找到,希望能加一下。 想要修改一下用户信息手机之类的,还有统计每个人用了多少

🧐 解决方案

我看见源码里面有这几个选项,但是对应的页面功能没有找到,希望能加一下

📝 补充信息

No response

lobehubbot commented 4 days ago

👀 @wcu1117

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. Please make sure you have given us as much context as possible.\ 非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

lobehubbot commented 4 days ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


🥰 Description of requirements

I saw these options in the source code, but the corresponding page functions were not found. I hope they can be added. I want to modify the user information such as mobile phone, etc., and also count how much each person uses.

🧐 Solution

I saw these options in the source code, but the corresponding page functions were not found. I hope they can be added.

📝 Supplementary information

No response

dosubot[bot] commented 4 days ago

@wcu1117 你好!我是Dosu,一个可以帮助解决问题、回答疑问并成为贡献者的机器人。我会在这里等待你,并帮助你解决问题。

要添加【用户管理】和【用量统计】功能,可以参考以下代码片段:

export default {
  // 其他现有的配置项
  userPanel: {
    anonymousNickName: '匿名用户',
    billing: '账单管理',
    cloud: '体验 {{name}}',
    data: '数据存储',
    defaultNickname: '社区版用户',
    discord: '社区支持',
    docs: '使用文档',
    email: '邮件支持',
    feedback: '反馈与建议',
    help: '帮助中心',
    moveGuide: '设置按钮搬到这里啦',
    plans: '订阅方案',
    preview: '预览版',
    profile: '账户管理',
    setting: '应用设置',
    usages: '用量统计',
  },
  // 其他现有的配置项
};

从现有的代码中可以看到,userPanel 中已经包含了 profile(账户管理)和 usages(用量统计)功能[1]

此外,LobeChat 提供了多种用户认证和管理方案,以满足不同用户的需求。您可以使用 next-authClerk 来实现用户管理和身份验证功能:

next-auth:灵活且强大的身份验证库

LobeChat 集成了 next-auth,一个灵活且强大的身份验证库,支持多种身份验证方式,包括 OAuth、邮件登录、凭证登录等。通过 next-auth,您可以轻松实现以下功能:

Clerk:现代化用户管理平台

对于需要更高级用户管理功能的用户,LobeChat 还支持 Clerk ,一个现代化的用户管理平台。Clerk 提供了更丰富的功能,帮助您实现更高的安全性和灵活性:

通过这些方案,您可以灵活地实现用户管理和用量统计功能[2]

To continue talking to Dosu, mention @dosu.

lobehubbot commented 4 days ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


@wcu1117 Hello! I'm Dosu, a bot that helps solve problems, answer questions, and become a contributor. I'll be here waiting for you and help you solve your problem.

To add [User Management] and [Usage Statistics] functions, you can refer to the following code snippets:

export default {
  //Other existing configuration items
  userPanel: {
    anonymousNickName: 'Anonymous user',
    billing: 'Bill Management',
    cloud: 'Experience {{name}}',
    data: 'data storage',
    defaultNickname: 'Community Edition User',
    discord: 'community support',
    docs: 'Usage documentation',
    email: 'email support',
    feedback: 'Feedback and Suggestions',
    help: 'Help Center',
    moveGuide: 'The setting button has been moved here',
    plans: 'subscription plan',
    preview: 'Preview version',
    profile: 'Account Management',
    setting: 'Application settings',
    usages: 'usage statistics',
  },
  //Other existing configuration items
};

As can be seen from the existing code, userPanel already contains profile (account management) and usages (usage statistics) functions [[1]](https://github.com/ lobehub/lobe-chat/blob/main/src/locales/default/common.ts).

In addition, LobeChat provides a variety of user authentication and management solutions to meet the needs of different users. You can use next-auth or Clerk for user management and authentication functionality:

next-auth: Flexible and powerful authentication library

LobeChat integrates next-auth, a flexible and powerful authentication library that supports multiple authentication methods, including OAuth, email login, credential login, etc. With next-auth you can easily implement the following functionality:

Clerk: Modern user management platform

For users who require more advanced user management capabilities, LobeChat also supports Clerk, a modern user management platform. Clerk provides richer features to help you achieve greater security and flexibility:

Through these solutions, you can flexibly implement user management and usage statistics functions[[2]](https://github.com/lobehub/lobe-chat/blob/main/docs/usage/features/auth. zh-CN.mdx).

To continue talking to Dosu, mention @dosu.

arvinxx commented 4 days ago

开源版里不会加

lobehubbot commented 4 days ago

✅ @wcu1117

This issue is closed, If you have any questions, you can comment and reply.\ 此问题已经关闭。如果您有任何问题,可以留言并回复。

lobehubbot commented 4 days ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


It will not be added in the open source version