ui: use server modalities in non-router mode (#24874)

This commit is contained in:
Josh Leverette 2026-07-10 08:03:52 -05:00 committed by GitHub
parent a935fbffe1
commit 9f623c683d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -145,6 +145,10 @@ class ModelsStore {
*/
getModelModalities(modelId: string): ModelModalities | null {
if (!isRouterMode() && serverStore.props?.modalities) {
return this.buildModalities(serverStore.props.modalities);
}
const model = this.models.find((m) => m.model === modelId || m.id === modelId);
if (model?.modalities) {
return model.modalities;