Benign comfyui Download

comfyui_mienodes 1.3.4

Amplification chr() payload suffixDeletes only compiled/cache build artifacts

Evidence

imports base64 lines 1–42
1import re
2import requests
3import time
4import base64
5import numpy as np
6import cv2
7import torch
8
9try:
10 from _mienodes_internal.core.utils import (
11 mie_log,
12 load_plugin_config,
13 resolve_token,
14 image_tensor_to_data_url,
15 build_multimodal_user_content,
16 )
17except ImportError:
18 from ..core.utils import (
19 mie_log,
20 load_plugin_config,
21 resolve_token,
22 image_tensor_to_data_url,
23 build_multimodal_user_content,
24 )
25
26MY_CATEGORY = "🐑 MieNodes/🐑 LLM Service Config"
27
28
29# 引入 time 模块用于在重试间增加延迟
30
31def _drop_image_detail_auto(messages):
32 """Drop `detail: "auto"` from any image_url content part.
33
34 The OpenAI image_url spec allows `auto` / `low` / `high`, but
35 MiniMax M-series vision models reject "auto" with HTTP 400
36 (`invalid params, invalid image detail: auto`). OpenAI treats
37 a missing `detail` field as "auto" internally, so removing the
38 key is safe for OpenAI-compat services too. Gemini uses a
39 different content shape (inline_data) and never sees this.
40
41 Returns the input unchanged when no `detail: "auto"` is present
42 (cheap fast path). …
References an answer or ground-truth path lines 138–141
138:50… -of-thought inside the content
139 field before the actual answer. For prompt-rewriter use cases the
140 thinking is noise that pollutes downstream models' input, so we strip
141 it by …
JSON object type field fragment lines 156–167
156:59…
157 "stream": False,
158 "response_format": {"type": "text"},
159 }
160
⋯7 lines
Authorization header-name literal lines 177–186
177:33… payload(messages, **kwargs)
178
179 headers = {
180 "Authorization": f"Bearer {self.api_token}",
181 "Content-Type": "application/json"
182 }
183
184 for attempt in range(self.max_retries):
185 is_last_attempt = (attempt == self.max_retries - 1)
186 …
Calls requests.post() in Python lines 189–200
189:30… .perf_counter()
190
191 try:
192 response = requests.post(
193 self.api_url, json=payload, headers=headers, timeout=self.timeout
194 )
195 attempt_elapsed = time.perf_counter() - attempt_t0
196
197 if response.status_code == 200:
198 response_data = response.json()
199 try:
200 message = response_dat …

Showing the top 5 files — 6 more files (127 regions) not shown.

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.