word limit

This commit is contained in:
Yanxin Lu
2026-02-22 13:14:11 -08:00
parent 9ec440be9c
commit 94e03c2ca0
3 changed files with 4 additions and 4 deletions

View File

@@ -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