Originally created by @476820505 on GitHub (Jun 24, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/15258
### Check Existing Issues
- [x] I have searched the existing issues and discussions.
### Problem Description
因为我的接口是需要填入query这个参数的,也就是说我在定义tools的时候使用了python的request请求了我的api接口,但是为什么模型在做推理回复的时候,没有调用该tools呢
### Desired Solution you'd like
因为我的接口是需要填入query这个参数的,也就是说我在定义tools的时候使用了python的request请求了我的api接口,但是为什么模型在做推理回复的时候,没有调用该tools呢
### Alternatives Considered
_No response_
### Additional Context
_No response_
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @476820505 on GitHub (Jun 24, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/15258
Check Existing Issues
Problem Description
因为我的接口是需要填入query这个参数的,也就是说我在定义tools的时候使用了python的request请求了我的api接口,但是为什么模型在做推理回复的时候,没有调用该tools呢
Desired Solution you'd like
因为我的接口是需要填入query这个参数的,也就是说我在定义tools的时候使用了python的request请求了我的api接口,但是为什么模型在做推理回复的时候,没有调用该tools呢
Alternatives Considered
No response
Additional Context
No response
@jackthgu commented on GitHub (Jun 25, 2025):
您好,需要尽可能详细的信息,以便 LLM 能够正确读取。
在第一次连接到 tools 服务器,或者点击保存(Save)按钮时,OI 会从服务器获取接口相关的信息。
以下示例希望能对您有所帮助
https://github.com/open-webui/openapi-servers/blob/5336f1f41eff272d05169dcb7c51b38a83da749c/servers/time/main.py#L53
https://github.com/open-webui/openapi-servers/blob/5336f1f41eff272d05169dcb7c51b38a83da749c/servers/time/main.py#L91