Skip to content

Commit 89745f5

Browse files
authored
Merge pull request #92 from Thomaash/main
fix(perplexity): update available models
2 parents 6fa2d00 + bdb30c2 commit 89745f5

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

lua/parrot/config.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ local defaults = {
4040
endpoint = "https://api.perplexity.ai/chat/completions",
4141
topic_prompt = topic_prompt,
4242
topic = {
43-
model = "llama-3.1-sonar-small-128k-online",
43+
model = "sonar",
4444
params = { max_tokens = 64 },
4545
},
4646
params = {

lua/parrot/provider/perplexity.lua

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,11 @@ end
118118
---@return string[]
119119
function Perplexity:get_available_models()
120120
return {
121-
"llama-3.1-sonar-small-128k-online",
122-
"llama-3.1-sonar-large-128k-online",
123-
"llama-3.1-sonar-huge-128k-online",
121+
"llama-3.1-sonar-small-128k-online", -- deprecated, will stop working after 2025-02-22
122+
"llama-3.1-sonar-large-128k-online", -- deprecated, will stop working after 2025-02-22
123+
"llama-3.1-sonar-huge-128k-online", -- deprecated, will stop working after 2025-02-22
124+
"sonar",
125+
"sonar-pro",
124126
}
125127
end
126128

0 commit comments

Comments
 (0)