433 B
433 B
- Added
PerplexityLLMAdapterthat 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 (PerplexityLLMServicesubclassesOpenAILLMServicesince Perplexity uses an OpenAI-compatible API).