mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-04-26 01:05:52 +03:00
[GH-ISSUE #946] OpenAI 配置项 Model 填入带有 / 的模型名时无法通过验证 #2025
Labels
No labels
Q/A
bug
casdoor
dependencies
docker
documentation
duplicate
enhancement
help wanted
invalid
lego
platform:openwrt
platform:windows
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-ui#2025
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Jerry-FaGe on GitHub (Apr 8, 2025).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/946
Describe the bug
OpenAI 配置项 Model 填入带有 / 的模型名时无法通过验证
To Reproduce
Steps to reproduce the behavior:
偏好设置 -> OpenAI -> 模型输入框
输入
deepseek/deepseek-v3-base:free这类带有/的 OpenRouter 风格模型名会导致保存时报错Expected behavior
可以正确校验带有
/的模型名Screenshots
Info (please complete the following information):
Additional context
原因是
safetyText验证规则的两个正则表达式均未包含/符号,而有些聚合服务(如 OpenRouter )的模型名是需要的,改动太小就不提 pr 了。