mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-02 22:01:05 +02:00
Merge remote-tracking branch 'upstream/dev' into feat/unified-model-connections
This commit is contained in:
commit
ab5423d2d2
45 changed files with 775 additions and 272 deletions
|
|
@ -59,7 +59,7 @@ def _card_error_payment_intent_id(exc: CardError) -> str | None:
|
|||
@celery_app.task(name="auto_reload_credits")
|
||||
def auto_reload_credits_task(user_id: str):
|
||||
"""Charge the user's saved card to top up credits when below threshold."""
|
||||
return run_async_celery_task(_auto_reload_credits, user_id)
|
||||
return run_async_celery_task(lambda: _auto_reload_credits(user_id))
|
||||
|
||||
|
||||
async def _auto_reload_credits(user_id: str) -> None:
|
||||
|
|
|
|||
|
|
@ -36,7 +36,11 @@ def iter_completion_emission_frames(
|
|||
"success",
|
||||
)
|
||||
elif status in ("failed", "error"):
|
||||
error_msg = out.get("error", "Unknown error") if isinstance(out, dict) else "Unknown error"
|
||||
error_msg = (
|
||||
out.get("error", "Unknown error")
|
||||
if isinstance(out, dict)
|
||||
else "Unknown error"
|
||||
)
|
||||
yield ctx.streaming_service.format_terminal_info(
|
||||
f"Podcast generation failed: {error_msg}",
|
||||
"error",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue