MCPcopy Create free account

hub / github.com/CCpt5/ComfyUI-BerniniStudio / functions

Functions47 in github.com/CCpt5/ComfyUI-BerniniStudio

↓ 76 callersFunctionel
(tag, styles, text)
js/bernini_studio.js:129
↓ 17 callersFunctionfindWidget
(node, name)
js/bernini_studio.js:119
↓ 6 callersMethod_si
(el)
js/bernini_studio.js:161
↓ 5 callersFunctionswallowKeys
(el)
js/bernini_studio.js:123
↓ 4 callersFunction_get_system_prompt
(task_type)
bernini_studio.py:179
↓ 4 callersFunction_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 callersMethod_setEnhanceBusy
Amber pulsing "waiting" state on the Enhance button (Looper pattern).
js/bernini_studio.js:1014
↓ 3 callersMethod_blobToBase64
(blob)
js/bernini_studio.js:1528
↓ 3 callersMethod_fetchModels
(silent)
js/bernini_studio.js:864
↓ 3 callersFunction_get_enhance_template
(task_type)
bernini_studio.py:371
↓ 3 callersMethod_renderSlots
()
js/bernini_studio.js:1182
↓ 3 callersMethod_sta
(el)
js/bernini_studio.js:172
↓ 3 callersMethod_syncSlotWidget
()
js/bernini_studio.js:1175
↓ 3 callersMethod_updateNegPlaceholder
()
js/bernini_studio.js:850
↓ 3 callersMethod_updateTaskDisplay
()
js/bernini_studio.js:779
↓ 3 callersFunctionhideWidget
(w)
js/bernini_studio.js:89
↓ 2 callersMethod_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 callersFunction_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 callersMethod_fetchTemplate
()
js/bernini_studio.js:833
↓ 2 callersMethod_readSlotWidget
()
js/bernini_studio.js:1163
↓ 2 callersFunction_resize_long_edge
Resize preserving aspect so long edge <= max_size, snap to stride.
bernini_studio.py:379
↓ 2 callersMethod_uploadToSlot
(slotIndex, file)
js/bernini_studio.js:1310
↓ 1 callersMethod_build
()
js/bernini_studio.js:177
↓ 1 callersMethod_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 callersMethod_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 callersMethod_enhancePrompt
()
js/bernini_studio.js:901
↓ 1 callersMethod_installVisibilityWatchdog
()
js/bernini_studio.js:1543
↓ 1 callersFunction_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 callersFunction_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 callersMethod_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 callersMethod_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 callersMethod_toggleOllama
()
js/bernini_studio.js:858
↓ 1 callersMethod_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 callersMethod_unloadOllama
Immediately unload the selected Ollama model from VRAM.
js/bernini_studio.js:984
↓ 1 callersFunctiongetEditorHeight
()
js/bernini_studio.js:1573
MethodINPUT_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
FunctionbeforeRegisterNodeDef
(nodeType, nodeData)
js/bernini_studio.js:1561
Methodconstructor
(node, mount)
js/bernini_studio.js:139
Methodexecute
( self, clip, vae, width, height, length, batch_size, task_type, prompt, negative_prom
bernini_studio.py:538
MethodmkSlider
(label, widget, min, max, step)
js/bernini_studio.js:495
Methodtick
()
js/bernini_studio.js:1545