Nihal2000 commited on
Commit
75ca58c
·
verified ·
1 Parent(s): 2d815ec

Update services/llm_service.py

Browse files
Files changed (1) hide show
  1. 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=0.5)
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]