Skip to content

Latest commit

 

History

History
130 lines (94 loc) · 7.12 KB

File metadata and controls

130 lines (94 loc) · 7.12 KB


💾 About The Project

Screenshot may be slightly outdated. Sorry in advance! :)


Opti-Link Instant Messenger: An AI Chat Client for LM Studio (v0.8.6.0)

Opti-Link Instant Messenger (v0.8.6.0) is a custom PowerShell GUI application built using Windows Forms (.NET WinForms) designed to provide an interactive chat client experience primarily for AI models hosted by LM Studio. This version laid critical groundwork for advanced features, focusing on robust LM Studio integration, a themed user interface, and comprehensive logging.

It empowers users to communicate with various AI personalities, configure model parameters, manage chat history, and customize their interface with a thematic design, including a custom menu renderer.

Built by: EliteSoftware Enterprises / Zachary Whiteman / Google Gemini Ai

(back to top)

🔰 Getting Started

This application is a single PowerShell script and does not require a complex installation process.

🕰️ Prerequisites

To run this script, you only need:

  • Windows Operating System (Windows 7 or later).
  • PowerShell 5.1 or newer (PowerShell Core is supported, but the script is optimized for the full .NET Framework available in Windows PowerShell for WinForms).
  • The required .NET Framework assemblies (System.Windows.Forms, System.Drawing, System.IO.Compression.FileSystem) which are included with modern Windows installations and loaded automatically by the script.
  • For LM Studio Integration: LM Studio application running a local server.

💽 Installation & Execution

  1. Download: Download the v0.8.6.0 OptiLink Instant Messenger.PS1 script file.
  2. Unblock: Right-click the file, go to Properties, and click Unblock if the file was downloaded from the internet.
  3. Run: Execute the script from a PowerShell console or by double-clicking it (if your system is configured to run PS1 files).
    .\v0.8.6.0 OptiLink Instant Messenger.PS1

The application's configuration files (settings.json, icons, logs) are stored in: [Script Directory]\OptiLink_Config

(back to top)

🚀 Usage

Opti-Link Instant Messenger provides a tabbed interface for managing your AI chat experience:

  • Chat Tab: Your primary chat interface. Type your prompts and view AI responses in chat bubbles.
  • Connection Tab: Configure your LM Studio server URL and port, and fetch loaded models.
  • Model Parameters Tab: Adjust AI behavior with settings like Temperature, System Prompt (personas), GPU Offload, and Context Length.
  • Templates Tab: Manage additional stop strings and set response length limits.
  • Models Tab: Fetch and display a list of downloaded LM Studio models.

Key Interactions:

  • Sending Messages: Use the "Send" button or your configured hotkey (Enter, Ctrl+Enter, or Shift+Enter).
  • Settings (File > Settings): Customize application icon, send message hotkey, and backend preference (LM Studio is primary in this version).
  • Changelog (Help > Changelog): View application version history.
  • Minimize to Tray: Minimize the application window to send it to the system tray. Double-click the tray icon to restore.

(back to top)

✨ Key Features

  • LM Studio Integration: Seamlessly connects and interacts with LM Studio's HTTP API for chat completions.
  • Interactive Chat Bubbles: WebBrowser control-based chat interface with dynamic HTML/CSS styling for clear conversation flow.
  • Comprehensive Settings: Persistent configuration for connection details, model parameters, and UI preferences.
  • Model Parameter Tuning: Fine-tune AI responses with configurable Temperature, System Prompts (personas), GPU Offload layers, and Context Length.
  • Prompt Templating: Define custom stop strings to control AI output and set maximum response token limits.
  • LM Studio Model Management: Fetches and displays loaded models from your LM Studio server.
  • Themed GUI: Features a distinct Teal theme with custom menu rendering.
  • System Tray Integration: Minimize the application to the system tray for discreet background operation.
  • Robust Logging: Comprehensive logging system with automatic archiving of logs and detailed error reports, aiding in diagnostics.
  • Customizable Icon: Set a custom application icon for personalization.
  • Portable Configuration: Stores all settings and logs adjacent to the script in OptiLink_Config for easy portability.

(back to top)

🛠️ Technology Stack

The entire application is a self-contained PowerShell script, utilizing:

  • Scripting Language: PowerShell (5.1+)
  • GUI Framework: .NET Windows Forms (WinForms)
  • Chat Rendering: System.Windows.Forms.WebBrowser for rich HTML/CSS chat bubbles.
  • AI Backend Integration: Invoke-RestMethod for communication with LM Studio's HTTP API.
  • File Management & Archiving: System.IO.Compression.FileSystem and PowerShell native commands for dependency handling.
  • Persistence: JSON-based configuration files (settings.json).
  • Dynamic UI: Custom ToolStripProfessionalRenderer for themed menu bars.

(back to top)

📐 Architecture & Security Notes

Opti-Link Instant Messenger (v0.8.6.0) is primarily a client-side application designed to interact with locally-hosted AI models via LM Studio.

  • Local-First Operation: The application prioritizes local execution and interaction. LM Studio connections are typically to localhost.
  • PowerShell Scripting: The application is written entirely in PowerShell, leveraging its capabilities for GUI development and system interaction.
  • Configuration Storage: All application settings are stored locally in JSON files within the OptiLink_Config directory, adjacent to the script. No external cloud services are used for configuration.
  • No Telemetry: The application does not collect or transmit any user data or telemetry.

(back to top)

🪪 License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

☎️ Contact

Zach Whiteman - elitesoftwarecolimited@gmail.com

HuggingFace - https://huggingface.co/EliteSoftware

HuggingFace (Personal) - https://huggingface.co/TheShadyRainbow

LinkTree - https://linktr.ee/zachrainbow

Patreon - https://www.patreon.com/c/EliteSoftwareCo

(back to top)