diff --git a/app/components/chat.tsx b/app/components/chat.tsx index ace404c10..40e02cb57 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -611,7 +611,7 @@ export function ChatActions(props: { if (providerName == "ByteDance") { const selectedModel = models.find( (m) => - m.name == model && m?.provider.providerName == providerName, + m.name == model && m?.provider?.providerName == providerName, ); showToast(selectedModel?.displayName ?? ""); } else {