File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ perplexity "What is the meaning of life?"
3030
3131## With Additional Options
3232``` bash
33- perplexity -uc -m llama-3.1- sonar-large-128k-online " Explain Einstein's theory of relativity"
33+ perplexity -uc -m sonar-pro " Explain Einstein's theory of relativity"
3434```
3535
3636## Options
@@ -39,12 +39,13 @@ perplexity -uc -m llama-3.1-sonar-large-128k-online "Explain Einstein's theory o
3939- ` -c ` , ` --citations ` : Show citations
4040- ` -g ` , ` --glow ` : Use Glow-compatible formatting
4141- ` -a API_KEY ` , ` --api-key API_KEY ` : Set the API key (optional, defaults to ` PERPLEXITY_API_KEY ` environment variable)
42- - ` -m MODEL ` , ` --model MODEL ` : Choose the language model (default: llama-3.1- sonar-small-128k-online )
42+ - ` -m MODEL ` , ` --model MODEL ` : Choose the language model (default: sonar-pro )
4343
4444## Available Models
45- - llama-3.1-sonar-small-128k-online
46- - llama-3.1-sonar-large-128k-online
47- - llama-3.1-sonar-huge-128k-online
45+ - sonar-reasoning-pro
46+ - sonar-reasoning
47+ - sonar-pro
48+ - sonar
4849
4950## Configuration
5051Set the ` PERPLEXITY_API_KEY ` environment variable with your Perplexity API key:
Original file line number Diff line number Diff line change 88import json
99
1010AVAILABLE_MODELS = [
11- "llama-3.1-sonar-small-128k-online" ,
12- "llama-3.1-sonar-large-128k-online" ,
13- "llama-3.1-sonar-huge-128k-online" ,
11+ "sonar-reasoning-pro" ,
12+ "sonar-reasoning" ,
13+ "sonar-pro" ,
14+ "sonar"
1415]
1516
1617logger = logging .getLogger (__name__ )
@@ -178,10 +179,10 @@ def main() -> None:
178179 "-m" ,
179180 "--model" ,
180181 type = str ,
181- help = "Description for model argument (default: llama-3.1- sonar-small-128k-online ) "
182+ help = "Description for model argument (default: sonar-pro ) "
182183 f"Available models: { AVAILABLE_MODELS } " ,
183184 required = False ,
184- default = "llama-3.1- sonar-small-128k-online " ,
185+ default = "sonar-pro " ,
185186 )
186187 args = parser .parse_args ()
187188 log_level = logging .DEBUG if args .verbose else logging .WARNING
You can’t perform that action at this time.
0 commit comments