mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-06-21 07:19:42 +08:00
Compare commits
No commits in common. "8f84fdee942011e1d1e0d3319d2a6bc3cee118a8" and "c01e0192867a59f093b2e493b739bb234d4d910c" have entirely different histories.
8f84fdee94
...
c01e019286
@ -121,8 +121,6 @@ class MinimaxVideoGenerationResponse(BaseModel):
|
||||
|
||||
|
||||
class MiniMaxChatModel(str, Enum):
|
||||
M2_7 = 'MiniMax-M2.7'
|
||||
M2_7_highspeed = 'MiniMax-M2.7-highspeed'
|
||||
M2_5 = 'MiniMax-M2.5'
|
||||
M2_5_highspeed = 'MiniMax-M2.5-highspeed'
|
||||
|
||||
|
||||
@ -452,7 +452,7 @@ class MinimaxChatNode(IO.ComfyNode):
|
||||
node_id="MinimaxChatNode",
|
||||
display_name="MiniMax Chat",
|
||||
category="api node/text/MiniMax",
|
||||
description="Generate text responses using MiniMax language models (MiniMax-M2.7).",
|
||||
description="Generate text responses using MiniMax language models (MiniMax-M2.5).",
|
||||
inputs=[
|
||||
IO.String.Input(
|
||||
"prompt",
|
||||
@ -463,7 +463,7 @@ class MinimaxChatNode(IO.ComfyNode):
|
||||
IO.Combo.Input(
|
||||
"model",
|
||||
options=MiniMaxChatModel,
|
||||
default=MiniMaxChatModel.M2_7.value,
|
||||
default=MiniMaxChatModel.M2_5.value,
|
||||
tooltip="The MiniMax model to use for text generation.",
|
||||
),
|
||||
IO.String.Input(
|
||||
@ -524,7 +524,7 @@ class MinimaxChatNode(IO.ComfyNode):
|
||||
async def execute(
|
||||
cls,
|
||||
prompt: str,
|
||||
model: str = MiniMaxChatModel.M2_7.value,
|
||||
model: str = MiniMaxChatModel.M2_5.value,
|
||||
system_prompt: Optional[str] = None,
|
||||
max_tokens: int = 4096,
|
||||
temperature: float = 0.7,
|
||||
|
||||
@ -1,27 +0,0 @@
|
||||
import pytest
|
||||
from comfy_api_nodes.apis.minimax import MiniMaxChatModel
|
||||
|
||||
|
||||
class TestMiniMaxChatModel:
|
||||
def test_m27_in_model_list(self):
|
||||
"""MiniMax-M2.7 should be available in the chat model enum."""
|
||||
assert MiniMaxChatModel.M2_7.value == 'MiniMax-M2.7'
|
||||
|
||||
def test_m27_highspeed_in_model_list(self):
|
||||
"""MiniMax-M2.7-highspeed should be available in the chat model enum."""
|
||||
assert MiniMaxChatModel.M2_7_highspeed.value == 'MiniMax-M2.7-highspeed'
|
||||
|
||||
def test_m27_is_first_in_enum(self):
|
||||
"""M2.7 should appear before older models in the enum."""
|
||||
members = list(MiniMaxChatModel)
|
||||
assert members[0] == MiniMaxChatModel.M2_7
|
||||
assert members[1] == MiniMaxChatModel.M2_7_highspeed
|
||||
|
||||
def test_legacy_models_still_available(self):
|
||||
"""Previous M2.5 models should still be available."""
|
||||
assert MiniMaxChatModel.M2_5.value == 'MiniMax-M2.5'
|
||||
assert MiniMaxChatModel.M2_5_highspeed.value == 'MiniMax-M2.5-highspeed'
|
||||
|
||||
def test_total_model_count(self):
|
||||
"""Should have 4 chat models total (M2.7, M2.7-highspeed, M2.5, M2.5-highspeed)."""
|
||||
assert len(MiniMaxChatModel) == 4
|
||||
Loading…
Reference in New Issue
Block a user