fix(ui): set selection per buffer and remove spinner (closes #32) (#62)

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
This commit is contained in:
Aaron Pham
2024-08-18 05:36:30 -04:00
committed by GitHub
parent c19ea9a48a
commit d885bd9680
4 changed files with 102 additions and 85 deletions

View File

@@ -282,8 +282,6 @@ local function call_claude_api_stream(question, code_lang, code_content, selecte
local url = Utils.trim_suffix(Config.claude.endpoint, "/") .. "/v1/messages"
-- print("Sending request to Claude API...")
curl.post(url, {
---@diagnostic disable-next-line: unused-local
stream = function(err, data, job)
@@ -390,8 +388,6 @@ local function call_openai_api_stream(question, code_lang, code_content, selecte
}
end
-- print("Sending request to " .. (config.get().provider == "azure" and "Azure OpenAI" or "OpenAI") .. " API...")
curl.post(url, {
---@diagnostic disable-next-line: unused-local
stream = function(err, data, job)