// 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:- Enable the mod and restart RimWorld.
- Go to Settings β Mod Settings β RimAI Framework.
- 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`).
- Use the Test Connection button to verify your settings.
- Save your configuration. You're ready to go!
- 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).