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 1bbe034 commit 2279dbeCopy full SHA for 2279dbe
1 file changed
lua/CopilotChat/config/providers.lua
@@ -333,7 +333,7 @@ M.copilot = {
333
334
for _, model in ipairs(models) do
335
if not model.policy then
336
- curl.post('https://api.githubcopilot.com/models/' .. model.id .. '/policy', {
+ pcall(curl.post, 'https://api.githubcopilot.com/models/' .. model.id .. '/policy', {
337
headers = headers,
338
json_request = true,
339
body = { state = 'enabled' },
0 commit comments