Use non-streaming chat completion for REST endpoint

FixAIService
Navios
17 de março de 2026 às 04:03 UTC
Autor
Kamo
Enviar
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.

Todas as alterações

Como o que vês no transporte?

Cada uma dessas atualizações pousa automaticamente em seu espaço de trabalho. Comece grátis e veja crescer semana após semana.

Começar Livre Para SempreVer Preços