summaryrefslogtreecommitdiff
path: root/py/chat.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--py/chat.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/py/chat.py b/py/chat.py
index 6861b51..810fc46 100644
--- a/py/chat.py
+++ b/py/chat.py
@@ -63,8 +63,10 @@ def run_ai_chat(context):
print('Answering...')
vim.command("redraw")
+ provider_class = load_provider(config['provider'])
+ provider = provider_class(config)
+ text_chunks = provider.request(messages)
- text_chunks = make_chat_text_chunks(messages, options)
render_text_chunks(text_chunks)
vim.command("normal! a\n\n>>> user\n\n")