This commit is contained in:
DelLevin-Home
2026-01-15 22:46:03 +08:00
parent 227220c3c7
commit 4e0b07b032
4 changed files with 17 additions and 27 deletions

View File

@@ -14,12 +14,16 @@ except Exception as e:
exit(1)
model = "qwen3:1.7b"
# model = "qwen3:0.6b"
OLLAMA_BASE_URL = "http://127.0.0.1:11434/api/generate"
# OLLAMA_BASE_URL = "http://152.136.153.72:27009/api/generate"
extracted_tags = ex_doc_tag.extract_tags_with_ollama_from_content(
OLLAMA_BASE_URL,
model,
my_article_content,
max_tags=8,
max_tags=5,
min_length=2,
max_length=6
max_length=10
)
if extracted_tags['code'] == 0: