mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-09-20 01:55:38 +00:00
gpt-4o-mini's official context window is 128,000 tokens (OpenAI announcement and API docs; litellm's model database agrees), but the shared LLM_CONTEXT_WINDOW_SIZES table and the OpenAI/Azure provider-local tables listed 200000 - apparently copied from the neighboring o3-mini / o4-mini entries. With CONTEXT_WINDOW_USAGE_RATIO = 0.85, crews resolved the usable window to 170000 instead of 108800, letting history grow past the model's real 128k limit and failing with API 400s on long runs. Fixes #7293