KamoCRM

Use non-streaming chat completion for REST endpoint

FixAIService
Shipped
17 மார்ச், 2026 அன்று 4:03 AM UTC
Author
Kamo
Commit
31f21ee

Streaming over REST with blockLast() was producing empty responses because WebClient's SSE parsing doesn't work reliably with bodyToFlux(String.class). Added handleMessageSync() that uses adapter.chatCompletion() (non-streaming) with proper response handling, message persistence, and usage tracking.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing