File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
lua/codecompanion/adapters Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ local log = require("codecompanion.utils.log")
1212--- @field headers table The headers to pass to the request
1313--- @field parameters table The parameters to pass to the request
1414--- @field body table Additional body parameters to pass to the request
15+ --- @field temp ? table A table to store temporary values which are not passed to the request
1516--- @field raw ? table Any additional curl arguments to pass to the request
1617--- @field opts ? table Additional options for the adapter
1718--- @field handlers table Functions which link the output from the request to CodeCompanion
105106--- @param str string
106107--- @return string
107108local function replace_var (adapter , str )
109+ if type (str ) ~= " string" then
110+ return str
111+ end
112+
108113 local pattern = " ${(.-)}"
109114
110115 local result = str :gsub (pattern , function (var )
You can’t perform that action at this time.
0 commit comments