fix: auto-open model-selector when model is not found (#448)

Change the check from checking if the model has been deprecated to check
if the model_not_found


https://github.com/user-attachments/assets/ad0f7daf-5eb4-4e4b-89e5-04240044c64f
This commit is contained in:
Abdelrhman Kamal Mahmoud Ali Slim
2025-04-20 23:56:20 -07:00
committed by GitHub
parent ee3a9bc14b
commit 655564f25d

View File

@@ -117,7 +117,7 @@ function TerminalChatResponseMessage({
const systemMessage = message.content.find(
(c) => c.type === "input_text",
)?.text;
if (systemMessage?.includes("has been deprecated")) {
if (systemMessage?.includes("model_not_found")) {
setOverlayMode?.("model");
}
}