Add materials, exam images, storage quota, and API guide
Upload documents for AI context, exam images for Moodle questions, per-template storage limits, embedded images in XML export, and GUIA_API_Y_FLUJO.md with full endpoint documentation.
This commit is contained in:
@@ -32,8 +32,8 @@ def clean_text(value: str, *, max_length: int = 8_000) -> str:
|
||||
return cleaned
|
||||
|
||||
|
||||
def sanitize_prompt_input(value: str) -> str:
|
||||
cleaned = clean_text(value, max_length=4_000)
|
||||
def sanitize_prompt_input(value: str, *, max_length: int = 4_000) -> str:
|
||||
cleaned = clean_text(value, max_length=max_length)
|
||||
return ROLE_INJECTION_HINTS.sub("[filtered instruction]", cleaned)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user