Skip to content

Enhance Transcript with AI#44

Draft
google-labs-jules[bot] wants to merge 4 commits into
mainfrom
enhance-transcript-feature-7610923124901016416
Draft

Enhance Transcript with AI#44
google-labs-jules[bot] wants to merge 4 commits into
mainfrom
enhance-transcript-feature-7610923124901016416

Enhance transcript AI processing with chunking and retries

00868b6
Select commit
Loading
Failed to load commit list.
Supabase / Supabase Preview failed Dec 13, 2025 in 4s

Supabase Preview

ERROR: cannot change return type of existing function (SQLSTATE 42P13)
Row type defined by OUT parameters is different.
At statement: 6
-- Aggregate usage in a window for faster API queries
CREATE OR REPLACE FUNCTION public.get_usage_breakdown(
  p_user_id uuid,
  p_start timestamptz,
  p_end timestamptz
)
RETURNS TABLE (
  subscription_tier text,
  counted integer,
  cached integer
)
LANGUAGE sql
SECURITY DEFINER
SET search_path = public
AS $$
  SELECT
    subscription_tier,
    COUNT(*) FILTER (WHERE counted_toward_limit) AS counted,
    COUNT(*) FILTER (WHERE NOT counted_toward_limit) AS cached
  FROM public.video_generations
  WHERE user_id = p_user_id
    AND created_at >= p_start
    AND created_at < p_end
  GROUP BY subscription_tier;
$$