Skip to content

Commit c2c2030

Browse files
committed
server : (webui) rename has_multimodal --> modalities
1 parent 15e0328 commit c2c2030

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

tools/server/public/index.html.gz

9 Bytes
Binary file not shown.

tools/server/webui/src/components/useChatExtraContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export function useChatExtraContext(): ChatExtraContextApi {
3838
}
3939

4040
if (mimeType.startsWith('image/') && mimeType !== 'image/svg+xml') {
41-
if (!serverProps?.has_multimodal) {
41+
if (!serverProps?.modalities?.vision) {
4242
toast.error('Multimodal is not supported by this server or model.');
4343
break;
4444
}

tools/server/webui/src/utils/types.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ export interface LlamaCppServerProps {
118118
build_info: string;
119119
model_path: string;
120120
n_ctx: number;
121-
has_multimodal: boolean;
121+
modalities?: {
122+
vision: boolean;
123+
};
122124
// TODO: support params
123125
}

0 commit comments

Comments
 (0)