Skip to content

Commit

Permalink
Ensure system_prompt is passed to Perplexity LLM (run-llama#10326)
Browse files Browse the repository at this point in the history
* fix run-llama#6542

* Fixing linter complaining

* linting

* Ensure system_prompt is passed to Perplexity LLM

---------

Co-authored-by: Hugeldugelking <[email protected]>
Co-authored-by: Logan Markewich <[email protected]>
  • Loading branch information
3 people authored Jan 30, 2024
1 parent 331b36c commit ce109a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llama_index/llms/perplexity.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def _complete(self, prompt: str, **kwargs: Any) -> CompletionResponse:
payload = {
"model": self.model,
"messages": [
{"role": "system", "content": "Be precise and concise."},
{"role": "system", "content": self.system_prompt},
{
"role": "user",
"content": prompt,
Expand Down

0 comments on commit ce109a0

Please sign in to comment.