diff --git a/changelog/4009.added.md b/changelog/4009.added.md new file mode 100644 index 000000000..9ebbec7dd --- /dev/null +++ b/changelog/4009.added.md @@ -0,0 +1 @@ +- Added `PerplexityLLMAdapter` that automatically transforms conversation messages to satisfy Perplexity's stricter API constraints (strict role alternation, no non-initial system messages, last message must be user/tool). Previously, certain conversation histories could cause Perplexity API errors that didn't occur with OpenAI (`PerplexityLLMService` subclasses `OpenAILLMService` since Perplexity uses an OpenAI-compatible API).