Update services/llm_service.py
Browse files- services/llm_service.py +1 -1
services/llm_service.py
CHANGED
|
@@ -249,7 +249,7 @@ class LLMService:
|
|
| 249 |
|
| 250 |
try:
|
| 251 |
# Use FAST_MODEL for tags
|
| 252 |
-
response = await self.generate_text(prompt, model="fast", max_tokens=100, temperature=
|
| 253 |
tags = [tag.strip().lower() for tag in response.split(',') if tag.strip()]
|
| 254 |
tags = [tag for tag in tags if tag and len(tag) > 1 and len(tag) < 50]
|
| 255 |
return list(dict.fromkeys(tags))[:max_tags]
|
|
|
|
| 249 |
|
| 250 |
try:
|
| 251 |
# Use FAST_MODEL for tags
|
| 252 |
+
response = await self.generate_text(prompt, model="fast", max_tokens=100, temperature=1)
|
| 253 |
tags = [tag.strip().lower() for tag in response.split(',') if tag.strip()]
|
| 254 |
tags = [tag for tag in tags if tag and len(tag) > 1 and len(tag) < 50]
|
| 255 |
return list(dict.fromkeys(tags))[:max_tags]
|