diff options
| author | Martin Bielik <mx.bielik@gmail.com> | 2023-04-02 23:05:12 +0200 |
|---|---|---|
| committer | Martin Bielik <mx.bielik@gmail.com> | 2023-04-02 23:07:50 +0200 |
| commit | 3b04fa1b764129395f54ab1b1297a4ce45e4105e (patch) | |
| tree | 766b2243797e38ff14e6b8b6b5a32e3c05e0e893 /py/utils.py | |
| parent | 779067beb18ddce9143a5fa9abf8608d921feeb4 (diff) | |
| download | vim-ai-3b04fa1b764129395f54ab1b1297a4ce45e4105e.tar.gz | |
extending config programatically
Diffstat (limited to 'py/utils.py')
| -rw-r--r-- | py/utils.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/py/utils.py b/py/utils.py index 8366eec..814a4f0 100644 --- a/py/utils.py +++ b/py/utils.py @@ -12,9 +12,7 @@ def load_api_key(): return api_key.strip() def make_options(): - options_default = vim.eval("options_default") - options_user = vim.eval("options") - options = {**options_default, **options_user} + options = {**vim.eval("options")} options['request_timeout'] = float(options['request_timeout']) options['temperature'] = float(options['temperature']) options['max_tokens'] = int(options['max_tokens']) |