contiai / apps /api /app /__init__.py
aliabozahra315's picture
Claude Opus 5.5
Deploy faa8a28: style-variety standard for writers and planners; bundled LLM price map
e4fd4b9
Raw History Blame Contribute Delete
507 Bytes
"""ContiAI API.
litellm prices every call from a model price map it downloads from GitHub
when it is first imported. On 2026-10-11 that download stopped listing
`openrouter/openai/gpt-4.1-mini` and `gpt-oss-120b:nitro`, so models the agents
use could no longer be priced (test_llm_meter failed with no code change).
The map bundled with the pinned litellm version is used instead: the price
then changes only when the pin does.
"""
import os
os.environ.setdefault("LITELLM_LOCAL_MODEL_COST_MAP", "True")