[GH-ISSUE #15258] feat: 我想知道在open webui如何接入自己的fastapi接口 #17512

Closed
opened 2026-04-19 23:17:24 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @476820505 on GitHub (Jun 24, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/15258

Check Existing Issues

  • 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

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_
Author
Owner

@jackthgu commented on GitHub (Jun 25, 2025):

您好,需要尽可能详细的信息,以便 LLM 能够正确读取。
在第一次连接到 tools 服务器,或者点击保存(Save)按钮时,OI 会从服务器获取接口相关的信息。
以下示例希望能对您有所帮助

5336f1f41e/servers/time/main.py (L53)
5336f1f41e/servers/time/main.py (L91)

<!-- gh-comment-id:3002821281 --> @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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#17512