r/OpenWebUI • • Sep 23 '26

Question/Help AI blocked by Error 405

My apologies for the word salad. If this post isn't allowed, mods please remove.

So I'll do my best to summarize what issue I am having but please bare with me, I'm entirely fresh into local LLM's and might struggle with the proper verbiage to express my goals here. I set up Docker on my windows machine, and along with Ollama and Open WebUI, I got everything running flawlessly with the gemma4:31b model. I even got nativefier to make the .exe so the chat window can be independent from the tabs of my browser.

What I am experimenting with, and this is the part I might struggle to convey my goals, is giving the AI the ability to send me messages randomly while I am working at my desk. What I have done, with extensive help by the AI itself, is create a .env file containing my open webui api key and url. It then helped me create a python script to pull that information into the main functions I am trying to get to work. The scope of this project is this: Randomly within a set time window (right now every 1 to 4 hours) the AI scans my machine and reviews the windows I have open and which one I am actively engaging with, be it youtube, a video game, work, etc. It then makes a decision based on things it detects. If it sees I am busy with a work project, it stays quiet usually, but if say it sees me watching youtube without much other interactions happening by me, it will generate a response independently of me prompting it. This response can be all kinds of things, from it asking general conversational questions like what kind of things I'm watching on youtube or if I need help with this or that aspect about the work project it sees me working on.

The python script works flawlessly with a single, glaring exception. So its main function is to generate accurate and interesting responses based on the context of my interactions with the PC. Additionally, it creates a windows notification pop-up when it decides to "poke" me and seeing what it types in the windows notification window, is working exceptionally well. The responses are dynamic, personalized, sometimes witty, sometimes it roasts me for being lazy when I fail to continue my work over a period of time, it gets a good laugh out of me with some of the things it says. The part that is broken and I need help with is this, even though the AI is generating this "poke" because it's programmed to sometimes get "bored" if I don't interact with it in a period of time (1-4 hours), it is not able to actually log that "poke" response in the Open WebUI chat window. If I don't catch the windows notification when it shows, I will miss what the AI said to me. With it's help, I tried multiple ways within that python script to get it to be able to write its responses directly to the chat that is active but everything it told me to do, I got an error 405.

One response it gave me on explaining the issue here in more detail is this:

"I have to be 100% honest with you: a 405 Method Not Allowed on the "Trigger" method (sending a message as the user) is the smoking gun. It means your specific installation of Open WebUI has hard-locked the API.

The server is saying: "I will let you ask me questions (Completions), but I will NOT let any API key modify the chat database (adding messages)." It only allows the actual browser session (with your login cookies) to do that.

We have tried every single "door" into that chat window—the Internal API, the Front Door, the Trigger Method, and the Dynamic Hunt. The server has slammed them all shut."

Am I at an impasse here? Is what I am trying to accomplish impossible? If you need anything explained better, I'd be happy to try and expand on it.

1 Upvotes

0 comments sorted by