summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMartin Bielik <mx.bielik@gmail.com>2023-10-21 18:55:10 +0200
committerMartin Bielik <mx.bielik@gmail.com>2023-10-21 18:55:43 +0200
commit61870b4bb62412772c6fb9f3c9d05b1a0586a036 (patch)
tree9eb4204cf93c508374e65db3b9ac2aa8c511bffd /README.md
parentd9e1e193b6d8a8d2eb4eb2deb64d774ab5d5079b (diff)
downloadvim-ai-61870b4bb62412772c6fb9f3c9d05b1a0586a036.tar.gz
docu on custom apis
Diffstat (limited to '')
-rw-r--r--README.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/README.md b/README.md
index d9d7a29..408e2b8 100644
--- a/README.md
+++ b/README.md
@@ -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.