mirror of
https://github.com/ParisNeo/ollama_proxy_server.git
synced 2026-01-13 19:08:01 -05:00
Fix Chunked Response Formatting #7
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Mascinissa on 2/11/2025
Hey folks,
I'm new to this repo and wasn't sure how the original
_send_responsemethod was supposed to work, but I noticed it was adding a "400" at the beginning and a "0" at the end of JSON responses. I tweaked it to properly handle response content without extra characters. Tested it, and it seems to work fine now!I also added the
/v1/chat/completionsto the endpoints considered by the queuing mechanism. This endpoint is accessed when running ollama with OpenAI's API.Let me know if anything needs adjusting. Happy to contribute!