Skip to content

Fix YouTube --show-code, Vercel deploy framework, stream poll default, --llm help#59

Merged
alexkroman merged 1 commit into
mainfrom
fix-codegen-vercel-stream-help
Jun 10, 2026
Merged

Fix YouTube --show-code, Vercel deploy framework, stream poll default, --llm help#59
alexkroman merged 1 commit into
mainfrom
fix-codegen-vercel-stream-help

Conversation

@alexkroman

Copy link
Copy Markdown
Collaborator

Summary

Four CLI surface fixes hit during manual QA:

  • YouTube --show-code generated a broken script. The generated code passed the raw YouTube URL straight to transcriber.transcribe(), which fails with RuntimeError: Download error — AssemblyAI can't fetch YouTube URLs. The real CLI downloads with yt-dlp first (transcribe_exec.py). code_gen/transcribe.py now emits a yt-dlp download-to-temp-file block for YouTube sources and uploads the local file. Non-YouTube URLs still upload straight through.
  • aai deploy → Vercel "services" framework error. Templates shipped no vercel.json and relied on Vercel's old zero-config Python detection, which now resolves the api/ + Dockerfile layout to the multi-service "services" framework and hard-fails (no services declared). Added vercel.json ("framework": "fastapi") to all three templates so Vercel builds api/index.py and routes every request to the ASGI app — and never auto-detects "services". Updated the now-false "no vercel.json needed" README claims.
  • aai stream --llm poll default lowered from 30s to 10s (--llm-interval).
  • aai --help no longer renders the redundant Authentication block in the epilog.

Tests

  • New code_gen tests: YouTube download path, config passthrough, plain-URL straight upload.
  • New init contract test pins "framework": "fastapi" in each template's vercel.json; required-files list and scaffold test updated to expect it.
  • Removed the test pinning the dropped authentication help block; regenerated --help snapshots (auth block gone, --llm-interval default now 10.0).
  • Verified all three vercel.json files ship in the built wheel.

🤖 Generated with Claude Code

- code_gen: download YouTube audio with yt-dlp before upload (raw URL fails)
- init templates: ship vercel.json pinning the FastAPI framework preset so
  `aai deploy` doesn't hit Vercel's "services" framework error
- stream: default --llm-interval 30s -> 10s
- main: drop the redundant Authentication block from `aai --help`

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@alexkroman alexkroman merged commit 9f63c6c into main Jun 10, 2026
11 checks passed
@alexkroman alexkroman deleted the fix-codegen-vercel-stream-help branch June 10, 2026 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants