word limit
This commit is contained in:
@@ -309,7 +309,7 @@ def _run_test(mode: str, config: dict) -> None:
|
||||
sys.exit(1)
|
||||
|
||||
model = ollama_cfg.get("model", "kamekichi128/qwen3-4b-instruct-2507")
|
||||
prompt = ollama_cfg.get("prompt", "Summarize the following news article in 2-3 concise sentences:")
|
||||
prompt = ollama_cfg.get("prompt", "Summarize the following news article in 2-3 concise sentences (around 50 words):")
|
||||
|
||||
# Build test inputs: hardcoded articles + fetched article (full mode only)
|
||||
articles = list(_TEST_ARTICLES)
|
||||
@@ -388,7 +388,7 @@ def main():
|
||||
ollama_cfg = config.get("ollama")
|
||||
if ollama_cfg:
|
||||
ollama_model = ollama_cfg.get("model", "kamekichi128/qwen3-4b-instruct-2507")
|
||||
ollama_prompt = ollama_cfg.get("prompt", "Summarize the following news article in 2-3 concise sentences:")
|
||||
ollama_prompt = ollama_cfg.get("prompt", "Summarize the following news article in 2-3 concise sentences (around 50 words):")
|
||||
logger.debug("Ollama summarization enabled (model: %s)", ollama_model)
|
||||
else:
|
||||
ollama_model = ollama_prompt = None
|
||||
|
||||
Reference in New Issue
Block a user