Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
Assert the response-model label where it now lives, in the locale file (#7874)
Daniel Han7471fcd4033a
diff --git a/tests/studio/test_chat_response_details_ui_contract.py b/tests/studio/test_chat_response_details_ui_contract.pyindex aa1a5cd9657..037bb450da3 100644--- a/tests/studio/test_chat_response_details_ui_contract.py+++ b/tests/studio/test_chat_response_details_ui_contract.py@@ -17,6 +17,7 @@ REASONING_TSX = REPO / "studio/frontend/src/components/assistant-ui/reasoning.tsADAPTER_TS = REPO / "studio/frontend/src/features/chat/api/chat-adapter.ts"CHAT_PREFS_TS = REPO / "studio/frontend/src/features/chat/stores/chat-preferences-store.ts"CHAT_TAB_TSX = REPO / "studio/frontend/src/features/settings/tabs/chat-tab.tsx"+EN_LOCALE_TS = REPO / "studio/frontend/src/i18n/locales/en.ts"def test_assistant_more_menu_exposes_response_details_action():@@ -53,7 +54,9 @@ def test_response_model_badge_is_user_configurable_and_rendered_once_per_messageassert "showResponseModel: boolean" in prefs_srcassert "showResponseModel: false" in prefs_srcassert "showResponseModel: saved?.showResponseModel ?? false" in prefs_src- assert "Show response model" in chat_tab_src+ # The visible label lives in the locale file; the tab holds only the key that resolves to it.+ assert 'showResponseModel: "Show response model"' in EN_LOCALE_TS.read_text(encoding = "utf-8")+ assert 't("settings.chat.showResponseModel")' in chat_tab_srcassert "setShowResponseModel" in chat_tab_srcdetails_src = DETAILS_TSX.read_text(encoding = "utf-8")assert (