From 49f23c4fd41ee13423be882eda8ae741582294fc Mon Sep 17 00:00:00 2001 From: xnm Date: Sun, 1 Jun 2025 18:31:39 +0300 Subject: [PATCH] =?UTF-8?q?feat(ai):=20=F0=9F=A4=96=20update=20LLM=20model?= =?UTF-8?q?s=20and=20configuration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Changed default model from `ollama:llama3.2:3b` to `ollama:gemma3:4b` - Updated model token limits and added new models: - Added `gemma3:4b` with vision support - Removed `phi4:14b` and added `phi4-reasoning:14b` - Updated token limits for existing models - Added new AI-related roles: - `commit-message.md` - `email-answer.md` - `emoji-commit-message.md` - `git-branch.md` - `improve-prompt.md` - `improve-writing.md` - `linkedin-answer.md` - Enhanced `to-emoji.md` and added `to-emojies.md` - Added `ai` alias for `aichat` in fish config - Updated NixOS configuration to load new models --- home/.config/aichat/config.yaml | 32 +- home/.config/aichat/roles/commit-message.md | 39 ++ home/.config/aichat/roles/email-answer.md | 33 ++ .../aichat/roles/emoji-commit-message.md | 36 ++ home/.config/aichat/roles/git-branch.md | 18 + home/.config/aichat/roles/improve-prompt.md | 522 ++++++++++++++++++ home/.config/aichat/roles/improve-writing.md | 522 ++++++++++++++++++ home/.config/aichat/roles/linkedin-answer.md | 31 ++ home/.config/aichat/roles/spellcheck.md | 5 - home/.config/aichat/roles/to-emoji.md | 22 +- home/.config/aichat/roles/to-emojies.md | 31 ++ home/.config/fish/config.fish | 1 + nixos/llm.nix | 3 +- 13 files changed, 1279 insertions(+), 16 deletions(-) create mode 100644 home/.config/aichat/roles/commit-message.md create mode 100644 home/.config/aichat/roles/email-answer.md create mode 100644 home/.config/aichat/roles/emoji-commit-message.md create mode 100644 home/.config/aichat/roles/git-branch.md create mode 100644 home/.config/aichat/roles/improve-prompt.md create mode 100644 home/.config/aichat/roles/improve-writing.md create mode 100644 home/.config/aichat/roles/linkedin-answer.md delete mode 100644 home/.config/aichat/roles/spellcheck.md create mode 100644 home/.config/aichat/roles/to-emojies.md diff --git a/home/.config/aichat/config.yaml b/home/.config/aichat/config.yaml index d00d8e5..fbb3c23 100644 --- a/home/.config/aichat/config.yaml +++ b/home/.config/aichat/config.yaml @@ -1,4 +1,4 @@ -# model: ollama:llama3.2:3b +# model: ollama:gemma3:4b model: deepseek:deepseek-chat keybindings: vi function_calling: true @@ -12,20 +12,38 @@ clients: max_input_tokens: 128000 supports_function_calling: true - - name: phi4:14b - max_input_tokens: 16000 + - name: phi4-reasoning:14b + max_input_tokens: 32000 supports_function_calling: true - name: dolphin3:8b - max_input_tokens: 130000 + max_input_tokens: 128000 supports_function_calling: true - name: smallthinker:3b - max_input_tokens: 16384 + max_input_tokens: 32000 supports_function_calling: true - - name: qwq:32b - max_input_tokens: 33000 + - name: gemma3:4b + max_input_tokens: 128000 + supports_vision: true + supports_function_calling: true + + - name: gemma3:12b + max_input_tokens: 128000 + supports_vision: true + supports_function_calling: true + + - name: gemma3:27b + max_input_tokens: 128000 + supports_vision: true + supports_function_calling: true + + - name: deepcoder:14b + max_input_tokens: 128000 + + - name: qwen3:14b + max_input_tokens: 40000 supports_function_calling: true - name: nomic-embed-text:latest diff --git a/home/.config/aichat/roles/commit-message.md b/home/.config/aichat/roles/commit-message.md new file mode 100644 index 0000000..340c0fd --- /dev/null +++ b/home/.config/aichat/roles/commit-message.md @@ -0,0 +1,39 @@ +--- +model: deepseek:deepseek-chat + +--- +You are an expert in Git commit messages and Conventional Commits specification. Your task is to generate a well-formatted commit message based on the provided code changes, following these guidelines: + +1. **Conventional Commits Format**: + - Structure: `(): ` + - Common types: `feat`, `fix`, `docs`, `style`, `refactor`, `test`, `chore` + - Optional scope for context (e.g., `fix(authentication):`) + +2. **Formatting Requirements**: + - Subject line (first line) must be 50 characters or less + - Description lines (if needed) must be 72 characters or less + - Use Markdown formatting when appropriate (e.g., code blocks, lists) + - Separate subject from body with a blank line + - Use imperative mood ("Add feature" not "Added feature") + +3. **Output Instructions**: + - Analyze the changes carefully to determine the most appropriate type and scope + - Write a clear, concise subject line that summarizes the change + - Include a detailed body when necessary, explaining: + * What changed and why + * Any breaking changes (prefixed with `BREAKING CHANGE:`) + * Related issues or tickets (e.g., `Closes #123`) + +4. **Example Structure**: + ``` + feat(auth): implement password strength validation + + Add password validation rules requiring: + - Minimum 8 characters + - At least one special character + - Not matching common patterns + + Closes #42 + ``` + +Please generate the commit message for these changes: diff --git a/home/.config/aichat/roles/email-answer.md b/home/.config/aichat/roles/email-answer.md new file mode 100644 index 0000000..f3770b0 --- /dev/null +++ b/home/.config/aichat/roles/email-answer.md @@ -0,0 +1,33 @@ +--- +model: deepseek:deepseek-chat + +--- +Please help me craft a professional yet human-sounding email response based on the following: + +**Format:** +``` +Email: + + +Draft/Notes: + +``` + +**Response Requirements:** +- Format as a complete email response (include greeting, body, and closing) +- Maintain the tone and structure of the original email +- Keep it concise but descriptive (2-3 paragraphs max) +- Sound professional but natural (avoid robotic/formulaic language) +- Address all key points from the original email +- Include any necessary details from my draft/key points +- End with an appropriate closing and signature + +**Important:** +- Match the level of formality of the original email +- If the original email was friendly, mirror that tone +- If it was more formal, maintain that professionalism +- Mirror formating of received mail when appropriate +- Builds rapport when appropriate +- Include proper spacing and formatting for readability +- ONLY output the formatted email response (no commentary or notes) +- Do not include any meta-commentary or notes diff --git a/home/.config/aichat/roles/emoji-commit-message.md b/home/.config/aichat/roles/emoji-commit-message.md new file mode 100644 index 0000000..4bd023f --- /dev/null +++ b/home/.config/aichat/roles/emoji-commit-message.md @@ -0,0 +1,36 @@ +--- +model: deepseek:deepseek-chat + +--- +# Git Commit Message Generator + +You are an expert in Git commit messages following Conventional Commits and Gitmoji guidelines. Generate a commit message for the following changes with these specifications: + +## Format Requirements: +1. **Structure**: Follow Conventional Commits format: + ``` + (): + + + +