// Management Β· RimWorld Mod

RimAI Framework

πŸ€– RimAI Framework - AI-Powered RimWorld Experience πŸ”§ Core Framework Module The RimAI Framework is the foundational core of the entire RimAI ecosystem.

πŸ€– RimAI Framework - AI-Powered RimWorld Experience

πŸ”§ Core Framework Module

The RimAI Framework is the foundational core of the entire RimAI ecosystem. It is a dependency that handles all communication with Large Language Models (LLMs) and provides a comprehensive API for other content mods. Github (Open Source):github.com/oidahdsah0/Rimworld_AI_Framework

⚑ V4.1 Key Features

  • πŸ”Œ Data-Driven: Connect to any AI provider (OpenAI, Ollama, Groq, etc.) via simple JSON templates.
  • πŸ”„ End-to-End Streaming: A fully-featured streaming API for real-time, word-by-word responses.
  • ✨ First-Class Embedding Support: High-performance API for complex semantic understanding and memory functions.
  • πŸ“Š Advanced Batching: Optimized concurrent requests for chat and embeddings to maximize throughput.
  • 🏠 Full support for local OpenAI-compatible APIs (Ollama, vLLM, etc.)

πŸ”‘ IMPORTANT: Setup Required Before Use

⚠️ You MUST configure the mod settings before use! ⚠️ Step-by-Step Setup Guide:
  1. Enable the mod and restart RimWorld.
  2. Go to Settings β†’ Mod Settings β†’ RimAI Framework.
  3. Fill in the required fields:
    • API Key: Your key for services like OpenAI. (Leave empty for local providers like Ollama).
    • Endpoint URL: The base URL for the API. This is usually pre-filled for you. Only change it if you have a specific need or the official URL changes. (e.g., `https://api.openai.com/v1` for OpenAI, `http://localhost:11434/v1` for local Ollama).
    • Model Name: The exact model name (e.g., `gpt-4o-mini`, `llama3`).
  4. Use the Test Connection button to verify your settings.
  5. Save your configuration. You're ready to go!
πŸ’‘ Quick Start Recommendations:
  • Free option: Install Ollama locally with a model like `llama3`.
  • Budget option: Use OpenAI's `gpt-4o-mini` model (very affordable, ~$0.15 per 1M tokens).

πŸ’° Important Cost Notice

⚠️ Token costs are paid directly to your AI service provider, NOT to the mod author! ⚠️ The mod author receives no payment from your API usage. Local models like Ollama are free to run after initial setup.

πŸ“‹ Important Notice

This framework itself does not add any gameplay content but is a required dependency for all other RimAI modules.

🎯 Supported Versions

βœ… RimWorld 1.5 βœ… RimWorld 1.6

πŸ›‘οΈ Open Source & Security

This project is completely open-source. You can review the source code, contribute, and report issues on our GitHub repository: github.com/oidahdsah0/Rimworld_AI_Framework πŸ”₯ If you enjoy this project, please give it a thumbs-up πŸ‘ and follow βž• for updates on more RimAI modules!