r/PoeAI • u/Takeoded • Oct 30 '26
Poe API violates OpenAI protocol, crashing clients. Support has no plans to fix.
Edit: Poe has now fixed it! I can no longer reproduce the issue :)
If you're using Poe's OpenAI Chat Completions API, heads up: Poe is randomly emitting invalid streaming chunks that can crash standard clients (e.g. OpenCode).
I reported this to Poe support. Their response:
"Thanks for the reports. At this time we don't have fixes planned for the 3 API issues you reported."
When pressed on the fact that 1/3 is a high-impact protocol violation breaking production client integrations, their position remained unchanged:
"At this time we don't have a fix planned for the tool-call streaming issue on ds-v4.1-flash-el."
As a result, Poe's chat-completions API is unsuitable for tool-calling and agentic workflows.
Posting this mainly as a heads-up so other developers don't waste time debugging an upstream issue.
Streaming Protocol error with Parallel tool calls for model ds-v4.1-flash-el
Sometimes (but not always?) when using parallel tool calls over the Chat Completions API in streaming mode,
the api will respond with the tool-finish-flag prematurely,
streaming new tool calls after sending the "finish_reason": "tool_calls" flag.
This is in violation of the OpenAI Chat Completions protocol,
and breaks OpenAI Chat Completions compatible clients in the wild.
For example, OpenCode errors with
>Error: OpenAI Chat received content after the finish reason
The `finish_reason: tool_calls` should only be sent after all tool calls have completed,
That is what OpenAI does.
Reproduce script with log:
curl -sN https://api.poe.com/v1/chat/completions -H "Authorization: Bearer $POE_API_KEY" -H 'Content-Type: application/json' -d '{"model":"ds-v4.1-flash-el","stream":true,"messages":[{"role":"user","content":"Use tools only, no prose. Call read on /tmp/example.txt and in the same response also call glob with pattern /tmp/**/*.txt."}],"tools":[{"type":"function","function":{"name":"read","description":"Read a file","parameters":{"type":"object","properties":{"path":{"type":"string"}},"required":["path"]}}},{"type":"function","function":{"name":"glob","description":"Find files by glob","parameters":{"type":"object","properties":{"pattern":{"type":"string"}},"required":["pattern"]}}}]}'
data: {"id": "chatcmpl-06090710eb1669475dec6ca3", "object": "chat.completion.chunk", "created": 1792329275, "model": "ds-v4.1-flash-el", "choices": [{"index": 0, "delta": {"role": "assistant"}, "finish_reason": null}]}
data: {"id": "chatcmpl-06090710eb1669475dec6ca3", "object": "chat.completion.chunk", "created": 1792329275, "model": "ds-v4.1-flash-el", "choices": [{"index": 0, "delta": {"reasoning_content": ""}, "finish_reason": null}]}
data: {"id": "chatcmpl-06090710eb1669475dec6ca3", "object": "chat.completion.chunk", "created": 1792329275, "model": "ds-v4.1-flash-el", "choices": [{"index": 0, "delta": {"reasoning_content": "The"}, "finish_reason": null}]}
data: {"id": "chatcmpl-06090710eb1669475dec6ca3", "object": "chat.completion.chunk", "created": 1792329275, "model": "ds-v4.1-flash-el", "choices": [{"index": 0, "delta": {"reasoning_content": " user wants me to call"}, "finish_reason": null}]}
data: {"id": "chatcmpl-06090710eb1669475dec6ca3", "object": "chat.completion.chunk", "created": 1792329275, "model": "ds-v4.1-flash-el", "choices": [{"index": 0, "delta": {"reasoning_content": " read on"}, "finish_reason": null}]}
data: {"id": "chatcmpl-06090710eb1669475dec6ca3", "object": "chat.completion.chunk", "created": 1792329275, "model": "ds-v4.1-flash-el", "choices": [{"index": 0, "delta": {"reasoning_content": " /tmp/example.txt and"}, "finish_reason": null}]}
data: {"id": "chatcmpl-06090710eb1669475dec6ca3", "object": "chat.completion.chunk", "created": 1792329275, "model": "ds-v4.1-flash-el", "choices": [{"index": 0, "delta": {"reasoning_content": " glob with"}, "finish_reason": null}]}
data: {"id": "chatcmpl-06090710eb1669475dec6ca3", "object": "chat.completion.chunk", "created": 1792329275, "model": "ds-v4.1-flash-el", "choices": [{"index": 0, "delta": {"reasoning_content": " pattern /tmp/**/*."}, "finish_reason": null}]}
data: {"id": "chatcmpl-06090710eb1669475dec6ca3", "object": "chat.completion.chunk", "created": 1792329275, "model": "ds-v4.1-flash-el", "choices": [{"index": 0, "delta": {"reasoning_content": "txt in the same response"}, "finish_reason": null}]}
data: {"id": "chatcmpl-06090710eb1669475dec6ca3", "object": "chat.completion.chunk", "created": 1792329275, "model": "ds-v4.1-flash-el", "choices": [{"index": 0, "delta": {"reasoning_content": ". No prose"}, "finish_reason": null}]}
data: {"id": "chatcmpl-06090710eb1669475dec6ca3", "object": "chat.completion.chunk", "created": 1792329275, "model": "ds-v4.1-flash-el", "choices": [{"index": 0, "delta": {"reasoning_content": "."}, "finish_reason": null}]}
data: {"id": "chatcmpl-06090710eb1669475dec6ca3", "object": "chat.completion.chunk", "created": 1792329275, "model": "ds-v4.1-flash-el", "choices": [{"delta": {"tool_calls": [{"index": 0, "id": "call_5769479d7b744fc28b968ad3", "type": "function", "function": {"name": "read", "arguments": ""}}]}, "finish_reason": null}]}
data: {"id": "chatcmpl-06090710eb1669475dec6ca3", "object": "chat.completion.chunk", "created": 1792329275, "model": "ds-v4.1-flash-el", "choices": [{"delta": {"tool_calls": [{"index": 0, "function": {"arguments": "{\"path\": \"/tmp/examp"}}]}, "finish_reason": null}]}
data: {"id": "chatcmpl-06090710eb1669475dec6ca3", "object": "chat.completion.chunk", "created": 1792329275, "model": "ds-v4.1-flash-el", "choices": [{"delta": {"tool_calls": [{"index": 0, "function": {"arguments": "le.txt\"}"}}]}, "finish_reason": null}]}
data: {"id": "chatcmpl-06090710eb1669475dec6ca3", "object": "chat.completion.chunk", "created": 1792329275, "model": "ds-v4.1-flash-el", "choices": [{"delta": {}, "finish_reason": "tool_calls"}]}
data: {"id": "chatcmpl-06090710eb1669475dec6ca3", "object": "chat.completion.chunk", "created": 1792329275, "model": "ds-v4.1-flash-el", "choices": [{"delta": {"tool_calls": [{"index": 1, "id": "call_1072c46db83f40f187dd44a4", "type": "function", "function": {"name": "glob", "arguments": ""}}]}, "finish_reason": null}]}
data: {"id": "chatcmpl-06090710eb1669475dec6ca3", "object": "chat.completion.chunk", "created": 1792329275, "model": "ds-v4.1-flash-el", "choices": [{"delta": {"tool_calls": [{"index": 1, "function": {"arguments": "{\"pattern\": \"/tmp/**"}}]}, "finish_reason": null}]}
data: {"id": "chatcmpl-06090710eb1669475dec6ca3", "object": "chat.completion.chunk", "created": 1792329275, "model": "ds-v4.1-flash-el", "choices": [{"delta": {"tool_calls": [{"index": 1, "function": {"arguments": "/*.txt\"}"}}]}, "finish_reason": null}]}
data: {"id": "chatcmpl-06090710eb1669475dec6ca3", "object": "chat.completion.chunk", "created": 1792329275, "model": "ds-v4.1-flash-el", "choices": [{"delta": {}, "finish_reason": "tool_calls"}]}
data: {"id": "chatcmpl-06090710eb1669475dec6ca3", "object": "chat.completion.chunk", "created": 1792329275, "model": "ds-v4.1-flash-el", "choices": [{"index": 0, "delta": {}, "finish_reason": "tool_calls"}], "usage": {"completion_tokens": 104, "prompt_tokens": 413, "total_tokens": 517, "completion_tokens_details": {"accepted_prediction_tokens": null, "audio_tokens": null, "reasoning_tokens": 31, "rejected_prediction_tokens": null}, "prompt_tokens_details": {"audio_tokens": null, "cached_tokens": 0}}}
data: [DONE]
3
u/kkkamilio 27d ago
thanks u/Takeoded for reporting the issue, I am an engineer building Poe, fixed the issue this morning, should be smooth sailing. Let me know if you find any more issues.
2
u/bfyvfftujijg Oct 30 '26
What is that 3 symbol?
2
u/RobooHood 27d ago
I suggest you to contact the creator of that bot directly. DS-v4.1-Flash-EL is made by EmpirioLabs not the Poe team itself. You can contact him on discord about this issue: maxm.123
5
u/TheIncarnated 29d ago
I have been on this sub defending Poe and loving the platform for a while now. After I hit this specific bug, I thought my harness did a bad update. I investigated further. Finally seeing the true error and the constant degredation of the platform. (They fired some of the staff).
I cancelled my Subscription. I bought credits in OpenRouter and haven't looked back. That $500 here in a month is going to OpenRourer instead