Closed dsent closed 1 month ago
I've tried to replace double quotes to single quotes in different ways. They don't seem to be escaped in the logs, but the error is still the same: unsupported protocol scheme.
Maybe something else is going on, like curly braces being interpreted or something.
Okay, it seems that the problem might not be with the custom OpenAI prompt. After removing OPENAI_PROMPT from the env completely, I see the same problem happening. Might be a bug introduced in the latest release.
This was a regression introduced by incorrect handling of a custom API endpoint. It should be fixed on master. Please give it a try and let me know. If all is good, I'll release a quick-fix version right away.
Yep, the issue is fixed. Custom prompting works too!
After updating to the latest release and trying to set a custom OpenAI prompt, I see all OpenAI checks failing 100% of the time with the error
OpenAI error: Post "/chat/completions": unsupported protocol scheme
. The same happens even if I copy the default prompt verbatim. The env variable is set correctly for the container. Studying debug output hints in the direction of quote escaping happening when handling env variables. This is the debug output if I set the OPENAI_PROMPT to the default prompt:As we can see, all double quotes get escaped.