Skip to content

[Bug] When configuring a model after installing OpenClaw via 1Panel, the model name is automatically set to the last segment of the path after "/" and written into OpenClaw #12119

@spritelyl

Description

@spritelyl

Contact Information

2990726767@qq.com

1Panel Version

V2.1.3

Problem Description

最新版本的1panel设置模型的时候,模型的名字自动根据/来获取了最后的一个名字然后写入openclaw. 可是使用vllm 启动大模型的时候,一般是采用路径名作为模型的名字,所以路径里面都会包含很多个/ ,但是1panel 在前端设置好后,写入到openclaw.json 里面竟然只保留最后一个名字,只能让管理员到后台修改配置文件,是否是某种正则表达式设置错误了。

Steps to Reproduce

  1. 部署最新版本的1panel
  2. 安装openclaw,设置模型的时候,模型的名字自动根据/来获取了最后的一个名字然后写入openclaw. 可是使用vllm 启动大模型的时候,一般是采用路径名作为模型的名字,所以路径里面都会包含很多个/ ,但是1panel 在前端设置好后,写入到openclaw.json 里面竟然只保留最后一个名字,只能让管理员到后台修改配置文件,是否是某种正则表达式设置错误了。
Image Image

The expected correct result

No response

Related log output

Additional Information

No response

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions