Skip to content

Commit

Permalink
chore: update perplexity provider
Browse files Browse the repository at this point in the history
- remove deprecated models
- adjust curl parameters
  • Loading branch information
frankroeder committed Dec 28, 2024
1 parent 411cece commit 166b56c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 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-70b-instruct",
model = "llama-3.1-sonar-small-128k-online",
params = { max_tokens = 64 },
},
params = {
Expand Down
8 changes: 0 additions & 8 deletions lua/parrot/provider/perplexity.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ local AVAILABLE_API_PARAMETERS = {
max_tokens = true,
temperature = true,
top_p = true,
return_citations = true,
search_domain_filter = true,
return_images = true,
return_related_questions = true,
Expand Down Expand Up @@ -119,16 +118,9 @@ end
---@return string[]
function Perplexity:get_available_models()
return {
-- Perplexity Sonar Models
"llama-3.1-sonar-small-128k-online",
"llama-3.1-sonar-large-128k-online",
"llama-3.1-sonar-huge-128k-online",
-- Perplexity Chat Models
"llama-3.1-sonar-small-128k-chat",
"llama-3.1-sonar-large-128k-chat",
-- Open-Source Models
"llama-3.1-8b-instruct",
"llama-3.1-70b-instruct",
}
end

Expand Down

0 comments on commit 166b56c

Please sign in to comment.