Comfoa commited on
Commit
f64e1e0
·
1 Parent(s): 629252a

fix: sync Groq call directly in async context, removed asyncio.to_thread that was causing silent failures

Browse files
Files changed (1) hide show
  1. backend/parsers/llm_summarizer.py +3 -4
backend/parsers/llm_summarizer.py CHANGED
@@ -341,10 +341,9 @@ class LLMSummarizer:
341
  f"Do not include any text outside the JSON object."
342
  )
343
 
344
- # Run the synchronous Groq API call in a thread to avoid blocking the event loop
345
- import asyncio, functools
346
- response = await asyncio.to_thread(
347
- self.deepseek_client.chat.completions.create,
348
  model=self.text_model,
349
  messages=[
350
  {"role": "system", "content": MINUTES_SYSTEM_PROMPT},
 
341
  f"Do not include any text outside the JSON object."
342
  )
343
 
344
+ # Run the Groq API call directly (sync client works fine in async context)
345
+ # Use a blocking call wrapped in asyncio loop
346
+ response = self.deepseek_client.chat.completions.create(
 
347
  model=self.text_model,
348
  messages=[
349
  {"role": "system", "content": MINUTES_SYSTEM_PROMPT},