chore(chatgpt): update chatgpt config to use azure api
This commit is contained in:
parent
3f6d324449
commit
8aba6f8dc9
|
@ -1,23 +1,25 @@
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"jackMort/ChatGPT.nvim",
|
'jackMort/ChatGPT.nvim',
|
||||||
event = "VeryLazy",
|
event = 'VeryLazy',
|
||||||
config = function()
|
config = function()
|
||||||
require("chatgpt").setup(
|
require('chatgpt').setup {
|
||||||
{
|
api_key_cmd = 'pass show azure/hypera/oai/idg-dev/token',
|
||||||
api_key_cmd = "pass show azure/hypera/oai/token",
|
api_host_cmd = 'echo -n ""',
|
||||||
api_host_cmd = "pass show azure/hypera/oai/url",
|
api_type_cmd = 'echo azure',
|
||||||
predefined_chat_gpt_prompts =
|
azure_api_base_cmd = 'pass show azure/hypera/oai/idg-dev/base',
|
||||||
"https://raw.githubusercontent.com/julianobarbosa/custom-gpt-prompts/main/prompt.csv"
|
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,
|
end,
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"MunifTanjim/nui.nvim",
|
'MunifTanjim/nui.nvim',
|
||||||
"nvim-lua/plenary.nvim",
|
'nvim-lua/plenary.nvim',
|
||||||
"nvim-telescope/telescope.nvim"
|
'nvim-telescope/telescope.nvim',
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
-- The line beneath this is called `modeline`. See `:help modeline`
|
-- The line beneath this is called `modeline`. See `:help modeline`
|
||||||
-- vim: ts=2 sts=2 sw=2 et
|
-- vim: ts=2 sts=2 sw=2 et
|
||||||
|
|
Loading…
Reference in New Issue