refactor: quotes
This commit is contained in:
@@ -8,12 +8,12 @@ return {
|
|||||||
name = 'anthropic',
|
name = 'anthropic',
|
||||||
endpoint = 'https://api.anthropic.com/v1/messages',
|
endpoint = 'https://api.anthropic.com/v1/messages',
|
||||||
model_endpoint = 'https://api.anthropic.com/v1/models',
|
model_endpoint = 'https://api.anthropic.com/v1/models',
|
||||||
api_key = { '/usr/local/bin/sops', "--config", "/dev/null", "-d", vim.fn.expand("$HOME") .. "/.claude-api" },
|
api_key = { '/usr/local/bin/sops', '--config', '/dev/null', '-d', vim.fn.expand('$HOME') .. '/.claude-api' },
|
||||||
headers = function(self)
|
headers = function(self)
|
||||||
return {
|
return {
|
||||||
['Content-Type'] = "application/json",
|
['Content-Type'] = 'application/json',
|
||||||
['x-api-key'] = self.api_key,
|
['x-api-key'] = self.api_key,
|
||||||
['anthropic-version'] = "2023-06-01",
|
['anthropic-version'] = '2023-06-01',
|
||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
params = {
|
params = {
|
||||||
@@ -39,7 +39,7 @@ return {
|
|||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
user_input_ui = "buffer",
|
user_input_ui = 'buffer',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user