We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 68d3415 + 69894ff commit 2aa5f4dCopy full SHA for 2aa5f4d
1 file changed
lua/modules/configs/tool/codecompanion.lua
@@ -35,20 +35,22 @@ return function()
35
},
36
37
adapters = {
38
- openrouter = function()
39
- return require("codecompanion.adapters").extend("openai_compatible", {
40
- env = {
41
- url = "https://openrouter.ai/api",
42
- api_key = secret_key,
43
- chat_url = "/v1/chat/completions",
44
- },
45
- schema = {
46
- model = {
47
- default = vim.g.current_chat_model,
+ http = {
+ openrouter = function()
+ return require("codecompanion.adapters").extend("openai_compatible", {
+ env = {
+ url = "https://openrouter.ai/api",
+ api_key = secret_key,
+ chat_url = "/v1/chat/completions",
48
49
50
- })
51
- end,
+ schema = {
+ model = {
+ default = vim.g.current_chat_model,
+ },
+ })
52
+ end,
53
54
55
display = {
56
diff = {
0 commit comments