# chocolatelmlite | Segment (gpsnmeajp) | Knowledge Base | Instagit

「日本語話者が簡単に始められるAPI利用LLM」Chocolate LM Liteは、セルフホスト型のAIチャットアプリケーションです

GitHub Stars: 4

Repository: https://github.com/gpsnmeajp/chocolatelmlite

---

## Articles

### [How to Configure Custom HTTP Headers for LLM Requests in ChocolateLMLite](/gpsnmeajp/chocolatelmlite/how-to-configure-custom-http-headers-for-llm-requests-in-chocolatelite)

Learn to configure custom HTTP headers for LLM requests in ChocolateLMLite by extending OpenRouterHttpHandler. Inject headers easily from global settings for seamless API integration.

- Tags: how-to-guide
- Published: 2026-03-02

### [How ChocolateLMLite Uses WebSocket Broadcasting for Real-Time Updates](/gpsnmeajp/chocolatelmlite/how-does-chocolatelite-use-websocket-broadcasting-for-real-time-updates)

Discover how ChocolateLMLite leverages WebSocket broadcasting with a static Broadcaster façade for seamless real-time UI updates. Learn about JSON message propagation to connected clients.

- Tags: how-to-guide
- Published: 2026-03-02

### [How FileManager.cs Manages Settings and Data Files in ChocolateLM Lite](/gpsnmeajp/chocolatelmlite/how-does-filemanager-cs-manage-settings-and-data-files)

Discover how FileManager.cs in ChocolateLM Lite manages settings and data files. Learn about its role in handling global config, per-persona directories, and thread-safe data operations.

- Tags: internals
- Published: 2026-03-02

### [How SQLiteDB.cs in ChocolateLMLite Handles Conversation Data Persistence](/gpsnmeajp/chocolatelmlite/how-is-data-persisted-using-sqlitedb-cs-in-chocolatelite)

Discover how ChocolateLMLite uses SQLiteDB.cs for reliable conversation data persistence with thread-safe upserts and atomic transactions, ensuring your chat history is always saved.

- Tags: internals
- Published: 2026-03-02

### [How WebServer.cs Works in ChocolateLMLite: ASP.NET Core HTTP and WebSocket Server](/gpsnmeajp/chocolatelmlite/how-does-webserver-cs-component-work-in-chocolatelite)

Discover how WebServer.cs in ChocolateLMLite leverages ASP.NET Core Kestrel for HTTP and WebSocket servers. Explore static files, persona API, and real-time communication.

- Tags: internals
- Published: 2026-03-02

### [How LLM.cs Handles LLM Provider Communication in ChocolateLMLite](/gpsnmeajp/chocolatelmlite/how-does-llm-cs-handle-llm-provider-communication)

Discover how LLM.cs in ChocolateLMLite manages LLM provider communication via a custom HTTP pipeline, streamed responses, and automatic tool calls.

- Tags: internals
- Published: 2026-03-02

### [What Is the Role of Program.cs in ChocolateLMLite? The Complete Entry Point Guide](/gpsnmeajp/chocolatelmlite/what-is-role-of-program-cs-in-chocolatelite)

Discover the core role of Program.cs in ChocolateLMLite. Learn how this entry point bootstraps the runtime, configures dependencies, and orchestrates services for a smooth application startup and shutdown.

- Tags: explanation
- Published: 2026-03-02

### [How to Check for Auto-Updates in ChocolateLMLite: Complete Configuration Guide](/gpsnmeajp/chocolatelmlite/how-to-check-for-auto-updates-in-chocolatelite)

Learn how to check for auto-updates in ChocolateLMLite. Discover its automatic update process and configuration options for seamless software management.

- Tags: how-to-guide
- Published: 2026-03-02

### [How to Extend ChocolateLMLite with External Tools Using MCP](/gpsnmeajp/chocolatelmlite/how-to-extend-chocolatelite-with-external-tools-using-mcp)

Extend ChocolateLMLite with external tools via MCP. Enable EnableMcpTools, configure mcp.json with your servers, and automatically register external tools.

- Tags: how-to-guide
- Published: 2026-03-02

### [Understanding the Model Context Protocol (MCP) in ChocolateLMLite](/gpsnmeajp/chocolatelmlite/what-is-model-context-protocol-mcp-in-chocolatelite)

Discover the Model Context Protocol MCP in ChocolateLMLite. Learn how this integration layer allows LLMs to dynamically discover and invoke external tools via JSON-RPC at runtime.

- Tags: deep-dive
- Published: 2026-03-02

### [How to Perform Image Generation with Multimodal LLMs in ChocolateLMLite](/gpsnmeajp/chocolatelmlite/how-to-perform-image-generation-with-multimodal-llms-in-chocolatelite)

Learn to perform image generation with multimodal LLMs in ChocolateLMLite. Discover how the generate image tool validates requests, calls LLM endpoints, and saves images as persona attachments.

- Tags: how-to-guide
- Published: 2026-03-02

### [Timer Functionality for Autonomous Speech in ChocolateLMLite: Complete Implementation Guide](/gpsnmeajp/chocolatelmlite/what-is-timer-functionality-for-autonomous-speech-in-chocolatelite)

