Skip to content

fix: "Failed to stream message: p is not a function" with custom OpenAI-compatible provider#3313

Open
entrusc wants to merge 2 commits into
coder:mainfrom
entrusc:FIX/p-not-a-function
Open

fix: "Failed to stream message: p is not a function" with custom OpenAI-compatible provider#3313
entrusc wants to merge 2 commits into
coder:mainfrom
entrusc:FIX/p-not-a-function

Conversation

@entrusc
Copy link
Copy Markdown

@entrusc entrusc commented May 18, 2026

I ran into an issue with the docker version of Mux and custom OpenAI-compatible providers (in my case LiteLLM). Instead of any response from the LLM I got "Failed to stream message: p is not a function". After some AI assisted investigation I was able to get the issue fixed.

Apparently the problem is a library that gets only loaded on demand but that is not bundled in the minified version. I included it statically and added a script that collects all transitive dependencies and copies them to the production build. I also fixed a small issue with name generation for a workspace - that also did not work as expected with custom providers.

@entrusc entrusc force-pushed the FIX/p-not-a-function branch from a791497 to 80c33fe Compare May 18, 2026 17:41
@entrusc entrusc changed the title Fix "Failed to stream message: p is not a function" with custom OpenAI-compatible provider fix: "Failed to stream message: p is not a function" with custom OpenAI-compatible provider May 18, 2026
@entrusc entrusc force-pushed the FIX/p-not-a-function branch from 80c33fe to 6763460 Compare May 18, 2026 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant