Tags: WaveSpeedAI/wavespeed-python
Tags
Add get_result as public API llama-index-tools-wavespeed had to reach for the private _get_result to recover a prediction by id after a local wait timed out. That is a real use case — the task keeps running server-side — so expose it as Client.get_result plus a module-level wavespeed.get_result. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LJJXU9zyoDSBjApcUpteDt
Align Python SDK with sibling SDKs: run_no_throw, terminal statuses, …
…OS vocab
Cross-SDK audit fixes so all four WaveSpeed SDKs behave identically:
- Port run_no_throw from the JavaScript SDK: returns a structured
{status, outputs, task_id, error} result instead of raising, and
extracts the task_id from sync-timeout responses (code 5004) so the
still-processing task can be queried later, mirroring runNoThrow.
Exposed on Client and as module-level wavespeed.run_no_throw.
- Treat "cancelled" and "timeout" statuses as terminal failures in the
wait loop (previously polled forever), surfacing the API's error text.
- Send "windows" instead of "win32" in X-Client-OS so all SDKs share
the darwin/linux/windows vocabulary.
- Fix upload docstring in api/__init__.py: upload returns the URL str,
not a dict.
- Document WAVESPEED_CLIENT_NAME in the README env-var table.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LJJXU9zyoDSBjApcUpteDt
PreviousNext