Skip to content

Commit 71362e3

Browse files
author
mengqian
committed
modify request url
1 parent 12be5ce commit 71362e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zhipuai/api_resource/file_parser/file_parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def create(
5757
# multipart/form-data; boundary=---abc--
5858
extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
5959
return self._post(
60-
"/fileParse/create",
60+
"/files/parser/create",
6161
body=maybe_transform(body, FileParserCreateParams),
6262
files=files,
6363
options=make_request_options(
@@ -89,7 +89,7 @@ def content(
8989
raise ValueError(f"Expected a non-empty value for `task_id` but received {task_id!r}")
9090
extra_headers = {"Accept": "application/binary", **(extra_headers or {})}
9191
return self._get(
92-
f"/fileParse/getResult/{task_id}/{format_type}",
92+
f"/files/parser/getResult/{task_id}/{format_type}",
9393
options=make_request_options(
9494
extra_headers=extra_headers, extra_body=extra_body, timeout=timeout
9595
),

0 commit comments

Comments
 (0)