diff options
| author | Martin Bielik <mx.bielik@gmail.com> | 2023-04-04 21:15:20 +0200 |
|---|---|---|
| committer | Martin Bielik <mx.bielik@gmail.com> | 2023-04-04 21:15:20 +0200 |
| commit | e7cdbfb658e903452232f15c4f355bdefcbeacd9 (patch) | |
| tree | ec529563e15bb987ff2c044078a7114fd8d47b19 /py/utils.py | |
| parent | c1868ed4dcbb8acaf637b129f8a0f717a41cf5f2 (diff) | |
| parent | 95d1df263e27a06d3bc6f50f345c79ca0a3cc0b7 (diff) | |
| download | vim-ai-e7cdbfb658e903452232f15c4f355bdefcbeacd9.tar.gz | |
Merge branch 'main' into next
Diffstat (limited to '')
| -rw-r--r-- | py/utils.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/py/utils.py b/py/utils.py index 3e5295a..02ecfef 100644 --- a/py/utils.py +++ b/py/utils.py @@ -11,14 +11,8 @@ def load_api_key(): pass return api_key.strip() -def make_options(): - options_default = vim.eval("options_default") - options_user = vim.eval("options") - options = {**options_default, **options_user} - return options - def make_request_options(): - options = make_options() + options = vim.eval("options") request_options = {} request_options['model'] = options['model'] request_options['max_tokens'] = int(options['max_tokens']) |