feat(llm): cohere support (#167)

should be good set of defaults now, one in US, one in canada, and
microsoft :/

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
This commit is contained in:
Aaron Pham
2024-08-23 09:36:40 -04:00
committed by GitHub
parent 12d7cd8ec7
commit d2775135a3
5 changed files with 142 additions and 3 deletions

View File

@@ -137,7 +137,11 @@ M.stream = function(question, code_lang, code_content, selected_content_content,
end
Provider.parse_stream_data(data, handler_opts)
else
parse_stream_data(data)
if Provider.parse_stream_data ~= nil then
Provider.parse_stream_data(data, handler_opts)
else
parse_stream_data(data)
end
end
end)
end,