module

Crig::Providers::OpenRouter

Constants

CHIRP_3 = "google/chirp-3"
CLAUDE_3_7_SONNET = "anthropic/claude-3.7-sonnet"
GEMINI_FLASH_2_0 = "google/gemini-2.0-flash-001"
GPT_4O_MINI_TRANSCRIBE = "openai/gpt-4o-mini-transcribe"
GPT_4O_MINI_TTS = "openai/gpt-4o-mini-tts-2025-12-15"
GPT_4O_TRANSCRIBE = "openai/gpt-4o-transcribe"
KOKORO_82M = "hexgrad/kokoro-82m"
OPENROUTER_API_BASE_URL = "https://openrouter.ai/api/v1"
OPENROUTER_ASSISTANT_IMAGES_SOURCE = "assistant.images"
OPENROUTER_RESPONSE_IMAGE_SOURCE_KEY = "source"
OPENROUTER_RESPONSE_ONLY_KEY = "response_only"
PERPLEXITY_SONAR_PRO = "perplexity/sonar-pro"
QWEN_QWQ_32B = "qwen/qwq-32b"
VOXTRAL_MINI_TTS = "mistralai/voxtral-mini-tts-2603"
WHISPER_1 = "openai/whisper-1"
WHISPER_LARGE_V3 = "openai/whisper-large-v3"
WHISPER_LARGE_V3_TURBO = "openai/whisper-large-v3-turbo"

Class methods

apply_prompt_caching(body : JSON::Any) : Nil
Source
openrouter_response_image?(image : Crig::Completion::Image) : Bool
Source

ameba:disable Metrics/CyclomaticComplexity

Source

Nested types