chore(chatgpt): update chatgpt config to use azure api

This commit is contained in:
Juliano Barbosa 2024-08-23 08:51:14 -03:00
parent 3f6d324449
commit 8aba6f8dc9
No known key found for this signature in database
GPG Key ID: EB8B440F57360B3D
1 changed files with 17 additions and 15 deletions

View File

@ -1,23 +1,25 @@
return {
{
"jackMort/ChatGPT.nvim",
event = "VeryLazy",
'jackMort/ChatGPT.nvim',
event = 'VeryLazy',
config = function()
require("chatgpt").setup(
{
api_key_cmd = "pass show azure/hypera/oai/token",
api_host_cmd = "pass show azure/hypera/oai/url",
predefined_chat_gpt_prompts =
"https://raw.githubusercontent.com/julianobarbosa/custom-gpt-prompts/main/prompt.csv"
}
)
require('chatgpt').setup {
api_key_cmd = 'pass show azure/hypera/oai/idg-dev/token',
api_host_cmd = 'echo -n ""',
api_type_cmd = 'echo azure',
azure_api_base_cmd = 'pass show azure/hypera/oai/idg-dev/base',
azure_api_engine_cmd = 'pass show azure/hypera/oai/idg-dev/engine',
azure_api_version_cmd = 'pass show azure/hypera/oai/idg-dev/api-version',
predefined_chat_gpt_prompts = 'https://raw.githubusercontent.com/julianobarbosa/custom-gpt-prompts/main/prompt.csv',
}
end,
dependencies = {
"MunifTanjim/nui.nvim",
"nvim-lua/plenary.nvim",
"nvim-telescope/telescope.nvim"
}
}
'MunifTanjim/nui.nvim',
'nvim-lua/plenary.nvim',
'nvim-telescope/telescope.nvim',
},
},
}
-- The line beneath this is called `modeline`. See `:help modeline`
-- vim: ts=2 sts=2 sw=2 et