diff options
| author | Dru Jensen <drujensen@gmail.com> | 2024-12-07 10:07:27 -0800 |
|---|---|---|
| committer | Dru Jensen <drujensen@gmail.com> | 2024-12-07 10:07:27 -0800 |
| commit | e2b9ae67bb134cf8094362a85dd6d134ac72c0d9 (patch) | |
| tree | 01ac97781735bba67f3d658ace320acff3b9a5b8 | |
| parent | 6366dfbfb3f7422a09f061cc5f7aebeacebc22e0 (diff) | |
| download | vim-ai-e2b9ae67bb134cf8094362a85dd6d134ac72c0d9.tar.gz | |
fix: grok xai blocks without user agent
Diffstat (limited to '')
| -rw-r--r-- | py/utils.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/py/utils.py b/py/utils.py index 264c0c4..5500033 100644 --- a/py/utils.py +++ b/py/utils.py @@ -214,6 +214,7 @@ def openai_request(url, data, options): enable_auth=options['enable_auth'] headers = { "Content-Type": "application/json", + "User-Agent": "VimAI", } if enable_auth: (OPENAI_API_KEY, OPENAI_ORG_ID) = load_api_key(options['token_file_path']) |