Skip to content

Introduce Comprehensive AI Chat and Contextual Interaction Features#71

Open
shitover wants to merge 43 commits intokleneway:mainfrom
shitover:feature/send-prompt
Open

Introduce Comprehensive AI Chat and Contextual Interaction Features#71
shitover wants to merge 43 commits intokleneway:mainfrom
shitover:feature/send-prompt

Conversation

@shitover
Copy link
Contributor

Screencast.from.2025-05-31.16-43-34.mp4

"Chat About This File"

Screencast.from.2025-05-31.16-44-03.mp4

"Send to AI" - Full Context Submission

Screencast.from.2025-05-31.16-47-03.mp4

This pull request introduces a major enhancement to PasteMax by integrating a suite of AI-powered features. These tools aim to provide users with advanced capabilities for code analysis, generation, and contextual understanding through seamless interaction with various Large Language Models (LLMs).

Key Features Implemented:

  • Core AI Chat (ChatView.tsx, electron/llmService.js, App.tsx):
  • A central chat interface for real-time conversations with LLMs.
  • Supports multiple providers (OpenRouter, Mistral, Gemini, Groq) via a backend service.
  • Manages message history, loading states, and errors within the active session.
  • Persistent Chat History & Session Management (App.tsx, ChatView.tsx Sidebar):
  • Chat conversations (ChatSession objects) are saved to localStorage and persist across application restarts.
  • The integrated Chat Sidebar allows users to easily view, select, create, and delete chat sessions.
  • User chats remain stored until explicitly deleted, adhering to project guidelines.
  • LLM Settings Configuration (LlmSettingsModal.tsx, electron/llmService.js):
  • A dedicated modal for users to configure API keys, base URLs, and other parameters for different LLM providers.
  • Configurations are fetched from and saved to the backend, ensuring secure storage.
  • System Prompt Editor (SystemPromptEditor.tsx, App.tsx):
  • Empowers users to create, edit, select, and delete custom system prompts to tailor AI behavior.
  • Prompts are persisted in localStorage, with default prompts available as a fallback.
  • "Send to AI" - Full Context Submission (UserInstructions.tsx, App.tsx):
  • Allows users to send the entire content of their selected files, combined with specific user instructions, directly to the AI for comprehensive processing.
  • A new chat session is created for each full context submission.
  • "Chat About This File" (FileList.tsx, App.tsx):
  • Provides a convenient way to initiate an AI chat focused on the content of a single selected file, automatically providing file context to the LLM.

Documentation:

  • A new documentation file, docs/features/ai-powered-features.md, has been added. It provides a detailed explanation of all the newly implemented AI features, their functionality, and key code changes.

shitover added 30 commits May 20, 2025 20:15
@haikalllp haikalllp requested a review from kleneway May 31, 2025 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant