pipeworks_mud_mapper.services.ollama_assets
Asset loading helpers for the Ollama UI.
This module isolates filesystem access for Ollama-related UI assets (such as prompt prefix presets). Keeping this logic here prevents callbacks from repeatedly reading files and centralizes error handling.
Functions
|
Return the list of prompt prefix dictionaries. |
|
Return the list of parameter preset dictionaries. |
Module Contents
- pipeworks_mud_mapper.services.ollama_assets.load_prompt_prefixes(*, reload=False)[source]
Return the list of prompt prefix dictionaries.
- Parameters:
reload (
bool) – When True, clears the cache and reloads from disk.- Returns:
Prompt prefix definitions from prompt_prefixes.json.
- Return type:
list[dict[str,Any]]