Skip to content

Commit

Permalink
treemind组件开发
Browse files Browse the repository at this point in the history
  • Loading branch information
yepeiwen01 committed Nov 7, 2024
1 parent bc24223 commit 27920ac
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
18 changes: 0 additions & 18 deletions appbuilder/core/components/tree_mind/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,21 +58,3 @@ os.environ["APPBUILDER_TOKEN"] = "bce-YOURTOKEN"
| 参数名称 |参数类型 | 描述 | 示例 |
|-------------|--------|------|------|
| resp | obj:`Message` | 组件返回结果 | Message(name=msg, content={'result': '生成的思维导图:xxx。思维导图已经为您生成好了,如果您觉得这个思维导图还不够完美,或者您的想法需要更自由地表达,点击编辑按钮,对思维导图变形、变色、变内容、甚至可以添加新的元素,您可以通过这个链接编辑:xxx。', 'img_link': 'xxx', 'edit_link': 'xxx'}, mtype=dict) |

### 错误码
| 错误码 |描述|
|---|---|
| 282000 |服务器内部错误,请再次请求, 如果持续出现此类错误,请在控制台提交工单联系技术支持团队|
| 282004 |请求中包含敏感词、非法参数、字数超限,或上传违规参考图,请检查后重新尝试|
| 282003 |缺少必要参数|
| 17 |日配额流量超限|
| 18 |QPS 超限额|
| 216630 |服务器内部错误,请再次请求,如果持续出现此类错误,请通过工单联系技术支持|
| 501 |文本黄反拦截|
| 201 |模型生图失败|
| 216100 |参数不满足格式要求|
| 216201 |参考图不满足格式要求|
| 4 |错误信息为中文的“请求超限”指所有用户提交的树图工具使用总数超限制|
| 13 |错误信息为中文的“QPS 超限”指单个用户使用提交请求接口的 QPS 超限|
| 15 |错误信息为中文的“并发超限”指单个用户使用树图工具的并发超限|
| 17 |错误信息为中文的“用量超限”指单个用户使用树图工具的用量超限|
2 changes: 1 addition & 1 deletion appbuilder/core/components/tree_mind/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def _post(self, query, **kwargs):
headers = self.http_client.auth_header(kwargs.get("traceid"))

headers['Content-Type'] = 'application/json'
tree_mind_url = self.http_client.service_url("/v1/component/component/treemind")
tree_mind_url = self.http_client.service_url("/v1/component/component/query_mind_open")

payload = TreeMindRequest.model_dump(request)

Expand Down

0 comments on commit 27920ac

Please sign in to comment.