Open-LLM-VTuber icon indicating copy to clipboard operation
Open-LLM-VTuber copied to clipboard

[IDEA] 增加图形化配置界面 / Add graphical configuration interface on web page

Open aki-colt opened this issue 7 months ago • 3 comments

这个功能请求是用来解决什么问题的? / Is your feature request related to a problem? Please describe.

请清晰简洁地描述您遇到的问题。例如:我总是在 [...] 时感到不方便。 *A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] *

项目需要配置大量的llm,asr以及tts配置信息,现在的配置文件内容非常多,并且需要对项目有一定的理解。现在项目已经有配置界面,但不能对一些模型基础信息进行配置。

The project requires configuring a large amount of LLM, ASR, and TTS configuration information, the current configuration file is quite extensive and demands a certain level of project understanding. The project currently has a configuration page, but it cannot configure some basic information for certain models.

您期望的解决方案是什么? / Describe the solution you'd like

请清晰简洁地描述您希望实现的功能或效果。 A clear and concise description of what you want to happen.

增强图形化配置界面,使其支持选择模型,配置模型的基本信息。

Enhance the graphical configuration interface to support model selection and configuration of basic model information.

此功能为何对 Open-LLM-VTuber 很重要? / Why is this important for Open-LLM-VTuber?

请解释为什么这个功能对 Open-LLM-VTuber 项目来说是实用且重要的。它能带来什么价值?例如,它如何提升用户体验、扩展项目能力、解决核心痛点等。 Explain why this feature would be useful and significant for the Open-LLM-VTuber project. What value does it add? For example, how does it improve user experience, extend project capabilities, or solve core pain points?

图形化配置可以一定程度降低使用门槛。同时,也为实现一键安装脚本提供可能性。(用户在项目启动后配置模型信息并且下载模型文件,安装脚本只需要安装py运行时环境以及启动项目本身。)另外,这也降低了切换模型的难度,不需要修改配置文件,只需要在页面上配置就可以实时更换模型。

The graphical configuration interface can somewhat lower the barrier to use. At the same time, it opens the possibility for implementing a one-click installation script. (Users can configure model information and download model files after the project starts; the installation script only needs to set up the Python runtime environment and launch the project itself.) Additionally, this reduces the difficulty of switching models, as users no longer need to modify configuration files—models can be switched in real-time through the interface.

您考虑过哪些替代方案? / Describe alternatives you've considered

请清晰简洁地描述您考虑过的任何替代解决方案或特性。 A clear and concise description of any alternative solutions or features you've considered.

[在此处输入替代方案 / Type alternatives here]

您是否愿意参与开发此功能? / Would you like to work on this issue?

请回答 Yes 或 No。如果您愿意,我们可以讨论后续步骤。 Please answer Yes or No. If yes, we can discuss the next steps.

Yes.

补充信息 / Additional context

在此处添加有关此功能请求的任何其他上下文、截图、日志或设计稿。 Add any other context, screenshots, logs, or mockups about the feature request here.

[在此处添加补充信息 / Add additional context here]

aki-colt avatar May 03 '25 11:05 aki-colt

我觉得是极好的,就是看要把图形化设置界面放在前端网页或 electron 界面中,或是单独写一个应用了。我个人倾向前者。后者,@Stewitch 之前尝试写过一个启动器,其中就包含图形化的设置页面,不过他好像正打算重新写一个。

config_manager 模块中包含了配置文件的 pydantic 类,目前用来做配置文件校验,之后或许可以用来动态生成图形化设置界面。

目前这个工作可能在我个人这边优先级比较低,你如果愿意做这个功能的话可以研究一下,看看有没有头绪。

I think that's an excellent idea. The main consideration is whether to place the graphical settings interface within the web frontend or an Electron interface, or to build it as a separate application. Personally, I lean towards the former.

Regarding the latter option, @Stewitch previously attempted to write a launcher that included a graphical settings page, although it seems he's planning to rewrite it.

The config_manager module contains the Pydantic classes for the configuration files. Currently, these are used for configuration validation, but perhaps they could later be utilized to dynamically generate the graphical settings interface.

At the moment, this task might have a lower priority on my end. If you're interested in working on this feature, feel free to research it and see if you can figure out an approach.

t41372 avatar May 04 '25 02:05 t41372

可以加入 QQ 群或者开发频道交流一下想法 https://docs.llmvtuber.com/docs/community/contact

ylxmf2005 avatar May 04 '25 04:05 ylxmf2005

我也认为直接放到前端页面是合适的,这能让服务不依赖配置启动。就基本不再需要存在ui界面的启动器了。我会看看这部分代码并且尝试一下。

I also think placing it directly on the frontend page is appropriate, as it allows the service to start without relying on configuration. This essentially eliminates the need for a UI-based launcher. I'll take a look at this part of the code and give it a try.

aki-colt avatar May 12 '25 02:05 aki-colt

我倒觉得前端应该简单化,集中精力解决不同模型在不同运行环境下的问题,尤其是怎么可以让手机从互联网直接连上Server并且还可以提供麦克风和影像的功能。 Server的设置最好还是用另外一个端口或者另外的一个单独应用来实现。一方面可以简化实现的方法,另一方面也可以避免前端可以控制整个服务器的安全问题。

philpw99 avatar Dec 08 '25 22:12 philpw99