mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-10 22:41:41 +00:00
(docs) perplexity
This commit is contained in:
parent
8f586b3913
commit
d9bba09f5d
1 changed files with 3 additions and 5 deletions
|
|
@ -14,9 +14,8 @@ import os
|
|||
|
||||
os.environ['PERPLEXITYAI_API_KEY'] = ""
|
||||
response = completion(
|
||||
model="mistral-7b-instruct",
|
||||
messages=messages,
|
||||
api_base="https://api.perplexity.ai"
|
||||
model="perplexity/mistral-7b-instruct",
|
||||
messages=messages
|
||||
)
|
||||
print(response)
|
||||
```
|
||||
|
|
@ -28,9 +27,8 @@ import os
|
|||
|
||||
os.environ['PERPLEXITYAI_API_KEY'] = ""
|
||||
response = completion(
|
||||
model="mistral-7b-instruct",
|
||||
model="perplexity/mistral-7b-instruct",
|
||||
messages=messages,
|
||||
api_base="https://api.perplexity.ai",
|
||||
stream=True
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue