diff options
| author | Martin Bielik <mx.bielik@gmail.com> | 2023-03-27 22:49:07 +0200 |
|---|---|---|
| committer | Martin Bielik <mx.bielik@gmail.com> | 2023-03-27 22:49:07 +0200 |
| commit | c1868ed4dcbb8acaf637b129f8a0f717a41cf5f2 (patch) | |
| tree | 3b28d61905b9aa640ae99183508073ffd982b556 /py/complete.py | |
| parent | 8af2250ee04a228e064a750f341812c02134081d (diff) | |
| download | vim-ai-c1868ed4dcbb8acaf637b129f8a0f717a41cf5f2.tar.gz | |
chat initial prompt poc
Diffstat (limited to '')
| -rw-r--r-- | py/complete.py | 4 |
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: |