Skip to content

Commit af94884

Browse files
committed
update props
1 parent 92b5afc commit af94884

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

koboldcpp.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3394,7 +3394,7 @@ def noscript_webui(self):
33943394

33953395
def do_GET(self):
33963396
global embedded_kailite, embedded_kcpp_docs, embedded_kcpp_sdui, embedded_kailite_gz, embedded_kcpp_docs_gz, embedded_kcpp_sdui_gz, embedded_lcpp_ui_gz
3397-
global last_req_time, start_time, cached_chat_template
3397+
global last_req_time, start_time, cached_chat_template, has_vision_support, has_audio_support
33983398
global savedata_obj, has_multiplayer, multiplayer_turn_major, multiplayer_turn_minor, multiplayer_story_data_compressed, multiplayer_dataformat, multiplayer_lastactive, maxctx, maxhordelen, friendlymodelname, lastuploadedcomfyimg, lastgeneratedcomfyimg, KcppVersion, totalgens, preloaded_story, exitcounter, currentusergenkey, friendlysdmodelname, fullsdmodelpath, password, friendlyembeddingsmodelname
33993399
self.path = self.path.rstrip('/')
34003400
response_body = None
@@ -3626,6 +3626,10 @@ def do_GET(self):
36263626
"id": 0,
36273627
"id_task": -1,
36283628
"total_slots": 1,
3629+
"modalities": {
3630+
"vision": has_vision_support,
3631+
"audio": has_audio_support
3632+
},
36293633
"model_path": "local_model.gguf",
36303634
"n_ctx": maxctx,
36313635
"default_generation_settings": {

0 commit comments

Comments
 (0)