summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFiles
* roles example fileMartin Bielik2024-03-095
|
* roles completionMartin Bielik2024-03-093
|
* parse role optionsMartin Bielik2024-03-093
|
* read role prompt from configMartin Bielik2024-03-093
|
* removed unused variableMartin Bielik2024-03-091
|
* Merge pull request #84 from Konfekt/rangeMartin Bielik2024-03-091
|\ | | | | allow overriding range if called on visual selection
| * remove garbled textKonfekt2024-03-091
| |
| * fix typoKonfekt2024-03-091
| |
| * allow overriding range if called on visual selectionKonfekt2024-03-081
| | | | | | | | | | | | | | Check if the start and end line of range equals that of visual selection. If so, take the visual selection; otherwise the supplied range
* | removed config path logMartin Bielik2024-03-091
| |
* | Merge pull request #80 from jiangyinzuo/mainMartin Bielik2024-03-093
|\ \ | | | | | | feat: add an option to customize api key file location
| * | feat: add an option to customize api key file locationjiangyinzuo2024-03-083
| |/
* | Merge pull request #82 from Konfekt/issue81Martin Bielik2024-03-091
|\ \ | |/ |/| fix selection handling in vim_ai functions, fixes #81
| * Fix incorrect argument type passed in AINewChat commandKonfekt2024-03-081
|/ | | | | | | | | The vim-ai plugin had an issue where the AINewChat command was using <q-args> to always pass a quoted (possibly empty!) argument to the vim_ai#AINewChatRun function where an optional <f-args> agument was expected. Addresses https://github.com/madox2/vim-ai/issues/81
* docu range functionalityMartin Bielik2024-02-261
|
* Merge pull request #77 from Konfekt/rangeMartin Bielik2024-02-264
|\ | | | | fix selection handling in vim_ai functions
| * removed debug logMartin Bielik2024-02-261
| |
| * revert ModeChanged because visual to command mode is not detectedKonfekt2024-02-261
| |
| * apply suggestions of review at PR #77Konfekt2024-02-261
| |
| * drop superfluous selection argument and fix instruction argumentKonfekt2024-02-264
| |
| * prefer less frequent ModeChanged event to CursorMoved if availableKonfekt2024-02-261
| |
| * align AIRedo with AI/AIEdit/ChatKonfekt2024-02-261
| | | | | | | | | | | | | | | | These changes were necessary to fix a bug where commands were not being executed correctly in non-visual modes, and to make the code cleaner and more efficient. By explicitly handling the visual selection state, it ensures that the plugin functions correctly regardless of how the user invokes the AI features.
| * fix selection handling in vim_ai functionsKonfekt2024-02-262
| | | | | | | | addresses https://github.com/madox2/vim-ai/issues/76
| * Update README.mdChris Stryczynski2024-02-261
| | | | | | Fix instructions which lead to `Undefined variable: g:vim_ai_chat` if config options are not initially set
* | Merge pull request #75 from chrissound/patch-1Martin Bielik2024-02-181
|\ \ | | | | | | Fix instructions which lead to `Undefined variable: g:vim_ai_chat` if config options are not initially set
| * | Update README.mdChris Stryczynski2024-02-171
|/ / | | | | Fix instructions which lead to `Undefined variable: g:vim_ai_chat` if config options are not initially set
* | Merge pull request #74 from jkoelker/includeMartin Bielik2024-01-255
|\| | | | | feat(chat): add `include` role to include files
| * feat(chat): add `include` role to include filesJason Kölker2024-01-245
|/ | | | | | | | | | | | | | | | | | | | | | | | | Files may be included in the chat by a special `include` role. Each file's contents will be added to an additional `user` role message with the files separated by `==> {path} <==` where `{path}` is the path to the file. Globbing is expanded out via `glob.glob` and relative apths to the current working directory (as determined by `getcwd()`) will be resolved to absolute paths. Example: ``` >>> user Generate documentation for the following files >>> include /home/user/myproject/src/../requirements.txt /home/user/myproject/**/*.py ``` Fixes: #69
* import vim before utils, fixes #43Martin Bielik2023-12-232
|
* added explaining commentMartin Bielik2023-12-022
|
* Merge pull request #64 from cposture/fix-visual-selectionMartin Bielik2023-12-024
|\ | | | | fix selection include extra content when the user is in visual mode
| * fix selection include extra content when the user is in visual modecposture2023-12-024
|/
* fixed python3.12 slash escaping, fixes #61Martin Bielik2023-11-011
|
* Merge pull request #59 from madox2/base-url-configMartin Bielik2023-10-216
|\ | | | | Custom APIs, closes #55, closes #51
| * removed unused importMartin Bielik2023-10-212
| |
| * Merge remote-tracking branch 'origin/main' into base-url-configMartin Bielik2023-10-214
| |\ | |/ |/|
* | use gpt-3.5-turbo-instruct by default, closes #48Martin Bielik2023-09-263
| |
* | compact org id docuMartin Bielik2023-09-181
| |
* | Merge pull request #54 from duylam/openai-org-supportMartin Bielik2023-09-182
|\ \ | | | | | | Support including OpenAI Org ID in the request to OpenAI API endpoints
| * | Include OpenAI Org ID from the token configDuy Lam2023-09-092
|/ /
| * docu on custom apisMartin Bielik2023-10-211
| |
| * endpoint_url configMartin Bielik2023-10-215
| |
| * option to disable authorizationMartin Bielik2023-10-214
| |
| * base_url extracted to config, docuMartin Bielik2023-10-215
| |
| * Add support for base_url option to use local modelsjuodumas2023-09-183
|/ | | | | | | | | | | | | | | | | | | | | | | | | | For example, you can start llama-cpp-python like this (it emulates the openai api): ```sh CMAKE_ARGS="-DLLAMA_CUBLAS=on" pip install 'llama-cpp-python[server]' wget https://huggingface.co/TheBloke/CodeLlama-13B-Instruct-GGUF/resolve/main/codellama-13b-instruct.Q5_K_M.gguf python3 -m llama_cpp.server --n_gpu_layers 100 --model codellama-13b-instruct.Q5_K_M.gguf ``` Then set the API url in your `.vimrc`: ```vim let g:vim_ai_chat = { \ "engine": "chat", \ "options": { \ "base_url": "http://127.0.0.1:8000", \ }, \ } ``` And chat with the locally hosted AI using `:AIChat`. The change in utils.py was needed because llama-cpp-python adds a new line to the final response: `[DONE]^M`.
* allow string in initial_prompt, closes #35Martin Bielik2023-06-254
|
* optional max_tokens, fixes #42Martin Bielik2023-06-112
|
* selection boundary issue reference, fixes #45Martin Bielik2023-05-301
|
* importing vim module, fixes #43Martin Bielik2023-05-231
|
* tags updateMartin Bielik2023-05-221
|