Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions dev/breeze/src/airflow_breeze/global_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,17 @@ def get_allowed_llm_models() -> list[str]:

Checks .build/llm_models_cache.json for a cached model list (refreshed at most
every 24 hours). Falls back to the hardcoded _FALLBACK_LLM_MODELS.
When generating command images for documentation, always uses the hardcoded
fallback list to ensure deterministic output.
"""
import json
import time

from airflow_breeze.utils.recording import generating_command_images

if generating_command_images():
return list(_FALLBACK_LLM_MODELS)

try:
from airflow_breeze.utils.path_utils import BUILD_CACHE_PATH

Expand Down
Loading