The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
[Partner Nodes] add Gpt 5.5 and 5.5-pro LLM models (#13673)
Alexander Piskun6917bce12812
diff --git a/comfy_api_nodes/apis/openai.py b/comfy_api_nodes/apis/openai.pyindex b85ef252b..bee75d639 100644--- a/comfy_api_nodes/apis/openai.py+++ b/comfy_api_nodes/apis/openai.py@@ -56,14 +56,14 @@ class ModelResponseProperties(BaseModel):instructions: str | None = Field(None)max_output_tokens: int | None = Field(None)model: str | None = Field(None)- temperature: float | None = Field(1, description="Controls randomness in the response", ge=0.0, le=2.0)+ temperature: float | None = Field(None, description="Controls randomness in the response", ge=0.0, le=2.0)top_p: float | None = Field(- 1,+ None,description="Controls diversity of the response via nucleus sampling",ge=0.0,le=1.0,)- truncation: str | None = Field("disabled", description="Allowed values: 'auto' or 'disabled'")+ truncation: str | None = Field(None, description="Allowed values: 'auto' or 'disabled'")class ResponseProperties(BaseModel):diff --git a/comfy_api_nodes/nodes_openai.py b/comfy_api_nodes/nodes_openai.pyindex 21fe470ce..daed495da 100644--- a/comfy_api_nodes/nodes_openai.py+++ b/comfy_api_nodes/nodes_openai.py@@ -39,16 +39,18 @@ STARTING_POINT_ID_PATTERN = r"<starting_point_id:(.*)>"class SupportedOpenAIModel(str, Enum):- o4_mini = "o4-mini"- o1 = "o1"- o3 = "o3"- o1_pro = "o1-pro"- gpt_4_1 = "gpt-4.1"- gpt_4_1_mini = "gpt-4.1-mini"- gpt_4_1_nano = "gpt-4.1-nano"+ gpt_5_5_pro = "gpt-5.5-pro"+ gpt_5_5 = "gpt-5.5"gpt_5 = "gpt-5"gpt_5_mini = "gpt-5-mini"gpt_5_nano = "gpt-5-nano"+ gpt_4_1 = "gpt-4.1"+ gpt_4_1_mini = "gpt-4.1-mini"+ gpt_4_1_nano = "gpt-4.1-nano"+ o4_mini = "o4-mini"+ o3 = "o3"+ o1_pro = "o1-pro"+ o1 = "o1"async def validate_and_cast_response(response, timeout: int = None) -> torch.Tensor:@@ -739,6 +741,16 @@ class OpenAIChatNode(IO.ComfyNode):"usd": [0.002, 0.008],"format": { "approximate": true, "separator": "-", "suffix": " per 1K tokens" }}+ : $contains($m, "gpt-5.5-pro") ? {+ "type": "list_usd",+ "usd": [0.03, 0.18],+ "format": { "approximate": true, "separator": "-", "suffix": " per 1K tokens" }+ }+ : $contains($m, "gpt-5.5") ? {+ "type": "list_usd",+ "usd": [0.005, 0.03],+ "format": { "approximate": true, "separator": "-", "suffix": " per 1K tokens" }+ }: $contains($m, "gpt-5-nano") ? {"type": "list_usd","usd": [0.00005, 0.0004],