Skip to content
BonaBeavis edited this page May 19, 2023 · 5 revisions

How does vim-ai use AI?

vim-ai uses OpenAI's API to generate responses.

Do I need an OpenAI account to use this plugin?

Yes, you will need to set up an account and obtain an API key.

Is API usage free?

No, usage of the API is not free, but the cost is reasonable. See pricing.

What data is shared?

vim-ai shares prompts, which include instructions and visually selected code, and chat content.

Is content of files shared?

No, unless you have explicitly selected and included the code in a prompt.

Syntax highlighting in telescope previews

Add to your vim config:

lua require'plenary.filetype'.add_table({extension = {['aichat'] = 'markdown'}})