From 471440eb79ba24400b021ae35988f1565db6178c Mon Sep 17 00:00:00 2001 From: siyoon Date: Sat, 22 Aug 2026 12:47:13 +0900 Subject: [PATCH] fix(friendli): emit explicit False for removed reasoning-effort flags Greptile P1: _effort_flags only wrote True for enabled levels, so sync_local_data_with_remote's merge left stale True flags when Friendli dropped an effort level from reasoning_options. --- .github/scripts/auto_update_price_and_context_window_file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/auto_update_price_and_context_window_file.py b/.github/scripts/auto_update_price_and_context_window_file.py index 6d197aadb78..523ec148fc6 100644 --- a/.github/scripts/auto_update_price_and_context_window_file.py +++ b/.github/scripts/auto_update_price_and_context_window_file.py @@ -73,7 +73,7 @@ def _find_base_model_entry(base_model: str, local_data: dict) -> Optional[str]: def _effort_flags(reasoning_options: list) -> dict: - flags: dict[str, bool] = {} + flags: dict[str, bool] = {flag: False for flag in EFFORT_FLAG_MAP.values()} for opt in reasoning_options or []: if opt.get("type") == "effort": for val in opt.get("values", []):