Skip to content

Commit

Permalink
chore: update default openai versions
Browse files Browse the repository at this point in the history
these are all better and cheaper models
  • Loading branch information
gsuuon committed May 25, 2024
1 parent 660c69e commit 827cf0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/model/prompts/chats.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ local openai_chat = {
provider = openai,
system = 'You are a helpful assistant',
params = {
model = 'gpt-3.5-turbo-1106',
model = 'gpt-3.5-turbo',
},
create = input_if_selection,
run = function(messages, config)
Expand All @@ -39,7 +39,7 @@ local chats = {
openai = openai_chat,
gpt4 = vim.tbl_deep_extend('force', openai_chat, {
params = {
model = 'gpt-4-1106-preview',
model = 'gpt-4o',
},
}),
palm = {
Expand Down Expand Up @@ -152,7 +152,7 @@ local chats = {
provider = openai,
system = "You are an expert programmer that gives constructive feedback. Review the changes in the user's git diff.",
params = {
model = 'gpt-4-1106-preview',
model = 'gpt-4o',
},
create = function()
local git_diff = vim.fn.system({ 'git', 'diff', '--staged' })
Expand Down

0 comments on commit 827cf0e

Please sign in to comment.