diff options
| author | Martin Bielik <mx.bielik@gmail.com> | 2023-10-21 18:55:10 +0200 |
|---|---|---|
| committer | Martin Bielik <mx.bielik@gmail.com> | 2023-10-21 18:55:43 +0200 |
| commit | 61870b4bb62412772c6fb9f3c9d05b1a0586a036 (patch) | |
| tree | 9eb4204cf93c508374e65db3b9ac2aa8c511bffd | |
| parent | d9e1e193b6d8a8d2eb4eb2deb64d774ab5d5079b (diff) | |
| download | vim-ai-61870b4bb62412772c6fb9f3c9d05b1a0586a036.tar.gz | |
docu on custom apis
Diffstat (limited to '')
| -rw-r--r-- | README.md | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -298,6 +298,20 @@ let g:vim_ai_chat = { " hits token limit, which respond with `OpenAI: HTTPError 400` ``` +### Using custom API + +It is possible to configure the plugin to use different OpenAI-compatible endpoints. +See some cool projects listed in [Custom APIs](https://github.com/madox2/vim-ai/wiki/Custom-APIs) section on the [Community Wiki](https://github.com/madox2/vim-ai/wiki). + +```vim +let g:vim_ai_chat = { +\ "options": { +\ "endpoint_url": "http://localhost:8000/v1/chat/completions", +\ "enable_auth": 0, +\ }, +\} +``` + ### Using chat engine for completion and edits It is possible to configure chat models, such as `gpt-3.5-turbo`, to be used in `:AI` and `:AIEdit` commands. |