Skip to content

A curated collection of practical AI projects implementing OCR systems, RAG, AI agents, and other AI use cases.

416 B
Raw Blame
import os
from agno.models.openai.like import OpenAILike

OPENROUTER_BASE_URL = "https://openrouter.ai/api/v1"
MODEL_ID = "minimax/minimax-m2.5:free"


def get_model() -> OpenAILike:
    """Return a configured OpenAILike model instance pointed at MiniMax M2.5 via OpenRouter."""
    return OpenAILike(
        id=MODEL_ID,
        api_key=os.getenv("OPENROUTER_API_KEY"),
        base_url=OPENROUTER_BASE_URL,
    )