Use non-streaming chat completion for REST endpoint

FixAIService
Shipped
March 17, 2026 at 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?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing