Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CCpt5/ComfyUI-BerniniStudio
/ functions
Functions
47 in github.com/CCpt5/ComfyUI-BerniniStudio
⨍
Functions
47
◇
Types & classes
3
↳
Endpoints
6
↓ 76 callers
Function
el
(tag, styles, text)
js/bernini_studio.js:129
↓ 17 callers
Function
findWidget
(node, name)
js/bernini_studio.js:119
↓ 6 callers
Method
_si
(el)
js/bernini_studio.js:161
↓ 5 callers
Function
swallowKeys
(el)
js/bernini_studio.js:123
↓ 4 callers
Function
_get_system_prompt
(task_type)
bernini_studio.py:179
↓ 4 callers
Function
_llm_headers
Build HTTP headers for Ollama or OpenAI-compatible prompt enhancement. For OpenAI / vLLM mode: - Reads OPENAI_API_KEY from environment (never
bernini_studio.py:46
↓ 4 callers
Method
_setEnhanceBusy
Amber pulsing "waiting" state on the Enhance button (Looper pattern).
js/bernini_studio.js:1014
↓ 3 callers
Method
_blobToBase64
(blob)
js/bernini_studio.js:1528
↓ 3 callers
Method
_fetchModels
(silent)
js/bernini_studio.js:864
↓ 3 callers
Function
_get_enhance_template
(task_type)
bernini_studio.py:371
↓ 3 callers
Method
_renderSlots
()
js/bernini_studio.js:1182
↓ 3 callers
Method
_sta
(el)
js/bernini_studio.js:172
↓ 3 callers
Method
_syncSlotWidget
()
js/bernini_studio.js:1175
↓ 3 callers
Method
_updateNegPlaceholder
()
js/bernini_studio.js:850
↓ 3 callers
Method
_updateTaskDisplay
()
js/bernini_studio.js:779
↓ 3 callers
Function
hideWidget
(w)
js/bernini_studio.js:89
↓ 2 callers
Method
_applyLayout
* Toggle between stacked (vertical) and split (two-column landscape) * layouts. Split puts prompting on the left, slots/advanced/LLM on the
js/bernini_studio.js:1040
↓ 2 callers
Function
_apply_openai_generation_options
Add generation-limit options to an OpenAI-compatible payload. - OpenAI GPT-5 / o-series: max_completion_tokens, omit temperature. - Older Ope
bernini_studio.py:86
↓ 2 callers
Method
_fetchTemplate
()
js/bernini_studio.js:833
↓ 2 callers
Method
_readSlotWidget
()
js/bernini_studio.js:1163
↓ 2 callers
Function
_resize_long_edge
Resize preserving aspect so long edge <= max_size, snap to stride.
bernini_studio.py:379
↓ 2 callers
Method
_uploadToSlot
(slotIndex, file)
js/bernini_studio.js:1310
↓ 1 callers
Method
_build
()
js/bernini_studio.js:177
↓ 1 callers
Method
_collectReferenceImages
* Collect base64-encoded reference images from connected nodes. * Traces the graph links from this node's reference_image_N inputs * backwar
js/bernini_studio.js:1422
↓ 1 callers
Method
_collectSourceVideoFrames
* Extract frames from the connected source video for LLM vision. * Traces source_video input to find VHS_LoadVideo (or similar), * gets the
js/bernini_studio.js:1343
↓ 1 callers
Method
_enhancePrompt
()
js/bernini_studio.js:901
↓ 1 callers
Method
_installVisibilityWatchdog
()
js/bernini_studio.js:1543
↓ 1 callers
Function
_is_openai_new_completion_model
True for OpenAI chat models that reject the legacy max_tokens field. GPT-5 and reasoning-family models on /v1/chat/completions expect max_com
bernini_studio.py:75
↓ 1 callers
Function
_load_slot_image
Load an image from ComfyUI's input directory as a [1,H,W,3] float tensor. Used for the built-in reference slots (drag-and-drop in the editor UI).
bernini_studio.py:390
↓ 1 callers
Method
_server_enhance
Server-side prompt enhancement via Ollama/vLLM. Called during execute() when auto_enhance is True. Uses urllib (stdlib) to avoid async complic
bernini_studio.py:699
↓ 1 callers
Method
_syncFromWidgets
* Re-sync all DOM elements from their underlying widget values. * Called from onConfigure after ComfyUI restores saved widget values * (whic
js/bernini_studio.js:1089
↓ 1 callers
Method
_toggleOllama
()
js/bernini_studio.js:858
↓ 1 callers
Method
_traceToImageWidget
* Walk backwards through the graph from a given node, following IMAGE * inputs, until we find a node with an "image" widget (LoadImage, etc).
js/bernini_studio.js:1500
↓ 1 callers
Method
_unloadOllama
Immediately unload the selected Ollama model from VRAM.
js/bernini_studio.js:984
↓ 1 callers
Function
getEditorHeight
()
js/bernini_studio.js:1573
Method
INPUT_TYPES
(cls)
bernini_studio.py:445
Function
_bs_extract_frames
Extract frames from a video in ComfyUI's input folder and return as base64 JPEG. Used to send source video frames to the LLM for vision-aware
bernini_studio.py:1042
Function
_bs_generate
(request)
bernini_studio.py:839
Function
_bs_get_template
Return the full enhancement template for a given task type.
bernini_studio.py:1111
Function
_bs_models
(request)
bernini_studio.py:788
Function
_bs_task_info
Return task metadata for the JS editor.
bernini_studio.py:995
Function
_bs_unload
Immediately unload the Ollama model from VRAM via keep_alive=0.
bernini_studio.py:1010
Function
beforeRegisterNodeDef
(nodeType, nodeData)
js/bernini_studio.js:1561
Method
constructor
(node, mount)
js/bernini_studio.js:139
Method
execute
( self, clip, vae, width, height, length, batch_size, task_type, prompt, negative_prom
bernini_studio.py:538
Method
mkSlider
(label, widget, min, max, step)
js/bernini_studio.js:495
Method
tick
()
js/bernini_studio.js:1545