Skip to content

Commit b53a028

Browse files
chore(doc): auto generate docs
1 parent 7e0cb87 commit b53a028

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

doc/CopilotChat.txt

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)