fix: remove some requirements

This commit is contained in:
TomOPlomo
2025-08-07 15:33:09 +02:00
parent addb11fa93
commit 8faee3e6e1
3 changed files with 14 additions and 32 deletions

View File

@@ -263,7 +263,7 @@ TEXTE DE LA PAGE {page_num}:
logger.warning(f"⚠️ Page {page_num} is empty")
return []
max_chars = 8000 # todo
max_chars = 8000
user_prompt = user_prompt_template.format(
page_num=page_num,
text=page_text[:max_chars]
@@ -278,8 +278,8 @@ TEXTE DE LA PAGE {page_num}:
{"role": "system", "content": system_prompt},
{"role": "user", "content": user_prompt}
],
temperature=0.1,
max_tokens=4000, # todo
temperature=1.0,
max_tokens=4000,
response_format={"type": "json_object"}
)