GET 获取模板创作上下文
GET /loom/v1/templateAuthoringContext 获取模板创作上下文
所属分组:Models · 可执行模型
Returns current Profile contracts and currently eligible models for TemplateSpec v2 authoring.
BASE URL
https://router.shengsuanyun.com/api认证方式
Authorization: Bearer YOUR_API_KEY端点列表
GET/loom/v1/templateAuthoringContextGet template authoring context
Returns current Profile contracts and currently eligible models for TemplateSpec v2 authoring.
请求示例
参考地址:https://loomloom.shengsuanyun.com。路径参数与凭据需替换;非 JSON 请求体需按对应格式准备。
curl -X GET 'https://loomloom.shengsuanyun.com/loom/v1/templateAuthoringContext' \
-H 'Authorization: Bearer YOUR_API_KEY'响应
200 OK
application/json
| 字段 | 类型 | 说明 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
codeExecution | object | 展开结构
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
profiles | array | 展开结构
数组元素
|
{
"codeExecution": {
"maxSourceBytes": 0
},
"profiles": [
{
"canonicalHash": "string",
"capability": "string",
"compiler": "string",
"defaultModelAvailable": false,
"definition": {
"constraints": {},
"executionUnit": "string",
"inputs": [
{
"acceptedMimeTypes": [
null
],
"kind": "string",
"maxItems": 0,
"minItems": 0,
"portId": "string",
"required": false,
"valueType": "string"
}
],
"operation": "string",
"outputs": [
{
"acceptedMimeTypes": [
null
],
"kind": "string",
"maxItems": 0,
"minItems": 0,
"portId": "string",
"required": false,
"valueType": "string"
}
],
"schemaVersion": "string"
},
"dynamic": false,
"eligibleModels": [
{
"authoringOptions": [
{
"capabilityProfile": null,
"fixedModelContract": null,
"kind": null
}
],
"displayName": "string",
"modelId": "string",
"supportedStepTypes": [
"string"
]
}
],
"endpoint": "string",
"inputPorts": [
{
"acceptedMimeTypes": [
"string"
],
"kind": "string",
"maxItems": 0,
"minItems": 0,
"portId": "string",
"required": false,
"valueType": "string"
}
],
"operations": {
"defaultModelId": "string",
"description": "string",
"displayName": "string",
"recommended": false,
"sortOrder": 0
},
"output": {
"text": false,
"usage": false
},
"profileId": "string",
"revision": "string",
"stream": false
}
]
}401 Unauthorized
application/json
| 字段 | 类型 | 说明 |
|---|---|---|
code | string | |
error | string |
{
"code": "string",
"error": "string"
}500 Internal Server Error
application/json
| 字段 | 类型 | 说明 |
|---|---|---|
code | string | |
error | string |
{
"code": "string",
"error": "string"
}