Can't call OWU api from tool function #23138
DefaultUser1606
started this conversation in
General
Replies: 1 comment
-
|
Hey, I also struggled with that and it really bugged me. I thought the error was on my end and AGI couldnt help me... >< Actually the Open WebUIs chatbot brought me here, so thanks for that. My fix inside my custom tool which includes xlsx file upload and a download link creation: The workaround for the deadlock is basically to use instead of, in my case request.post, a separate async thread. Herefore, the "async with httpx.AsyncClient() as client:" made the deal. Make sure to await the responses otherwise you will get a coroutine object. Good luck^^ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a tool that generates a docx file based on user input. The tool tries to upload the created file into OWU using the /api/v1/files/ endpoint, but calling that endpoint (or any other OWU endpoint) within a tool appears to cause the entire OWU server to deadlock.
I think it might be caused by the following chain:
If my guess is correct, how can one upload a file to OWU from within a tool correctly?
Beta Was this translation helpful? Give feedback.
All reactions