CodeArts IDE Online-Create Request接口:请求示例

时间:2025-02-12 14:55:35

请求示例

创建一个签名为“def add(x, y):”、语言为“python”、文档字符串为“sum two numbers”的代码生成请求。

POST https://{endpoint}/v2/aims/codemodelserver/code-generation/request{  "signature" : "def add(x, y):",  "language" : "python",  "docstring" : "sum two numbers",  "context" : "    return x + y",  "ide_type" : "pycharm professional",  "ide_version" : "2022.1.3",  "plugin_version" : "v0.1.0"}
support.huaweicloud.com/api-cloudide/CreateRequest.html