Skip to content

Commit 8b3441f

Browse files
committed
fix: correct hardcoded docs URLs in error mapper
1 parent c058888 commit 8b3441f

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "runware-sdk"
3-
version = "1.3.0"
3+
version = "1.3.1"
44
description = "Async Python SDK for the Runware platform — image, video, audio, text, and 3D generation, plus upscaling, background removal, and more, over REST or WebSocket with typed parameters and runtime validation."
55
readme = "README.md"
66
requires-python = ">=3.11"

runware/errors.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@
3838
"modelSearch": "platform/model-search",
3939
"modelUpload": "platform/model-upload",
4040
"imageUpload": "platform/image-upload",
41-
"getResponse": "platform/get-response",
41+
"getResponse": "platform/task-polling",
4242
"accountManagement": "platform/account-management",
4343
}
4444

45-
_SDK_ERROR_DOC_PATH = "getting-started/errors"
45+
_SDK_ERROR_DOC_PATH = "platform/errors"
4646

4747
_SDK_ONLY_RAW_CODES: set[str] = {
4848
"aborted",

tests/test_errors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def test_documentation_url_for_utility_task(self) -> None:
139139

140140
def test_documentation_url_for_sdk_only_raw_code(self) -> None:
141141
err = create_runware_error("noFetchImpl", "no fetch")
142-
assert err.documentation == "https://runware.ai/docs/getting-started/errors"
142+
assert err.documentation == "https://runware.ai/docs/platform/errors"
143143

144144

145145
class TestParseApiError:

0 commit comments

Comments
 (0)