Skip to content

Commit

Permalink
modify openai url
Browse files Browse the repository at this point in the history
Signed-off-by: SunJ <jsun@bouffalolab.com>
  • Loading branch information
SunJun8 committed Nov 8, 2024
1 parent 8e69cff commit 0ee942f
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions lua/plugins/avante.lua
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,20 @@ return {
end,
},
},
opts = {},
opts = {
provider = "openai",
openai = {
endpoint = "https://api.holdai.top/v1",
model = "chatgpt-4o-latest", -- The model name to use with this provider
timeout = 30000, -- Timeout in milliseconds
temperature = 0,
max_tokens = 4096,
["local"] = false,
},
},
specs = { -- configure optional plugins
{ -- if copilot.lua is available, default to copilot provider
{
-- if copilot.lua is available, default to copilot provider
"zbirenbaum/copilot.lua",
optional = true,
specs = {
Expand Down

0 comments on commit 0ee942f

Please sign in to comment.