You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using a Perplexity model with a role flag gives a 400 bad request.
"error, status code: 400, status: 400 Bad Request, message: After the (optional) system message(s), user and assistant roles should be alternating."
Setup
add your Perplexity API key
add a role (I am using the 'shell' example)
Please complete the following information along with version numbers, if applicable.
OS: Ubuntu 24.04.2 LTS
Shell: PowerShell 7.4.7
Terminal Emulator: Ghostty 1.1.3
mods: 1.7.0
To Reproduce
Steps to reproduce the behavior:
run a prompt with the role on a Perplexity model
get a 400 error (non Perplexity models and Perplexity models without the role flag seem to work fine)
Expected behavior
I expect a response using the provided role like the other AI models.
Screenshots
The text was updated successfully, but these errors were encountered:
Describe the bug
Using a Perplexity model with a role flag gives a 400 bad request.
"error, status code: 400, status: 400 Bad Request, message: After the (optional) system message(s), user and assistant roles should be alternating."
Setup
Please complete the following information along with version numbers, if applicable.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect a response using the provided role like the other AI models.
Screenshots
The text was updated successfully, but these errors were encountered: