Commit Graph

39 Commits

Author SHA1 Message Date
2f4d415cba Add anthropic gptel backend 2024-09-09 11:57:42 -04:00
59ab43f820 Add command to format code with gptel 2024-08-22 16:02:54 -04:00
685230b4a8 Autoload gptel-context commands manually 2024-08-20 11:06:37 -04:00
d1147a81c3 Default to creating a new buffer when invoking gptel 2024-08-20 10:18:34 -04:00
6898a3e8e5 Add LLM-based PR review
Added `gptel-pr-review` to `init-ai.el` for reviewing pull requests with specific prompts using gptel. Introduced `forge-pullreq-diff` in `init-git.el` to retrieve PR diffs as strings. These changes integrate AI capabilities for improved PR feedback and comment functionality.
2024-08-19 15:37:29 -04:00
3a5d946938 Increase Ollama context window and override gptel--request-data
Added a custom variable `gptel-ollama-context-window` to specify the number of characters for Ollama requests and overridden the `gptel--request-data` method to include this context window in the request data.
2024-08-19 12:01:56 -04:00
e2580c7abe Fix aimenu use-package declaration 2024-08-13 23:30:12 -04:00
4d022e32d2 Refine commit message prompt to be more specific
Updated the prompt text to include "Be specific" to improve clarity and detail in generated commit messages.
2024-08-12 16:31:54 -04:00
73897be017 Use gpt-4o-mini for aimenu 2024-08-12 11:49:00 -04:00
76bea3d41a Add keybinding for gptel-quick to ai-map 2024-08-12 11:39:07 -04:00
71861b026a Add aimenu for AI-powered imenu outlines
This commit introduces aimenu, a new package that generates imenu-like outlines using a language model. The new package includes functions for generating and handling outlines, managing cache, and interacting with the user to select headers.
2024-08-12 11:38:59 -04:00
c622de4d80 Add gemma2:2b model option 2024-08-10 22:58:47 -04:00
4b7e74afa5 Don't use first person in system prompt 2024-08-07 13:10:54 -04:00
5b0cab188e Move backend selection into interactive call 2024-08-07 13:09:13 -04:00
cc12ad22b4 Expand gptel-directive for org-mode with more guidelines
Updated the gptel-directive for org-mode to provide detailed instructions on how to return Emacs Lisp, Python, and shell-script code blocks. Additionally, included several examples to illustrate the expected code block format and evaluation criteria.
2024-08-07 13:01:35 -04:00
2f02bc6e1b Add new directives for code review and prompt generation
This commit introduces two new directives into the gptel configuration: one for code review and another for prompt generation. The code review directive provides guidelines for giving feedback on code snippets, while the prompt generation directive outlines steps for creating effective prompts.
2024-08-05 10:03:30 -04:00
c0f2631b00 Add directive for stable diffusion prompt generation
This change adds a new directive to the gptel configuration for creating detailed prompts for stable diffusion image generators. The directive specifies how to translate a simple natural language description into a more detailed and descriptive prompt to ensure high-quality image generation.
2024-07-25 21:31:47 -04:00
38db89e9be Open ComfyUI in default browser 2024-07-25 21:31:24 -04:00
8f6b50d84e Remove llama configuration from init-ai.el 2024-07-25 21:10:26 -04:00
a47f4e537d Add gptel-chat-with-buffer function and keybinding
This commit introduces the gptel-chat-with-buffer function, allowing users to start a chat with the buffer content. It also updates keybindings, assigning "b" to the new function and moving gptel-select-backend to "B".
2024-07-25 21:10:14 -04:00
e63466ca1f Extract org-mode LLM directive into variable 2024-07-25 16:22:18 -04:00
ccf97514f6 Update gptel--system-message for automatic code evaluation
Removed the need for confirmation before evaluating code in Org-Mode source blocks, allowing automatic execution.
2024-07-25 00:27:56 -04:00
ed63a1ea0f Add gptel-org function
Implemented a gptel-org function to allow interacting with GPTel within an Org-Mode buffer, setting the appropriate system message for context. Updated init-org.el to load Emacs-Lisp and Python Babel languages and disabled org-confirm-babel-evaluate for smoother code execution.
2024-07-25 00:10:48 -04:00
a7b98cad02 Add keybinding for gptel-abort 2024-07-24 16:19:58 -04:00
8d7dec78f5 Add shell command directive to gptel configuration
This change introduces a new directive for generating shell commands to the gptel configuration. The directive specifies that the response should be plain text with no additional description or formatting.
2024-07-24 16:09:16 -04:00
0adc712d2f Update ollama models
Changed the model names from "llama3:latest" and "mistral:latest" to "llama3.1:latest" and "mistral-nemo:latest" respectively in the GPTel Ollama backend configuration.
2024-07-24 16:00:22 -04:00
906560dae0 Add key binding for generating git commit messages 2024-07-24 13:01:19 -04:00
05d94e2646 Refines commit message prompt directive
Updated the guidelines for generating commit messages to avoid using the word 'enhance' and user experience references, and request plain text responses without syntax.
2024-07-24 10:42:04 -04:00
f9b49ef7b6 Autoload gptel-request 2024-07-24 10:28:22 -04:00
f49adb3b73 Update OpenAI reference to ChatGPT in init-ai.el 2024-07-21 08:06:51 -04:00
9fb96b3099 Refactor gptel backend selection and configuration
Reorganized backend definitions and selection process for gptel, introducing `gptel-backend-openai` and `gptel-backend-ollama` variables. Simplified backend selection logic and improved the `gptel-select-backend` function to dynamically prompt for models.
2024-07-21 00:49:29 -04:00
6b9161a797 Add AI keybindings 2024-07-19 23:40:04 -04:00
31220b41b9 Support multiple GPT backends in gptel config
Enhanced the gptel configuration to support multiple backends (Ollama and OpenAI) and added a function to select the desired backend. Default backend is set to OpenAI.
2024-07-16 22:42:22 -04:00
be07e673f9 Update gptel-commit-message prompt 2024-07-16 14:23:02 -04:00
bcb8d468a6 Add function to generate commit messages with gptel 2024-07-15 16:16:11 -04:00
e0f367faad Add gptel-quick 2024-07-03 16:09:55 -04:00
893a673616 Add gptel 2024-07-03 15:21:34 -04:00
f8c3f76cbd Add ollama-copilot-mode to switch to local LLM for copilot 2024-06-28 13:21:47 -04:00
5169285be0 Add comfy-ui command 2024-06-05 13:13:57 -04:00