| Commit message (Collapse) | Author | Age | Files | |
|---|---|---|---|---|
| * | reusing parsing code | Martin Bielik | 2024-03-24 | 2 |
| | | ||||
| * | optionally supplement roles dict by vim function source | Konfekt | 2024-03-11 | 2 |
| | | | | | | | | | | | | | | | | | | | | | | | | The application was restricted to loading role configurations only from a predefined config file, which limited extensibility. Enable dynamic role configuration by invoking a custom Vim function if it is defined. This allows users to extend the role configurations beyond the static file. diff --git a/doc/vim-ai.txt b/doc/vim-ai.txt: -The roles in g:vim_ai_roles_config_file are converted to a Vim dictionary. -Optionally, additional roles can be added by defining a function VimAIRoleParser() -whose output is a dictionary of the same format as g:vim_ai_roles_config_file. - diff --git a/py/roles.py b/py/roles.py: -if vim.eval('exists("*VimAIRoleParser")'): - roles.update(vim.eval('VimAIRoleParser()')) - diff --git a/py/utils.py b/py/utils.py: - if vim.eval('exists("*VimAIRoleParser")'): - roles.update(vim.eval('VimAIRoleParser()')) - | |||
| * | Ensure role config file exists before loading to prevent errors | Konfekt | 2024-03-10 | 1 |
| | | | | | | | | | | | | The problem was that the application tried to load a roles configuration file without checking whether it actually exists, potentially leading to unhandled exceptions if the file is missing. Ensure that the roles configuration file exists before attempting to read from it; raise an exception with a clear message if the file is not found. diff --git a/py/roles.py b/py/roles.py: -if not os.path.exists(roles_config_path): - raise Exception(f"Role config file does not exist: {roles_config_path}") - | |||
| * | supprot config only roles | Martin Bielik | 2024-03-09 | 1 |
| | | ||||
| * | simple error handling | Martin Bielik | 2024-03-09 | 1 |
| | | ||||
| * | fix using role in existing chat | Martin Bielik | 2024-03-09 | 1 |
| | | ||||
| * | roles example file | Martin Bielik | 2024-03-09 | 2 |
| | | ||||
| * | roles completion | Martin Bielik | 2024-03-09 | 1 |
| | | ||||
| * | parse role options | Martin Bielik | 2024-03-09 | 3 |
| | | ||||
| * | read role prompt from config | Martin Bielik | 2024-03-09 | 3 |
| | | ||||
| * | removed config path log | Martin Bielik | 2024-03-09 | 1 |
| | | ||||
| * | feat: add an option to customize api key file location | jiangyinzuo | 2024-03-08 | 1 |
| | | ||||
| * | feat(chat): add `include` role to include files | Jason Kölker | 2024-01-24 | 1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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 #43 | Martin Bielik | 2023-12-23 | 2 |
| | | ||||
| * | added explaining comment | Martin Bielik | 2023-12-02 | 1 |
| | | ||||
| * | fix selection include extra content when the user is in visual mode | cposture | 2023-12-02 | 3 |
| | | ||||
| * | fixed python3.12 slash escaping, fixes #61 | Martin Bielik | 2023-11-01 | 1 |
| | | ||||
| * | removed unused import | Martin Bielik | 2023-10-21 | 2 |
| | | ||||
| * | Merge remote-tracking branch 'origin/main' into base-url-config | Martin Bielik | 2023-10-21 | 1 |
| |\ | ||||
| | * | Include OpenAI Org ID from the token config | Duy Lam | 2023-09-09 | 1 |
| | | | ||||
| * | | endpoint_url config | Martin Bielik | 2023-10-21 | 2 |
| | | | ||||
| * | | option to disable authorization | Martin Bielik | 2023-10-21 | 1 |
| | | | ||||
| * | | base_url extracted to config, docu | Martin Bielik | 2023-10-21 | 2 |
| | | | ||||
| * | | Add support for base_url option to use local models | juodumas | 2023-09-18 | 3 |
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | 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 #35 | Martin Bielik | 2023-06-25 | 3 |
| | | ||||
| * | optional max_tokens, fixes #42 | Martin Bielik | 2023-06-11 | 1 |
| | | ||||
| * | importing vim module, fixes #43 | Martin Bielik | 2023-05-23 | 1 |
| | | ||||
| * | print error in debug | Martin Bielik | 2023-05-19 | 3 |
| | | ||||
| * | clear echo message after completion | Martin Bielik | 2023-05-14 | 3 |
| | | ||||
| * | Allow single undo | BonaBeavis | 2023-05-04 | 1 |
| | | | | Fixes https://github.com/madox2/vim-ai/issues/14 | |||
| * | http error handling | Martin Bielik | 2023-04-26 | 1 |
| | | ||||
| * | pass config as a parameter | Martin Bielik | 2023-04-22 | 2 |
| | | ||||
| * | recover for unfinished chat | Martin Bielik | 2023-04-22 | 2 |
| | | ||||
| * | move prompt to python | Martin Bielik | 2023-04-21 | 1 |
| | | ||||
| * | empty message warning, reference #20 | Martin Bielik | 2023-04-18 | 1 |
| | | ||||
| * | nvim keyboard interrupt handling | Martin Bielik | 2023-04-16 | 1 |
| | | ||||
| * | improved undo sequence break | Martin Bielik | 2023-04-15 | 1 |
| | | ||||
| * | fixed error handling | Martin Bielik | 2023-04-15 | 1 |
| | | ||||
| * | using messages to show error/warning | Martin Bielik | 2023-04-15 | 1 |
| | | ||||
| * | reusing error handler | Martin Bielik | 2023-04-15 | 3 |
| | | ||||
| * | reorganized request options | Martin Bielik | 2023-04-15 | 3 |
| | | ||||
| * | using scoped variables | Martin Bielik | 2023-04-15 | 2 |
| | | ||||
| * | removing openai-python from docu | Martin Bielik | 2023-04-13 | 1 |
| | | ||||
| * | implemented request_timeout | Martin Bielik | 2023-04-13 | 3 |
| | | ||||
| * | poc: removing openai dependency | Martin Bielik | 2023-04-13 | 3 |
| | | ||||
| * | moving import openai check to python scripts | Martin Bielik | 2023-04-12 | 3 |
| | | ||||
| * | fixed debug variable type | Martin Bielik | 2023-04-11 | 1 |
| | | ||||
| * | fixed legacy method | Martin Bielik | 2023-04-11 | 1 |
| | | ||||
| * | added debug logging | Martin Bielik | 2023-04-11 | 3 |
| | | ||||
| * | improved error handling | Martin Bielik | 2023-04-10 | 2 |
| | | ||||