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