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:
458
458
{
459
459
providers = {
460
460
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,
462
466
463
467
get_headers = function()
464
468
return {
@@ -483,14 +487,6 @@ Here’s how to implement an ollama <https://ollama.com/> provider:
483
487
return models
484
488
end,
485
489
486
- prepare_input = function(inputs, opts)
487
- return {
488
- model = opts.model,
489
- messages = inputs,
490
- stream = true,
491
- }
492
- end,
493
-
494
490
get_url = function()
495
491
return 'http://localhost:11434/api/chat '
496
492
end,
You can’t perform that action at this time.
0 commit comments