Closed mdjastrzebski closed 5 months ago
OpenAI & Perplexity APIs require user and assistant messages to be alternating for chat completion call. When error happened in calling that APIs, we left unanswered user message. This fix removes such message.
Manual testing.
Summary
OpenAI & Perplexity APIs require user and assistant messages to be alternating for chat completion call. When error happened in calling that APIs, we left unanswered user message. This fix removes such message.
Test plan
Manual testing.