diff --git a/server/services/llm/perplexity.mdx b/server/services/llm/perplexity.mdx index c3aa04e5..9e429900 100644 --- a/server/services/llm/perplexity.mdx +++ b/server/services/llm/perplexity.mdx @@ -126,6 +126,7 @@ llm = PerplexityLLMService( - Perplexity does not support function calling or tools. The service only sends messages to the API, without tool definitions. - Perplexity uses incremental token reporting. The service accumulates token usage metrics during processing and reports the final totals at the end of each request. - Perplexity models have built-in internet search capabilities, providing up-to-date information without requiring additional tool configuration. +- **Message transformation**: Perplexity's API enforces stricter constraints than OpenAI on conversation history structure (strict role alternation, no non-initial system messages, last message must be user/tool). The service automatically transforms messages to satisfy these constraints before sending them to the API, so you don't need to manually structure your conversation history. The `InputParams` / `params=` pattern is deprecated as of v0.0.105. Use