Skip to content

[BUG]admin登录,无法创建提示词 #1251

Description

@lobokiol

SQLBot Version
SQLBot 版本是 1.9.0
Run Mode
Is it running in a Docker container or running from source code?
Docker
Describe the bug
A clear and concise description of what the bug is.
[BUG]admin登录,无法创建提示词
To Reproduce
Steps to reproduce the behavior:
登录 SQLBot(http://localhost:8000)
左侧进入 工作空间设置(/set)
点击 自定义提示词(/set/prompt)

Expected behavior
A clear and concise description of what you expected to happen.
可以修改
Screenshots
If applicable, add screenshots to help explain your problem.

Image

Additional context
Add any other context about the problem here.
保存自定义提示词时,前端会调用 PUT /api/v1/system/custom_prompt,但当前 Docker 镜像里的 xpack 没有注册 custom_prompt 路由(术语库、SQL 训练在主代码里,自定义提示词在 xpack 里)。

因此请求没有对应接口,返回 405 Method Not Allowed。

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions