fix: sync Groq call directly in async context, removed asyncio.to_thread that was causing silent failures
Browse files
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
|
| 345 |
-
|
| 346 |
-
response =
|
| 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},
|