File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -458,7 +458,11 @@ Here’s how to implement an ollama <https://ollama.com/> provider:
458458 {
459459 providers = {
460460 ollama = {
461- embeddings = 'copilot_embeddings', -- Use Copilot as embedding provider
461+ embed = 'copilot_embeddings', -- Use Copilot as embedding provider
462+
463+ -- Copy copilot input and output processing
464+ prepare_input = require('CopilotChat.config.providers').copilot.prepare_input,
465+ prepare_output = require('CopilotChat.config.providers').copilot.prepare_output,
462466
463467 get_headers = function()
464468 return {
@@ -483,14 +487,6 @@ Here’s how to implement an ollama <https://ollama.com/> provider:
483487 return models
484488 end,
485489
486- prepare_input = function(inputs, opts)
487- return {
488- model = opts.model,
489- messages = inputs,
490- stream = true,
491- }
492- end,
493-
494490 get_url = function()
495491 return 'http://localhost:11434/api/chat '
496492 end,
You can’t perform that action at this time.
0 commit comments