Skip to content

Commit

Permalink
Merge pull request #92 from Thomaash/main
Browse files Browse the repository at this point in the history
fix(perplexity): update available models
  • Loading branch information
frankroeder authored Jan 26, 2025
2 parents 6fa2d00 + bdb30c2 commit 89745f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lua/parrot/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ local defaults = {
endpoint = "https://api.perplexity.ai/chat/completions",
topic_prompt = topic_prompt,
topic = {
model = "llama-3.1-sonar-small-128k-online",
model = "sonar",
params = { max_tokens = 64 },
},
params = {
Expand Down
8 changes: 5 additions & 3 deletions lua/parrot/provider/perplexity.lua
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@ end
---@return string[]
function Perplexity:get_available_models()
return {
"llama-3.1-sonar-small-128k-online",
"llama-3.1-sonar-large-128k-online",
"llama-3.1-sonar-huge-128k-online",
"llama-3.1-sonar-small-128k-online", -- deprecated, will stop working after 2025-02-22
"llama-3.1-sonar-large-128k-online", -- deprecated, will stop working after 2025-02-22
"llama-3.1-sonar-huge-128k-online", -- deprecated, will stop working after 2025-02-22
"sonar",
"sonar-pro",
}
end

Expand Down

0 comments on commit 89745f5

Please sign in to comment.