From c1868ed4dcbb8acaf637b129f8a0f717a41cf5f2 Mon Sep 17 00:00:00 2001 From: Martin Bielik Date: Mon, 27 Mar 2023 22:49:07 +0200 Subject: chat initial prompt poc --- py/complete.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'py/complete.py') 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: -- cgit v1.2.3