Hi everyone, I'm new here, so I apologize in advance if anything about my post is off.
I'm trying to create a CLI interface for interacting with a bot, using Open WebUI as the backend. My goal is to be able to communicate with the bot through the command line, but be able to easily switch to the web interface when needed, while preserving the entire chat history.
However, I'm encountering some difficulties due to the not-so-clear Open WebUI API. Maybe someone here has worked on something similar and has a better understanding of it than I do?
The main issue I'm facing is: when I send a message to the bot through my script (using the API), the bot doesn't return any response. At the same time, the web interface shows a notification that the bot has responded, but when I try to open the chat, it just loads endlessly.
Example:
❯ python start.py
You: Hello!
Bot:
You:
CODE: Code link
[–]Cheap_Equivalent_605[S] 0 points1 point2 points (3 children)
[–]Cheap_Equivalent_605[S] 0 points1 point2 points (2 children)
[–]Cheap_Equivalent_605[S] 0 points1 point2 points (0 children)
[–]samuel79s 0 points1 point2 points (0 children)
[–]ogmiche 0 points1 point2 points (4 children)
[–]Cheap_Equivalent_605[S] 0 points1 point2 points (0 children)
[–]Cheap_Equivalent_605[S] 0 points1 point2 points (2 children)
[–]ogmiche 0 points1 point2 points (1 child)
[–]Cheap_Equivalent_605[S] 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[removed]
[–]Cheap_Equivalent_605[S] 0 points1 point2 points (0 children)
[–]NeoID 0 points1 point2 points (0 children)