We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5284f03 commit a9e9a2bCopy full SHA for a9e9a2b
lua/codecompanion/adapters/http/gemini.lua
@@ -128,7 +128,11 @@ return {
128
end,
129
},
130
inline_output = function(self, data, context)
131
- return openai.handlers.inline_output(self, data, context)
+ local inline_output = openai.handlers.inline_output(self, data, context)
132
+ if inline_output then
133
+ return { status = inline_output.status, output = inline_output.output:gsub("^<thought>.*</thought>", "") }
134
+ end
135
+ return nil
136
137
on_exit = function(self, data)
138
return openai.handlers.on_exit(self, data)
0 commit comments