Skip to content

Commit 90d9d65

Browse files
author
liyan.90210
committed
feat auto update sdk
1 parent 7b50119 commit 90d9d65

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

Changelog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
### Change log
22

3+
2026-03-19 Bumped to version v1.0.218
4+
- Updated apis for content_security
5+
36
2026-03-12 Bumped to version v1.0.217
47
- Updated apis for tls/visual
58

volcengine/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# coding:utf-8
2-
VERSION='v1.0.217'
2+
VERSION='v1.0.218'

volcengine/content_security/RcLlmAgentService.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ def get_api_info():
4545
{"Action": "AsyncLlmMultiModeration", "Version": "2022-08-26"}, {}, {}),
4646
"GetMultiModerationResult": ApiInfo("GET", "/openapi/v1/rc_llm/multi_moderation_result",
4747
{"Action": "GetMultiModerationResult", "Version": "2022-08-26"}, {}, {}),
48+
"ImageTextLiteModeration": ApiInfo("POST", "/openapi/v1/rc_llm/image_text_lite_moderation",
49+
{"Action": "ImageTextLiteModeration", "Version": "2022-08-26"}, {}, {}),
4850
}
4951

5052
return api_info
@@ -134,4 +136,13 @@ def get_multi_moderation_result(self, params, body):
134136
if res == '':
135137
raise Exception("empty response")
136138
res_json = json.loads(res)
139+
return res_json
140+
141+
@redo.retriable(sleeptime=0.1, jitter=0.01, attempts=2,
142+
retry_exceptions=(exceptions.ConnectionError, exceptions.ConnectTimeout))
143+
def image_text_lite_moderation(self, params, body):
144+
res = self.json("ImageTextLiteModeration", params, json.dumps(body))
145+
if res == '':
146+
raise Exception("empty response")
147+
res_json = json.loads(res)
137148
return res_json

0 commit comments

Comments
 (0)