This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 598c9a93224 Fix LLM model list variability in generated command 
documentation (#63641)
598c9a93224 is described below

commit 598c9a932249563b3420034cd416a48815e01f7b
Author: Jarek Potiuk <[email protected]>
AuthorDate: Sun Mar 15 15:11:10 2026 +0100

    Fix LLM model list variability in generated command documentation (#63641)
    
    Use the hardcoded fallback model list when generating command images
    for documentation, following the same pattern used by --parallelism,
    --platform, and --tmp-dir parameters. This ensures the generated
    SVG help output is deterministic regardless of the local cache state.
---
 dev/breeze/src/airflow_breeze/global_constants.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/dev/breeze/src/airflow_breeze/global_constants.py 
b/dev/breeze/src/airflow_breeze/global_constants.py
index d8f272b7b0a..1a02b7a0d69 100644
--- a/dev/breeze/src/airflow_breeze/global_constants.py
+++ b/dev/breeze/src/airflow_breeze/global_constants.py
@@ -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
 

Reply via email to