From 934b5cb7b56f417b05a73ff4e892e59a9a05dadc Mon Sep 17 00:00:00 2001 From: Sirshendu Ganguly Date: Mon, 11 May 2026 13:39:11 +0530 Subject: [PATCH] Add support for Additional Models --- clientlibs/utils.js | 4 ++++ modules/audioInference.py | 12 ++++++------ modules/audioModelSearch.py | 1 + modules/textModelSearch.py | 4 ++++ 4 files changed, 15 insertions(+), 6 deletions(-) diff --git a/clientlibs/utils.js b/clientlibs/utils.js index a1fb0e8..e0bf962 100644 --- a/clientlibs/utils.js +++ b/clientlibs/utils.js @@ -3280,6 +3280,9 @@ function textModelSearchFilterHandler(textModelSearchNode) { "Google": [ "google:gemini@3-flash (Gemini 3 Flash)", ], + "MoonshotAI": [ + "moonshotai:kimi@k2.6 (Kimi K2.6)", + ], "Zai": [ "zai-glm-5-1 (ZAI GLM 5.1)", ], @@ -3352,6 +3355,7 @@ function audioModelSearchFilterHandler(audioModelSearchNode) { "minimax:music@2.6 (MiniMax Music 2.6)", ], "Inworld": [ + "inworld:tts@2 (Inworld Realtime TTS 2)", "inworld:tts@1.5-mini (Inworld TTS-1.5 Mini)", "inworld:tts@1.5-max (Inworld TTS-1.5 Max)", ], diff --git a/modules/audioInference.py b/modules/audioInference.py index 4d06d2a..666d981 100644 --- a/modules/audioInference.py +++ b/modules/audioInference.py @@ -51,17 +51,17 @@ class RunwareAudioInference: "default": False, "tooltip": "Enable/disable sampleRate parameter in API request" }), - "sampleRate": ([8000, 16000, 22050, 24000, 32000, 44100], { + "sampleRate": ([8000, 16000, 22050, 24000, 32000, 44100, 48000], { "default": 32000, - "tooltip": "Audio sample rate in Hz. Supported: 8000, 16000, 22050, 24000, 32000, 44100." + "tooltip": "Audio sample rate in Hz. Supported: 8000, 16000, 22050, 24000, 32000, 44100, 48000.", }), "useBitrate": ("BOOLEAN", { "default": False, - "tooltip": "Enable/disable bitrate parameter in API request (MP3 only)" + "tooltip": "Enable/disable bitrate parameter in API request" }), - "bitrate": ([32, 64, 128, 256], { + "bitrate": ([16, 32, 64, 128, 256], { "default": 128, - "tooltip": "Audio bitrate in kbps. Allowed: 32, 64, 128, 256. Only applies to MP3 format." + "tooltip": "Audio bitrate in kbps. Allowed: 16, 32, 64, 128, 256. Applies to compressed formats (e.g. MP3, OGG).", }), "useChannels": ("BOOLEAN", { "default": False, @@ -323,7 +323,7 @@ class RunwareAudioInference: audioSettings["sampleRate"] = int(params["sampleRate"]) if params["useBitrate"]: _br = int(params["bitrate"]) - _allowed_bitrates = (32, 64, 128, 256) + _allowed_bitrates = (16, 32, 64, 128, 256) audioSettings["bitrate"] = _br if _br in _allowed_bitrates else min(_allowed_bitrates, key=lambda x: abs(x - _br)) if params["useChannels"]: audioSettings["channels"] = params["channels"] diff --git a/modules/audioModelSearch.py b/modules/audioModelSearch.py index 5a18887..290432a 100644 --- a/modules/audioModelSearch.py +++ b/modules/audioModelSearch.py @@ -37,6 +37,7 @@ class RunwareAudioModelSearch: "minimax:music@2.6 (MiniMax Music 2.6)", ], "Inworld": [ + "inworld:tts@2 (Inworld Realtime TTS 2)", "inworld:tts@1.5-mini (Inworld TTS-1.5 Mini)", "inworld:tts@1.5-max (Inworld TTS-1.5 Max)", ], diff --git a/modules/textModelSearch.py b/modules/textModelSearch.py index e66a3d0..53b38cb 100644 --- a/modules/textModelSearch.py +++ b/modules/textModelSearch.py @@ -21,6 +21,9 @@ class RunwareTextModelSearch: "Google": [ "google:gemini@3-flash (Gemini 3 Flash)", ], + "MoonshotAI": [ + "moonshotai:kimi@k2.6 (Kimi K2.6)", + ], "Zai": [ "zai-glm-5-1 (ZAI GLM 5.1)", ], @@ -31,6 +34,7 @@ class RunwareTextModelSearch: "Anthropic", "Google", "MiniMax", + "MoonshotAI", "OpenAI", "Zai", ]