Implement timer functionality for autonomous speech in ChocolateLMLite. This guide explains how the background timer generates AI speech automatically by injecting system messages. Learn how to enable timer generation.

- Tags: how-to-guide
- Published: 2026-03-02

### [How to Set Up Discord Integration with ChocolateLMLite Webhooks](/gpsnmeajp/chocolatelmlite/how-to-set-up-discord-integration-with-chocolatelite-webhooks)

Easily integrate ChocolateLMLite with Discord webhooks. Learn to configure webhook URLs and JSON payloads to send LLM responses directly to your Discord server.

- Tags: how-to-guide
- Published: 2026-03-02

### [How to Manage Project Folders in ChocolateLMLite: A Complete Developer Guide](/gpsnmeajp/chocolatelmlite/how-to-manage-project-folders-in-chocolatelite)

Learn to manage project folders in ChocolateLMLite. Discover how the FileManager class safely creates reads and enumerates workspace files in isolated data directories.

- Tags: how-to-guide
- Published: 2026-03-02

### [How to Use the JavaScript Sandbox for Calculations in ChocolateLMLite](/gpsnmeajp/chocolatelmlite/how-to-use-javascript-sandbox-for-calculations-in-chocolatelite)

Learn to use the JavaScript sandbox in ChocolateLMLite for secure AI calculations with the Jint engine. Execute arbitrary code with resource limits and get direct chat results.

- Tags: how-to-guide
- Published: 2026-03-02

### [How ChocolateLMLite Memory Functionality Works for Long Conversations](/gpsnmeajp/chocolatelmlite/how-does-memory-functionality-work-for-long-conversations-in-chocolatelite)

Explore how ChocolateLMLite's memory functionality enhances long conversations. Discover its persistent per-persona fact storage and LLM prompt injection for seamless interactions. Learn more.

- Tags: internals
- Published: 2026-03-02

### [ChocolateLMLite Conversation Statistics: A Complete Guide to TalkStats](/gpsnmeajp/chocolatelmlite/what-conversation-statistics-are-available-in-chocolatelite)

Explore ChocolateLMLite conversation statistics with TalkStats. Discover total messages, archived history, token counts, and more with this comprehensive guide.

- Tags: tutorial
- Published: 2026-03-02

### [How to Use Virtual Scrolling for Long Conversations in ChocolateLMLite](/gpsnmeajp/chocolatelmlite/how-to-use-virtual-scrolling-for-long-conversations-in-chocolatelite)

Discover how ChocolateLMLite uses virtual scrolling for long conversations. Learn how it efficiently renders messages and fetches history dynamically for a smooth user experience.

- Tags: how-to-guide
- Published: 2026-03-02

### [How Automatic Context Cutoff Works in ChocolateLMLite: Token and Time-Based Trimming](/gpsnmeajp/chocolatelmlite/how-does-automatic-context-cutoff-work-in-chocolatelite)

Discover how ChocolateLMLite automatically cuts off context with token and time-based trimming before each LLM request. Optimize your conversation history efficiently.

- Tags: internals
- Published: 2026-03-02

### [Understanding System Prompts in ChocolateLMLite: Implementation and Usage](/gpsnmeajp/chocolatelmlite/what-are-system-prompts-in-chocolatelite)

Learn what system prompts are in ChocolateLMLite. Discover how they combine text files, settings, and dynamic context to define AI behavior and personality for your chats.

- Tags: deep-dive
- Published: 2026-03-02

### [How ChocolateLMLite Manages Conversation Personas: File-Based Isolation and Runtime Switching](/gpsnmeajp/chocolatelmlite/how-does-chocolatelite-manage-conversation-personas)

Discover how ChocolateLMLite manages conversation personas with file-based isolation and runtime switching. Explore self-contained state bundles and instant identity changes for distinct talk histories and model configurations.

- Tags: internals
- Published: 2026-03-02

### [How to Configure LLM API Keys in ChocolateLMLite: A Complete Guide](/gpsnmeajp/chocolatelmlite/how-to-configure-llm-api-keys-in-chocolatelite)

Seamlessly configure LLM API keys in ChocolateLMLite. Learn to manage your credentials securely in the global settings file for smooth API integration. Get started now.

- Tags: how-to-guide
- Published: 2026-03-02

### [What LLM Providers Are Supported by ChocolateLMLite? Complete List & Configuration Guide](/gpsnmeajp/chocolatelmlite/what-llm-providers-are-supported-by-chocolatelite)

Discover supported LLM providers for ChocolateLMLite. Explore integrations for OpenAI compatible APIs like Ollama, LM Studio, Google Gemini and more. Get your config guide now.

- Tags: api-reference
- Published: 2026-03-02

### [How to Set Up ChocolateLMLite: Complete Installation and Configuration Guide](/gpsnmeajp/chocolatelmlite/how-to-set-up-chocolatelite)

Install and configure ChocolateLMLite a self-hosted C# .NET 8 AI chat app. Learn how to set up ChocolateLMLite for real-time conversation management with this comprehensive guide.

- Tags: how-to-guide
- Published: 2026-03-02

