summaryrefslogtreecommitdiff
path: root/py/complete.py
diff options
context:
space:
mode:
authorMartin Bielik <mx.bielik@gmail.com>2023-03-27 22:49:07 +0200
committerMartin Bielik <mx.bielik@gmail.com>2023-03-27 22:49:07 +0200
commitc1868ed4dcbb8acaf637b129f8a0f717a41cf5f2 (patch)
tree3b28d61905b9aa640ae99183508073ffd982b556 /py/complete.py
parent8af2250ee04a228e064a750f341812c02134081d (diff)
downloadvim-ai-c1868ed4dcbb8acaf637b129f8a0f717a41cf5f2.tar.gz
chat initial prompt poc
Diffstat (limited to 'py/complete.py')
-rw-r--r--py/complete.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/complete.py b/py/complete.py
index e474580..40f6efb 100644
--- a/py/complete.py
+++ b/py/complete.py
@@ -5,7 +5,7 @@ plugin_root = vim.eval("s:plugin_root")
vim.command(f"py3file {plugin_root}/py/utils.py")
prompt = vim.eval("prompt")
-options = make_options()
+request_options = make_request_options()
openai.api_key = load_api_key()
@@ -15,7 +15,7 @@ try:
print('Completing...')
vim.command("redraw")
- response = openai.Completion.create(stream=True, prompt=prompt, **options)
+ response = openai.Completion.create(stream=True, prompt=prompt, **request_options)
generating_text = False
for resp in response: