Skip to content

feat: add GCS URI support to /separate endpoint#277

Merged
beveradb merged 1 commit into
mainfrom
feat/sess-20260325-1130-gcs-passthrough
Mar 25, 2026
Merged

feat: add GCS URI support to /separate endpoint#277
beveradb merged 1 commit into
mainfrom
feat/sess-20260325-1130-gcs-passthrough

Conversation

@beveradb
Copy link
Copy Markdown
Collaborator

Summary

  • Add gcs_uri parameter to /separate endpoint — server downloads from GCS instead of requiring file upload
  • Update API client to support gcs_uri in separate_audio() and separate_audio_and_wait()
  • Fixes 413 Request Entity Too Large errors when FLAC files exceed Cloud Run's 32MB request body limit

Details

When callers already have audio in GCS (e.g., karaoke-gen's audio worker), they can now pass gcs_uri=gs://bucket/path instead of uploading the file bytes. This avoids the Cloud Run request body size limit entirely.

Fully backward compatible — file upload still works when gcs_uri is not provided.

Test plan

  • Unit tests for GCS URI parameter in API client (4 new tests)
  • All 238 existing tests pass
  • Integration test after deploy: karaoke-gen audio worker uses GCS URI for Stage 1

@coderabbitai ignore

🤖 Generated with Claude Code

Allow callers to pass a gcs_uri (gs://bucket/path) instead of uploading
the audio file as a multipart POST body. This avoids Cloud Run's 32MB
request body limit for large FLAC files.

- Server: new gcs_uri parameter on /separate, downloads from GCS directly
- Client: separate_audio() and separate_audio_and_wait() accept gcs_uri
- Backward compatible: file upload still works when gcs_uri is not set
- Version bump to 0.44.0

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@beveradb beveradb merged commit 1ea0e5b into main Mar 25, 2026
18 of 19 checks passed
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.

1 participant