Skip to content

Commit

Permalink
Merge branch 'main' into feat/predefined-prompts
Browse files Browse the repository at this point in the history
  • Loading branch information
frankroeder committed Jan 28, 2025
2 parents 31c9f31 + f96ccfb commit f25baf6
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 18 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## [1.2.2](https://github.com/frankroeder/parrot.nvim/compare/v1.2.1...v1.2.2) (2025-01-26)


### Bug Fixes

* add missing module in mistral provider ([b8f52da](https://github.com/frankroeder/parrot.nvim/commit/b8f52dab988a2c21d18aff3ba7806ddc36c2fe8d))
* change current_provider default value to nil ([a8468be](https://github.com/frankroeder/parrot.nvim/commit/a8468be7311ac04b86bf08a05ea480f444b7c1ea))
* **perplexity:** update available models ([bdb30c2](https://github.com/frankroeder/parrot.nvim/commit/bdb30c2007f523e97911185ec97a55486adbecab))

## [1.2.1](https://github.com/frankroeder/parrot.nvim/compare/v1.2.0...v1.2.1) (2024-11-19)


Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ TEST_DIR := tests/
PLUGIN_DIR := lua/

test:
@nvim --headless -u tests/minimal_init.lua -c "PlenaryBustedDirectory tests/ { minimal_init ='tests/minimal_init.lua'}"
@nvim --headless -u tests/minimal_init.lua -c "PlenaryBustedDirectory tests/ {minimal_init ='tests/minimal_init.lua'}"

lint:
luacheck ${PLUGIN_DIR}
Expand Down
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
26 changes: 13 additions & 13 deletions lua/parrot/provider/groq.lua
Original file line number Diff line number Diff line change
Expand Up @@ -127,22 +127,22 @@ end
---@return string[]
function Groq:get_available_models(online)
local ids = {
"gemma-7b-it",
"gemma2-9b-it",
"llama-3.1-70b-versatile",
"llama-3.1-8b-instant",
"llama-3.2-11b-text-preview",
"llama-3.2-1b-preview",
"deepseek-r1-distill-llama-70b",
"llama-3.2-3b-preview",
"llama-3.2-90b-text-preview",
"llama-guard-3-8b",
"distil-whisper-large-v3-en",
"whisper-large-v3-turbo",
"llama-3.1-8b-instant",
"whisper-large-v3",
"llama3-70b-8192",
"llama3-8b-8192",
"llama3-groq-70b-8192-tool-use-preview",
"llama3-groq-8b-8192-tool-use-preview",
"llava-v1.5-7b-4096-preview",
"mixtral-8x7b-32768",
"whisper-large-v3",
"llama-guard-3-8b",
"llama-3.3-70b-specdec",
"llama3-8b-8192",
"llama-3.2-1b-preview",
"gemma2-9b-it",
"llama-3.2-11b-vision-preview",
"llama-3.3-70b-versatile",
"llama-3.2-90b-vision-preview",
}
if online and self:verify() then
local job = Job:new({
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 f25baf6

Please sign in to comment.