mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2026-05-14 21:14:10 +00:00
notify the user from server ui that multimodality is unavialable
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -406,6 +406,10 @@
|
||||
} else {
|
||||
currentMessages.push(data);
|
||||
slot_id = data.slot_id;
|
||||
if(selected_image && !data.multimodal) {
|
||||
alert("The server was no compiled for multimodal or the model projector can't be loaded.");
|
||||
return;
|
||||
}
|
||||
transcriptUpdate([...history, [char, currentMessages]])
|
||||
}
|
||||
|
||||
@@ -524,7 +528,7 @@
|
||||
</div>
|
||||
<div class="right">
|
||||
<button type="submit" disabled=${generating.value}>Send</button>
|
||||
<button onclick=${uploadImage} style="margin-left: 10px;margin-right: 10px;">Upload Image</button>
|
||||
<button onclick=${uploadImage}>Upload Image</button>
|
||||
<button onclick=${stop} disabled=${!generating.value}>Stop</button>
|
||||
<button onclick=${reset}>Reset</button>
|
||||
</div>
|
||||
|
||||
@@ -1669,7 +1669,12 @@ static json format_partial_response(
|
||||
json res = json{
|
||||
{"content", content },
|
||||
{"stop", false},
|
||||
{ "slot_id", slot->id }
|
||||
{ "slot_id", slot->id },
|
||||
#ifdef SERVER_MULTIMODAL_SUPPORT
|
||||
{"multimodal", llama.multimodal }
|
||||
#else
|
||||
{"multimodal", false }
|
||||
#endif
|
||||
};
|
||||
|
||||
if (slot->sparams.n_probs > 0)
|
||||
|
||||
Reference in New Issue
Block a user