Open-source desktop app for local LLMs. Text, vision, tool-calling, OpenAI/Anthropic-compatible API. 100% private.
539 matches across 13 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | docs/07 - Extensions.md | 0 | manipulates the probabilities for the next token before it gets sampled. used in the logits_processor_modifier function |
| HIGH | extensions/example/script.py | 0 | manipulates the probabilities for the next token before it gets sampled. used in the logits_processor_modifier function |
| HIGH | extensions/long_replies/script.py | 0 | manipulates the probabilities for the next token before it gets sampled. used in the logits_processor_modifier function |
| HIGH | docs/07 - Extensions.md | 0 | modifies the state variable, which is a dictionary containing the input values in the ui like sliders and checkboxes. |
| HIGH | extensions/example/script.py | 0 | modifies the state variable, which is a dictionary containing the input values in the ui like sliders and checkboxes. |
| HIGH | extensions/long_replies/script.py | 0 | modifies the state variable, which is a dictionary containing the input values in the ui like sliders and checkboxes. |
| HIGH | docs/07 - Extensions.md | 0 | modifies the user input string in chat mode (visible_text). you can also modify the internal representation of the user |
| HIGH | extensions/example/script.py | 0 | modifies the user input string in chat mode (visible_text). you can also modify the internal representation of the user |
| HIGH | extensions/long_replies/script.py | 0 | modifies the user input string in chat mode (visible_text). you can also modify the internal representation of the user |
| HIGH | docs/07 - Extensions.md | 0 | in default/notebook modes, modifies the whole prompt. in chat mode, it is the same as chat_input_modifier but only appli |
| HIGH | extensions/example/script.py | 0 | in default/notebook modes, modifies the whole prompt. in chat mode, it is the same as chat_input_modifier but only appli |
| HIGH | extensions/long_replies/script.py | 0 | in default/notebook modes, modifies the whole prompt. in chat mode, it is the same as chat_input_modifier but only appli |
| HIGH | docs/07 - Extensions.md | 0 | modifies the prefix for the next bot reply in chat mode. by default, the prefix will be something like "bot name:". |
| HIGH | extensions/example/script.py | 0 | modifies the prefix for the next bot reply in chat mode. by default, the prefix will be something like "bot name:". |
| HIGH | extensions/long_replies/script.py | 0 | modifies the prefix for the next bot reply in chat mode. by default, the prefix will be something like "bot name:". |
| HIGH | docs/07 - Extensions.md | 0 | adds logits processors to the list, allowing you to access and modify the next token probabilities. only used by loaders |
| HIGH | extensions/example/script.py | 0 | adds logits processors to the list, allowing you to access and modify the next token probabilities. only used by loaders |
| HIGH | extensions/long_replies/script.py | 0 | adds logits processors to the list, allowing you to access and modify the next token probabilities. only used by loaders |
| HIGH | docs/07 - Extensions.md | 0 | modifies the llm output before it gets presented. in chat mode, the modified version goes into history['visible'], and t |
| HIGH | extensions/example/script.py | 0 | modifies the llm output before it gets presented. in chat mode, the modified version goes into history['visible'], and t |
| HIGH | extensions/long_replies/script.py | 0 | modifies the llm output before it gets presented. in chat mode, the modified version goes into history['visible'], and t |
| HIGH | docs/07 - Extensions.md | 0 | replaces the function that generates the prompt from the chat history. only used in chat mode. |
| HIGH | extensions/example/script.py | 0 | replaces the function that generates the prompt from the chat history. only used in chat mode. |
| HIGH | extensions/long_replies/script.py | 0 | replaces the function that generates the prompt from the chat history. only used in chat mode. |
| HIGH | docs/07 - Extensions.md | 0 | returns a css string that gets appended to the css for the webui. |
| HIGH | extensions/example/script.py | 0 | returns a css string that gets appended to the css for the webui. |
| HIGH | extensions/long_replies/script.py | 0 | returns a css string that gets appended to the css for the webui. |
| HIGH | docs/07 - Extensions.md | 0 | returns a javascript string that gets appended to the javascript for the webui. |
| HIGH | extensions/example/script.py | 0 | returns a javascript string that gets appended to the javascript for the webui. |
| HIGH | extensions/long_replies/script.py | 0 | returns a javascript string that gets appended to the javascript for the webui. |
| HIGH | docs/07 - Extensions.md | 0 | gets executed only once, when the extension is imported. |
| HIGH | extensions/example/script.py | 0 | gets executed only once, when the extension is imported. |
| HIGH | extensions/long_replies/script.py | 0 | gets executed only once, when the extension is imported. |
| HIGH | docs/07 - Extensions.md | 0 | gets executed when the ui is drawn. custom gradio elements and their corresponding event handlers should be defined here |
| HIGH | extensions/example/script.py | 0 | gets executed when the ui is drawn. custom gradio elements and their corresponding event handlers should be defined here |
| HIGH | extensions/long_replies/script.py | 0 | gets executed when the ui is drawn. custom gradio elements and their corresponding event handlers should be defined here |
| HIGH | extensions/sd_api_pictures/script.py | 0 | this function is applied to your text inputs before they are fed into the model. |
| HIGH | extensions/character_bias/script.py | 0 | this function is applied to your text inputs before they are fed into the model. |
| HIGH | extensions/google_translate/script.py | 0 | this function is applied to your text inputs before they are fed into the model. |
| HIGH | extensions/sd_api_pictures/script.py | 0 | this function is only applied in chat mode. it modifies the prefix text for the bot and can be used to bias its behavior |
| HIGH | extensions/character_bias/script.py | 0 | this function is only applied in chat mode. it modifies the prefix text for the bot and can be used to bias its behavior |
| HIGH | extensions/google_translate/script.py | 0 | this function is only applied in chat mode. it modifies the prefix text for the bot and can be used to bias its behavior |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | download-model.py | 59 | def sanitize_model_and_branch_names(self, model, branch): |
| LOW | download-model.py | 79 | def get_download_links_from_huggingface(self, model, branch, text_only=False, specific_file=None, exclude_pattern=No |
| LOW | download-model.py | 205 | def initialize_progress_bar_slots(self, num_threads): |
| LOW | download-model.py | 208 | def get_progress_bar_position(self): |
| LOW | download-model.py | 217 | def release_progress_bar_position(self, slot): |
| LOW | one_click.py | 111 | def get_pytorch_install_command(gpu_choice): |
| LOW | one_click.py | 129 | def get_pytorch_update_command(gpu_choice): |
| LOW | one_click.py | 237 | def generate_alphabetic_sequence(index): |
| LOW | one_click.py | 265 | def update_pytorch_and_python(): |
| LOW | one_click.py | 272 | def clean_outdated_pytorch_cuda_dependencies(): |
| LOW | one_click.py | 476 | def install_extensions_requirements(): |
| LOW | js/main.js | 58 | function isFocusedOnEditableTextbox(event) { |
| LOW | js/main.js | 691 | function handleIndividualSidebarClose(event) { |
| LOW | js/main.js | 796 | function navigateLastAssistantMessage(direction) { |
| LOW | js/morphdom/morphdom-umd.min.js | 1 | (function(global,factory){typeof exports==="object"&&typeof module!=="undefined"?module.exports=factory():typeof define= |
| LOW | docs/07 - Extensions.md | 54 | | `def custom_generate_chat_prompt(...)` | Overrides the prompt generator in chat mode. | |
| LOW | docs/07 - Extensions.md | 195 | def logits_processor_modifier(processor_list, input_ids): |
| LOW | docs/07 - Extensions.md | 213 | def custom_generate_chat_prompt(user_input, state, **kwargs): |
| LOW | extensions/example/script.py | 86 | def logits_processor_modifier(processor_list, input_ids): |
| LOW | extensions/example/script.py | 104 | def custom_generate_chat_prompt(user_input, state, **kwargs): |
| LOW | extensions/silero_tts/tts_preprocessor.py | 162 | def replace_lowercase_abbreviations(string): |
| LOW | extensions/perplexity_colors/script.py | 92 | def logits_processor_modifier(logits_processor_list, input_ids): |
| LOW | extensions/perplexity_colors/script.py | 234 | def probability_perplexity_color_scale(prob, max_prob, ppl): |
| LOW | extensions/perplexity_colors/script.py | 436 | def convert_to_markdown_wrapped(string, use_cache=True): |
| LOW | extensions/perplexity_colors/script.py | 449 | def update_color_by_ppl_check(x): |
| LOW | extensions/perplexity_colors/script.py | 452 | def update_color_by_prob_check(x): |
| LOW | extensions/perplexity_colors/script.py | 455 | def update_prob_dropdown_check(x): |
| LOW | extensions/superboogav2/chat_handler.py | 102 | def custom_generate_chat_prompt_internal(user_input: str, state: dict, collector: ChromaCollector, **kwargs): |
| LOW | extensions/superboogav2/data_processor.py | 17 | def preprocess_text_no_summary(text) -> str: |
| LOW | extensions/superboogav2/data_processor.py | 56 | def _create_chunks_with_context(corpus, chunk_len, context_left, context_right): |
| LOW | extensions/superboogav2/data_processor.py | 142 | def process_and_add_to_collector(corpus: str, collector: ChromaCollector, clear_collector_before_adding: bool, metadata: |
| LOW | extensions/superboogav2/chromadb.py | 142 | def _split_texts_by_cache_hit(self, texts: list[str], new_ids: list[str], metadatas: list[dict]): |
| LOW | extensions/superboogav2/chromadb.py | 173 | def _find_min_max_start_index(self): |
| LOW | extensions/superboogav2/chromadb.py | 187 | def _apply_sigmoid_time_weighing(self, infos: list[Info], document_len: int, time_steepness: float, time_power: floa |
| LOW | extensions/superboogav2/chromadb.py | 205 | def _filter_outliers_by_median_distance(self, infos: list[Info], significant_level: float): |
| LOW | extensions/superboogav2/chromadb.py | 242 | def _get_documents_ids_distances(self, search_strings: list[str], n_results: int): |
| LOW | extensions/superboogav2/chromadb.py | 289 | def _get_documents_up_to_token_count(self, documents: list[str], max_token_count: int): |
| LOW | extensions/superboogav2/parameters.py | 83 | def get_num_conversion_strategy() -> str: |
| LOW | extensions/superboogav2/parameters.py | 95 | def should_remove_punctuation() -> bool: |
| LOW | extensions/superboogav2/parameters.py | 103 | def should_remove_specific_pos() -> bool: |
| LOW | extensions/superboogav2/parameters.py | 123 | def set_num_conversion_strategy(value: str): |
| LOW | extensions/superboogav2/script.py | 50 | def _feed_data_into_collector(corpus): |
| LOW | extensions/superboogav2/script.py | 56 | def _feed_file_into_collector(files): |
| LOW | extensions/superboogav2/script.py | 195 | def _get_optimizable_settings() -> list: |
| LOW | extensions/superboogav2/script.py | 288 | def custom_generate_chat_prompt(user_input, state, **kwargs): |
| LOW | extensions/superbooga/chromadb.py | 31 | def get_documents_ids_distances(self, search_strings: list[str], n_results: int): |
| LOW | extensions/superbooga/chromadb.py | 58 | def apply_time_weight_to_distances(self, ids: list[int], distances: list[float], time_weight: float = 1.0) -> list[f |
| LOW | extensions/superbooga/script.py | 96 | def custom_generate_chat_prompt(user_input, state, **kwargs): |
| LOW | extensions/long_replies/script.py | 88 | def logits_processor_modifier(processor_list, input_ids): |
| LOW | extensions/long_replies/script.py | 106 | def custom_generate_chat_prompt(user_input, state, **kwargs): |
| LOW | modules/llama_cpp_server.py | 157 | def _process_images_for_generation(self, state: dict) -> List[Any]: |
| LOW | modules/llama_cpp_server.py | 329 | def get_prompt_logprob_entries(self, token_ids, n_probs=5, prompt=""): |
| LOW | modules/llama_cpp_server.py | 634 | def filter_stderr_with_progress(process_stderr): |
| LOW | modules/exllamav3_hf.py | 117 | def prepare_inputs_for_generation(self, input_ids, **kwargs): |
| LOW | modules/exllamav3.py | 256 | def _process_images_for_generation(self, prompt: str, state: dict) -> Tuple[str, List[Any]]: |
| LOW | modules/image_utils.py | 96 | def convert_image_attachments_to_pil(image_attachments: List[dict]) -> List[Image.Image]: |
| LOW | modules/image_utils.py | 111 | def convert_openai_messages_to_images(messages: List[dict]) -> List[Image.Image]: |
| LOW | modules/ui_chat.py | 153 | def create_character_settings_ui(): |
| LOW | modules/models.py | 15 | def load_model_if_idle_unloaded(): |
| LOW | modules/presets.py | 107 | def neutralize_samplers_for_ui(state): |
| 117 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | download-model.py | 308 | print(f"Error downloading {filename}: {e}.") |
| MEDIUM | download-model.py | 404 | print("Error: Please specify the model you'd like to download (e.g. 'python download-model.py facebook/opt-1.3b' |
| MEDIUM | download-model.py | 432 | print(f"Error: {err_branch}") |
| LOW | server.py | 43 | except Exception: |
| LOW | one_click.py | 69 | except Exception: |
| LOW | extensions/sd_api_pictures/script.py | 267 | except Exception: |
| LOW | extensions/sd_api_pictures/script.py | 287 | except Exception: |
| LOW | extensions/sd_api_pictures/script.py | 301 | except Exception: |
| LOW | extensions/sd_api_pictures/script.py | 310 | except Exception: |
| MEDIUM | extensions/sd_api_pictures/script.py | 305 | def get_samplers(): |
| LOW | extensions/superboogav2/api.py | 138 | except Exception as e: |
| LOW | extensions/superboogav2/api.py | 152 | except Exception as e: |
| MEDIUM | extensions/superboogav2/api.py | 88 | def do_POST(self): |
| MEDIUM | extensions/superboogav2/api.py | 141 | def do_DELETE(self): |
| LOW | extensions/superboogav2/download_urls.py | 36 | except Exception: |
| MEDIUM | extensions/superboogav2/script.py | 61 | def read_binary_file(file_path): |
| MEDIUM | extensions/superboogav2/script.py | 69 | def extract_with_utf8(text): |
| MEDIUM | extensions/superboogav2/script.py | 75 | def extract_with_fitz(file_content): |
| MEDIUM | extensions/superboogav2/script.py | 85 | def extract_with_docx(file_path): |
| MEDIUM | extensions/superboogav2/script.py | 94 | def extract_with_pptx(file_path): |
| MEDIUM | extensions/superboogav2/script.py | 134 | def extract_with_pandas(file_path): |
| LOW | extensions/superboogav2/script.py | 65 | except Exception: |
| LOW | extensions/superboogav2/script.py | 72 | except Exception: |
| LOW | extensions/superboogav2/script.py | 82 | except Exception: |
| LOW | extensions/superboogav2/script.py | 91 | except Exception: |
| LOW | extensions/superboogav2/script.py | 102 | except Exception: |
| LOW | extensions/superboogav2/script.py | 130 | except Exception as e: |
| LOW | extensions/superboogav2/script.py | 140 | except Exception: |
| LOW | extensions/superboogav2/script.py | 284 | except Exception as e: |
| LOW | extensions/superbooga/download_urls.py | 32 | except Exception: |
| LOW | user_data/tools/calculate.py | 51 | except Exception as e: |
| LOW | modules/llama_cpp_server.py | 598 | except Exception: |
| LOW | modules/llama_cpp_server.py | 688 | except Exception: |
| LOW | modules/llama_cpp_server.py | 696 | except Exception: |
| LOW | modules/exllamav3_hf.py | 22 | except Exception: |
| LOW | modules/exllamav3.py | 35 | except Exception: |
| LOW | modules/exllamav3.py | 81 | except Exception: |
| LOW | modules/exllamav3.py | 196 | except Exception as e: |
| LOW | modules/exllamav3.py | 303 | except Exception as e: |
| LOW | modules/exllamav3.py | 560 | except Exception as e: |
| LOW | modules/exllamav3.py | 566 | except Exception as e: |
| LOW | modules/exllamav3.py | 572 | except Exception as e: |
| LOW | modules/image_models.py | 159 | except Exception as e: |
| LOW | modules/image_utils.py | 21 | except Exception as e: |
| LOW | modules/image_utils.py | 44 | except Exception as e: |
| LOW | modules/image_utils.py | 74 | except Exception as e: |
| LOW | modules/image_utils.py | 86 | except Exception as e: |
| LOW | modules/image_utils.py | 106 | except Exception as e: |
| LOW | modules/models.py | 101 | except Exception as e: |
| LOW | modules/ui.py | 370 | except Exception: |
| LOW | modules/ui.py | 415 | except Exception as e: |
| LOW | modules/tool_use.py | 41 | except Exception: |
| LOW | modules/tool_use.py | 105 | except Exception: |
| LOW | modules/tool_use.py | 264 | except Exception as e: |
| LOW | modules/prompts.py | 38 | except Exception: |
| MEDIUM | modules/prompts.py | 34 | def count_tokens(text): |
| LOW | modules/extensions.py | 75 | except Exception: |
| MEDIUM | modules/chat.py | 2062 | def load_history_json(file, history): |
| LOW | modules/chat.py | 785 | except Exception as e: |
| LOW | modules/chat.py | 1003 | except Exception as e: |
| 66 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | download-model.py | 79 | |
| LOW | download-model.py | 221 | |
| LOW | one_click.py | 111 | |
| LOW | one_click.py | 129 | |
| LOW | one_click.py | 147 | |
| LOW | one_click.py | 323 | |
| LOW | extensions/sd_api_pictures/script.py | 46 | |
| LOW | extensions/sd_api_pictures/script.py | 316 | |
| LOW | extensions/gallery/script.py | 72 | |
| LOW | extensions/perplexity_colors/script.py | 108 | |
| LOW | extensions/superboogav2/optimize.py | 40 | |
| LOW | extensions/superboogav2/chat_handler.py | 102 | |
| LOW | extensions/superboogav2/data_processor.py | 17 | |
| LOW | extensions/superboogav2/data_processor.py | 142 | |
| LOW | extensions/superboogav2/benchmark.py | 19 | |
| LOW | extensions/superboogav2/chromadb.py | 27 | |
| LOW | extensions/superboogav2/api.py | 88 | |
| LOW | extensions/superboogav2/script.py | 56 | |
| LOW | extensions/superboogav2/script.py | 228 | |
| LOW | extensions/superboogav2/script.py | 296 | |
| LOW | extensions/superboogav2/script.py | 105 | |
| LOW | extensions/superbooga/script.py | 96 | |
| LOW | modules/llama_cpp_server.py | 634 | |
| LOW | modules/llama_cpp_server.py | 700 | |
| LOW | modules/llama_cpp_server.py | 73 | |
| LOW | modules/llama_cpp_server.py | 178 | |
| LOW | modules/llama_cpp_server.py | 415 | |
| LOW | modules/exllamav3_hf.py | 124 | |
| LOW | modules/exllamav3.py | 72 | |
| LOW | modules/exllamav3.py | 307 | |
| LOW | modules/image_models.py | 80 | |
| LOW | modules/image_utils.py | 49 | |
| LOW | modules/image_utils.py | 96 | |
| LOW | modules/ui_chat.py | 17 | |
| LOW | modules/ui_chat.py | 153 | |
| LOW | modules/ui_chat.py | 212 | |
| LOW | modules/models.py | 163 | |
| LOW | modules/ui.py | 317 | |
| LOW | modules/ui_default.py | 19 | |
| LOW | modules/html_generator.py | 242 | |
| LOW | modules/html_generator.py | 529 | |
| LOW | modules/html_generator.py | 262 | |
| LOW | modules/sane_markdown_lists.py | 201 | |
| LOW | modules/sane_markdown_lists.py | 245 | |
| LOW | modules/sane_markdown_lists.py | 277 | |
| LOW | modules/shared.py | 432 | |
| LOW | modules/ui_parameters.py | 9 | |
| LOW | modules/extensions.py | 27 | |
| LOW | modules/extensions.py | 87 | |
| LOW | modules/chat.py | 193 | |
| LOW | modules/chat.py | 236 | |
| LOW | modules/chat.py | 282 | |
| LOW | modules/chat.py | 333 | |
| LOW | modules/chat.py | 351 | |
| LOW | modules/chat.py | 827 | |
| LOW | modules/chat.py | 928 | |
| LOW | modules/chat.py | 1024 | |
| LOW | modules/chat.py | 1071 | |
| LOW | modules/chat.py | 1108 | |
| LOW | modules/chat.py | 1403 | |
| 51 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | one_click.py | 204 | # Set executable to None for Windows, bash for everything else |
| LOW | one_click.py | 539 | # Check if a model has been downloaded yet |
| LOW | extensions/superboogav2/optimize.py | 58 | # Check if the parameter is for optimization. |
| LOW | extensions/superboogav2/chat_handler.py | 117 | # Check if the strategy is to modify the last message. If so, prepend or append to the user query. |
| LOW | extensions/superboogav2/benchmark.py | 36 | # Check if the file exists |
| LOW | extensions/superboogav2/benchmark.py | 38 | # Open the file and read its content |
| LOW | extensions/superboogav2/chromadb.py | 69 | # Check if s1 and s2 are adjacent or overlapping |
| LOW | extensions/superboogav2/data_preprocessor.py | 41 | # Check if token is a word |
| LOW | extensions/superboogav2/data_preprocessor.py | 43 | # Check if token is not an abbreviation or constant |
| LOW | extensions/superboogav2/data_preprocessor.py | 53 | # Check if token is a number of length `min_len` or more |
| LOW | extensions/superboogav2/data_preprocessor.py | 65 | # Check if token is a number of length `min_len` or more |
| LOW | extensions/superboogav2/data_preprocessor.py | 80 | # Check if token is a number of length `min_len` or more |
| LOW | extensions/superboogav2/data_preprocessor.py | 121 | # Check if token is a word |
| LOW | modules/llama_cpp_server.py | 251 | # Check if the line starts with "data: " and remove it |
| LOW | modules/llama_cpp_server.py | 589 | # Check if process is still alive |
| LOW | modules/html_generator.py | 227 | # Check if thinking is complete or still in progress |
| LOW | modules/sane_markdown_lists.py | 176 | # Check if a custom start integer is set |
| LOW | modules/sane_markdown_lists.py | 181 | # Loop through items in block, recursively parsing each with the |
| LOW | modules/sane_markdown_lists.py | 304 | # Check if paragraph contains a list |
| LOW | modules/chat.py | 548 | # Check if we have attachments |
| LOW | modules/chat.py | 1204 | # Check if the current row has version metadata to sync during streaming |
| LOW | modules/training.py | 239 | # Check if the file already exists in the subfolder |
| LOW | modules/ui_image_generation.py | 221 | # Check if we need to refresh cache |
| LOW | modules/ui_image_generation.py | 699 | # Check if LLM is loaded |
| LOW | modules/grammar/grammar_utils.py | 536 | if not stacks: # Check if stacks is empty |
| LOW | modules/api/completions.py | 634 | # Check if usage should be included in streaming chunks per OpenAI spec |
| LOW | modules/api/completions.py | 983 | # Check if usage should be included in streaming chunks per OpenAI spec |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | one_click.py | 13 | # Define the required versions |
| MEDIUM | extensions/superboogav2/optimize.py | 64 | # Create a hashable representation of the parameters |
| MEDIUM | extensions/superboogav2/chromadb.py | 133 | # Create a dictionary that maps each ID to its context and starting index |
| MEDIUM | extensions/superboogav2/utils.py | 8 | # Create the context using the prefix + data_separator + postfix from parameters. |
| MEDIUM | modules/ui_default.py | 161 | # Create the new prompt file |
| MEDIUM | modules/html_generator.py | 87 | # Define a list of quote pairs (opening and closing), using HTML entities |
| MEDIUM | modules/html_generator.py | 100 | # Create a regex pattern that matches any of the quote pairs, including newlines |
| MEDIUM | modules/sane_markdown_lists.py | 311 | # Create a regular paragraph |
| MEDIUM | modules/shared.py | 241 | # Create a mapping of all argument aliases to their canonical names |
| MEDIUM | modules/extensions.py | 216 | # Creating the extension ui elements |
| MEDIUM | modules/chat.py | 2454 | # Create a default user if none exist |
| MEDIUM | modules/ui_notebook.py | 196 | # Create the new prompt file |
| MEDIUM | modules/training.py | 235 | # Create the new subfolder |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | one_click.py | 327 | "git init -b main && git remote add origin https://github.com/oobabooga/textgen && " |
| HIGH | one_click.py | 328 | "git fetch && git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/main && " |
| HIGH | one_click.py | 329 | "git reset --hard origin/main && git branch --set-upstream-to=origin/main", |
| HIGH | extensions/perplexity_colors/script.py | 353 | if (name != null && name.includes("opt_")) { |
| HIGH | extensions/perplexity_colors/script.py | 371 | if (msg_part_name != null) { |
| HIGH | extensions/perplexity_colors/script.py | 374 | if (current_token_index == token_index && current_message_pos == msg_pos) { |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | extensions/example/script.py | 10 | |
| LOW | extensions/example/script.py | 11 | |
| LOW | extensions/example/script.py | 14 | |
| LOW | extensions/example/script.py | 15 | |
| LOW | extensions/example/script.py | 15 | |
| LOW | extensions/example/script.py | 15 | |
| LOW | extensions/perplexity_colors/script.py | 1 | |
| LOW | extensions/perplexity_colors/script.py | 5 | |
| LOW | extensions/long_replies/script.py | 1 | |
| LOW | extensions/long_replies/script.py | 3 | |
| LOW | extensions/long_replies/script.py | 3 | |
| LOW | modules/exllamav3_hf.py | 21 | |
| LOW | modules/exllamav3.py | 34 | |
| LOW | modules/ui_chat.py | 3 | |
| LOW | modules/presets.py | 3 | |
| LOW | modules/ui_default.py | 1 | |
| LOW | modules/sane_markdown_lists.py | 19 | |
| LOW | modules/prompts.py | 1 | |
| LOW | modules/ui_parameters.py | 1 | |
| LOW | modules/ui_notebook.py | 3 | |
| LOW | modules/evaluate.py | 2 | |
| LOW | modules/tensorrt_llm.py | 7 | |
| LOW | modules/training.py | 10 | |
| LOW | modules/api/anthropic.py | 4 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | modules/html_generator.py | 30 | # Step 1: Remove comments |
| LOW | modules/html_generator.py | 33 | # Step 2: Remove leading and trailing whitespace |
| LOW | modules/html_generator.py | 36 | # Step 3: Remove spaces after specific characters ({ : ; ,}) |
| LOW | modules/html_generator.py | 39 | # Step 4: Remove spaces before `{` |
| LOW | modules/html_generator.py | 42 | # Step 5: Remove empty lines |
| LOW | modules/html_generator.py | 45 | # Step 6: Collapse all lines into one |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | extensions/superboogav2/chat_handler.py | 87 | # TODO: This is an extremely naive solution. A more robust implementation must be made. |
| MEDIUM | modules/html_generator.py | 312 | # Manual line iteration for robust structure parsing |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | extensions/ngrok/script.py | 1 | # Adds ngrok ingress, to use add `--extension ngrok` to the command line options |
| LOW | user_data/CMD_FLAGS.txt | 1 | # Add persistent flags here to use every time you launch the web UI. |
| LOW | modules/sampler_hijack.py | 81 | normalized_entropy = entropy / max_entropy |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | modules/sane_markdown_lists.py | 2 | # ======================================= |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | modules/shared.py | 404 | logger.warning("You are potentially exposing the web UI to the entire internet without any access password.\ |