Skip to content

fix: use /api/v3 gateway paths in WaveSpeedClient#16

Merged
chengzeyi merged 1 commit into
masterfrom
fix/v3-gateway-paths
Jun 23, 2026
Merged

fix: use /api/v3 gateway paths in WaveSpeedClient#16
chengzeyi merged 1 commit into
masterfrom
fix/v3-gateway-paths

Conversation

@chengzeyi

Copy link
Copy Markdown
Member

Why

py/wavespeed_api/client.py (imported by the registered wavespeed_predictor node) still called the legacy /api/v2 gateway for prediction-result polling and binary media upload. New orgs (id ≥ 500000) are now blocked from v1/v2 by the api-server legacy gate, so these calls would 403 for new accounts.

What

  • client.py: /api/v2/predictions/{id}/result and /api/v2/media/upload/binary (×2) → /api/v3/...
  • Fixed a stale /api/v2 docstring in wavespeed_api_endpoints.py
  • Bumped 2.0.02.0.1

The v3 routes use the identical {code,message,data} envelope (client already checks code != 200) and both exist under v3, so this is path-only. The other node modules were already on v3.

Verification

python3 -m py_compile clean on both files.

🤖 Generated with Claude Code

py/wavespeed_api/client.py (imported by the registered wavespeed_predictor
node) still called the legacy /api/v2 gateway for prediction-result polling
and binary media upload. New orgs (id >= 500000) are now blocked from v1/v2 by
the api-server legacy gate, so these calls would 403 for new accounts.

Switch them to /api/v3 (identical {code,message,data} envelope; both routes
exist under v3). The other node paths (wavespeed_api_utils.py,
wavespeed_predictor.py, wavespeed_api_endpoints.py) were already on v3; this
also fixes a stale v2 docstring. Bumps version 2.0.0 -> 2.0.1.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@chengzeyi
chengzeyi merged commit a24193e into master Jun 23, 2026
@chengzeyi
chengzeyi deleted the fix/v3-gateway-paths branch June 23, 2026 17:37
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