summaryrefslogtreecommitdiff
path: root/py/chat.py
diff options
context:
space:
mode:
authorMax Resnick <max@ofmax.li>2025-01-28 22:27:47 -0800
committerMax Resnick <max@ofmax.li>2025-01-31 22:45:23 -0800
commitc8162fc43a748a97aab4647be2f5cdf50bc739ea (patch)
tree0099688a7a09af76a2ae978790c5e013b59bcb9c /py/chat.py
parent380d5cdd9538c2522dfc8d03a8a261760bb0439a (diff)
downloadvim-ai-c8162fc43a748a97aab4647be2f5cdf50bc739ea.tar.gz
chore: rebase and fix up conflicts
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")