Skip to content

Commit 0d825f3

Browse files
committed
fix(somark): update base url and endpoint construction
1 parent 49398b6 commit 0d825f3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tools/somark/provider/somark.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ credentials_for_provider:
44
en_US: Base URL
55
zh_Hans: 服务地址
66
placeholder:
7-
en_US: https://somark.tech/api/v1/extract
8-
zh_Hans: https://somark.tech/api/v1/extract
7+
en_US: https://somark.tech/api/v1
8+
zh_Hans: https://somark.tech/api/v1
99
required: true
1010
type: text-input
1111
api_key:

tools/somark/tools/extract.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def _invoke(self, tool_parameters: Dict[str, Any]) -> Generator[ToolInvokeMessag
2121
# 2. Get configuration
2222
base_url = self.runtime.credentials.get("base_url")
2323
if not base_url:
24-
base_url = "https://somark.tech/api/v1/extract"
24+
base_url = "https://somark.tech/api/v1"
2525

2626
api_key = self.runtime.credentials.get("api_key")
2727
if not api_key:
@@ -30,7 +30,7 @@ def _invoke(self, tool_parameters: Dict[str, Any]) -> Generator[ToolInvokeMessag
3030

3131
# 3. Construct URL
3232
base_url = base_url.rstrip("/")
33-
url = f"{base_url}/acc_sync"
33+
url = f"{base_url}/extract/acc_sync"
3434

3535
# 4. Prepare request
3636
try:

0 commit comments

Comments
 (0)