diff options
| author | Martin Bielik <mx.bielik@gmail.com> | 2024-12-07 23:14:34 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-07 23:14:34 +0100 |
| commit | 03450bfb8193933916f2c2c2591faff041eb10d1 (patch) | |
| tree | 310b2308f7496bccff2e0a3b060ec254369b3dc3 | |
| parent | 946ac0d45d4dab7c80d4e2a96957cd6dc87a75ba (diff) | |
| parent | e2b9ae67bb134cf8094362a85dd6d134ac72c0d9 (diff) | |
| download | vim-ai-03450bfb8193933916f2c2c2591faff041eb10d1.tar.gz | |
Merge pull request #136 from drujensen/feature/fix-grok-xai
fix: grok xai blocks without user agent, fixes #136 104
| -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 7f8fa90..c58529c 100644 --- a/py/utils.py +++ b/py/utils.py @@ -223,6 +223,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']) |