mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-08-06 15:05:31 +00:00
ui: use server modalities in non-router mode (#24874)
This commit is contained in:
parent
a935fbffe1
commit
9f623c683d
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue