@cozeloop/prompt-components 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/basic-editor/custom-facet.js +9 -0
- package/dist/es/basic-editor/diff.js +138 -0
- package/dist/{go-syntax-067c4f5d.mjs → es/basic-editor/extensions/go-syntax.js} +9 -16
- package/dist/es/basic-editor/extensions/go-template.js +16 -0
- package/dist/{go-theme-062a6df6.mjs → es/basic-editor/extensions/go-theme.js} +4 -3
- package/dist/es/basic-editor/extensions/jinja.js +80 -0
- package/dist/es/basic-editor/extensions/keymap.js +442 -0
- package/dist/es/basic-editor/extensions/language-support.js +12 -0
- package/dist/es/basic-editor/extensions/markdown.js +58 -0
- package/dist/es/basic-editor/extensions/search/dom/icon.js +250 -0
- package/dist/es/basic-editor/extensions/search/dom/match-count.js +33 -0
- package/dist/es/basic-editor/extensions/search/index.js +18 -0
- package/dist/es/basic-editor/extensions/search/panel.js +418 -0
- package/dist/es/basic-editor/extensions/search/theme.js +184 -0
- package/dist/es/basic-editor/extensions/validation.js +84 -0
- package/dist/es/basic-editor/extensions/validation.module.js +5 -0
- package/dist/es/basic-editor/extensions/validation_module.css +7 -0
- package/dist/es/basic-editor/extensions/variable.js +178 -0
- package/dist/es/basic-editor/index.js +171 -0
- package/dist/es/code-editor/code-editor.js +83 -0
- package/dist/es/code-editor/index.js +12 -0
- package/dist/es/code-editor/json-editor.js +157 -0
- package/dist/es/code-editor/raw-text-editor.js +46 -0
- package/dist/es/code-editor/text-editor.js +41 -0
- package/dist/es/code-editor/themes/coze-dark.js +112 -0
- package/dist/es/code-editor/themes/coze-light.js +118 -0
- package/dist/es/consts/index.js +12 -0
- package/dist/es/dev-layout/index.js +35 -0
- package/dist/es/idls/fornax_ml_flow/index.js +2322 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/ai_annotate.js +41 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/aidpcallback.js +108 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/annotation_job.js +52 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/base.js +0 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/batch_infer.js +72 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/dataprocess.js +10 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/dataset.js +36 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/datasetv2.js +139 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/datasetv2job.js +40 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/datasetv2lineage.js +25 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/datasetv2similarity.js +12 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/filter.js +0 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/flow_devops_evaluation_callback_common.js +36 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/flow_devops_prompt_common.js +318 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/fornax_domain_model.js +326 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/ml_flow_domain_model.js +327 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/openapi.js +0 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_annotateservice.js +0 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_annotationjobservice.js +0 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_batchinferservice.js +0 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_crowdsourcingannotationjobservice.js +0 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_dataprocessservice.js +0 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_datasetservice.js +0 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_datasetservicev2.js +0 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_modelservice.js +0 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_annotationjobservice.js +0 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_batchinferservice.js +0 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_datasetservicev2.js +0 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_tagservice.js +0 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/tag.js +33 -0
- package/dist/es/idls/prompt_api/index.js +2009 -0
- package/dist/es/idls/prompt_api/namespaces/base.js +0 -0
- package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_callback.js +35 -0
- package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_commercial_openapi.js +0 -0
- package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_common.js +318 -0
- package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_debug.js +0 -0
- package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_manage.js +23 -0
- package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_mcp.js +0 -0
- package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_optimize.js +0 -0
- package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_paas.js +43 -0
- package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_platform.js +0 -0
- package/dist/es/idls/prompt_api/namespaces/mcp.js +9 -0
- package/dist/es/idls/prompt_api/namespaces/model.js +320 -0
- package/dist/es/idls/prompt_api/namespaces/permission.js +47 -0
- package/dist/es/idls/prompt_api/namespaces/release.js +25 -0
- package/dist/es/index.js +66 -0
- package/dist/es/mermaid-diagram/index.js +148 -0
- package/dist/es/mermaid-diagram/index.module.js +5 -0
- package/dist/es/mermaid-diagram/index_module.css +4 -0
- package/dist/es/mermaid-diagram/use-svg-pan-zoom.js +49 -0
- package/dist/es/mermaid-diagram/utils.js +74 -0
- package/dist/es/model-config-editor/basic-type.js +73 -0
- package/dist/es/model-config-editor/index.module.js +5 -0
- package/dist/es/model-config-editor/index_module.css +8 -0
- package/dist/es/model-config-editor/model-config-form.js +130 -0
- package/dist/es/model-config-editor/popover-type.js +118 -0
- package/dist/es/model-select/index.js +136 -0
- package/dist/es/model-select/index.module.js +5 -0
- package/dist/es/model-select/index_module.css +14 -0
- package/dist/es/model-select/model-option/index.js +161 -0
- package/dist/es/model-select/model-option/index.module.js +5 -0
- package/dist/es/model-select/model-option/index_module.css +23 -0
- package/dist/es/model-select/model-option-group/index.js +44 -0
- package/dist/es/prompt-editor/index.js +188 -0
- package/dist/es/prompt-editor/index.module.js +5 -0
- package/dist/es/prompt-editor/index_module.css +71 -0
- package/dist/es/prompt-editor/message-type-select.js +74 -0
- package/dist/es/schema-editor/index.js +43 -0
- package/dist/es/utils/base.js +53 -0
- package/dist/es/utils/model-config.js +32 -0
- package/dist/lib/basic-editor/custom-facet.js +33 -0
- package/dist/lib/basic-editor/diff.js +167 -0
- package/dist/lib/basic-editor/extensions/go-syntax.js +146 -0
- package/dist/lib/basic-editor/extensions/go-template.js +50 -0
- package/dist/lib/basic-editor/extensions/go-theme.js +1091 -0
- package/dist/lib/basic-editor/extensions/jinja.js +100 -0
- package/dist/lib/basic-editor/extensions/keymap.js +465 -0
- package/dist/lib/basic-editor/extensions/language-support.js +32 -0
- package/dist/lib/basic-editor/extensions/markdown.js +78 -0
- package/dist/lib/basic-editor/extensions/search/dom/icon.js +291 -0
- package/dist/lib/basic-editor/extensions/search/dom/match-count.js +67 -0
- package/dist/lib/basic-editor/extensions/search/index.js +38 -0
- package/dist/lib/basic-editor/extensions/search/panel.js +429 -0
- package/dist/lib/basic-editor/extensions/search/theme.js +208 -0
- package/dist/lib/basic-editor/extensions/validation.js +118 -0
- package/dist/lib/basic-editor/extensions/validation.module.js +25 -0
- package/dist/lib/basic-editor/extensions/validation_module.css +7 -0
- package/dist/lib/basic-editor/extensions/variable.js +190 -0
- package/dist/lib/basic-editor/index.js +193 -0
- package/dist/lib/code-editor/code-editor.js +117 -0
- package/dist/lib/code-editor/index.js +40 -0
- package/dist/lib/code-editor/json-editor.js +184 -0
- package/dist/lib/code-editor/raw-text-editor.js +70 -0
- package/dist/lib/code-editor/text-editor.js +75 -0
- package/dist/lib/code-editor/themes/coze-dark.js +136 -0
- package/dist/lib/code-editor/themes/coze-light.js +142 -0
- package/dist/lib/consts/index.js +38 -0
- package/dist/lib/dev-layout/index.js +69 -0
- package/dist/lib/idls/fornax_ml_flow/index.js +2414 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/ai_annotate.js +69 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/aidpcallback.js +140 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/annotation_job.js +82 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/base.js +16 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/batch_infer.js +105 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/dataprocess.js +34 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/dataset.js +63 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/datasetv2.js +177 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/datasetv2job.js +68 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/datasetv2lineage.js +50 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/datasetv2similarity.js +37 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/filter.js +16 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/flow_devops_evaluation_callback_common.js +62 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/flow_devops_prompt_common.js +378 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/fornax_domain_model.js +384 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/ml_flow_domain_model.js +385 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/openapi.js +16 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_annotateservice.js +16 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_annotationjobservice.js +16 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_batchinferservice.js +16 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_crowdsourcingannotationjobservice.js +16 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_dataprocessservice.js +16 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_datasetservice.js +16 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_datasetservicev2.js +16 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_modelservice.js +16 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_annotationjobservice.js +16 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_batchinferservice.js +16 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_datasetservicev2.js +16 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_tagservice.js +16 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/tag.js +60 -0
- package/dist/lib/idls/prompt_api/index.js +2071 -0
- package/dist/lib/idls/prompt_api/namespaces/base.js +16 -0
- package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_callback.js +62 -0
- package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_commercial_openapi.js +16 -0
- package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_common.js +378 -0
- package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_debug.js +16 -0
- package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_manage.js +49 -0
- package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_mcp.js +16 -0
- package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_optimize.js +16 -0
- package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_paas.js +72 -0
- package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_platform.js +16 -0
- package/dist/lib/idls/prompt_api/namespaces/mcp.js +33 -0
- package/dist/lib/idls/prompt_api/namespaces/model.js +377 -0
- package/dist/lib/idls/prompt_api/namespaces/permission.js +72 -0
- package/dist/lib/idls/prompt_api/namespaces/release.js +50 -0
- package/dist/lib/index.js +110 -0
- package/dist/lib/mermaid-diagram/index.js +174 -0
- package/dist/lib/mermaid-diagram/index.module.js +25 -0
- package/dist/lib/mermaid-diagram/index_module.css +4 -0
- package/dist/lib/mermaid-diagram/use-svg-pan-zoom.js +83 -0
- package/dist/lib/mermaid-diagram/utils.js +98 -0
- package/dist/lib/model-config-editor/basic-type.js +105 -0
- package/dist/lib/model-config-editor/index.module.js +25 -0
- package/dist/lib/model-config-editor/index_module.css +8 -0
- package/dist/lib/model-config-editor/model-config-form.js +149 -0
- package/dist/lib/model-config-editor/popover-type.js +145 -0
- package/dist/lib/model-select/index.js +170 -0
- package/dist/lib/model-select/index.module.js +25 -0
- package/dist/lib/model-select/index_module.css +14 -0
- package/dist/lib/model-select/model-option/index.js +188 -0
- package/dist/lib/model-select/model-option/index.module.js +25 -0
- package/dist/lib/model-select/model-option/index_module.css +23 -0
- package/dist/lib/model-select/model-option-group/index.js +75 -0
- package/dist/lib/prompt-editor/index.js +218 -0
- package/dist/lib/prompt-editor/index.module.js +25 -0
- package/dist/lib/prompt-editor/index_module.css +71 -0
- package/dist/lib/prompt-editor/message-type-select.js +108 -0
- package/dist/lib/schema-editor/index.js +77 -0
- package/dist/lib/utils/base.js +82 -0
- package/dist/lib/utils/model-config.js +67 -0
- package/dist/{src → types}/basic-editor/custom-facet.d.ts +1 -2
- package/dist/types/basic-editor/diff.d.ts +15 -0
- package/dist/types/basic-editor/extensions/go-syntax.d.ts +71 -0
- package/dist/types/basic-editor/extensions/go-template.d.ts +1 -0
- package/dist/{src → types}/basic-editor/extensions/go-theme.d.ts +1 -1
- package/dist/types/basic-editor/extensions/jinja.d.ts +6 -0
- package/dist/{src → types}/basic-editor/extensions/keymap.d.ts +2 -3
- package/dist/types/basic-editor/extensions/language-support.d.ts +2 -0
- package/dist/types/basic-editor/extensions/markdown.d.ts +2 -0
- package/dist/types/basic-editor/extensions/search/dom/icon.d.ts +59 -0
- package/dist/types/basic-editor/extensions/search/dom/match-count.d.ts +14 -0
- package/dist/types/basic-editor/extensions/search/index.d.ts +1 -0
- package/dist/types/basic-editor/extensions/search/panel.d.ts +32 -0
- package/dist/types/basic-editor/extensions/search/theme.d.ts +1 -0
- package/dist/types/basic-editor/extensions/validation.d.ts +10 -0
- package/dist/types/basic-editor/extensions/variable.d.ts +14 -0
- package/dist/types/basic-editor/index.d.ts +28 -0
- package/dist/types/code-editor/code-editor.d.ts +23 -0
- package/dist/{src → types}/code-editor/index.d.ts +1 -1
- package/dist/types/code-editor/json-editor.d.ts +17 -0
- package/dist/types/code-editor/raw-text-editor.d.ts +11 -0
- package/dist/types/code-editor/text-editor.d.ts +23 -0
- package/dist/types/code-editor/themes/coze-dark.d.ts +1 -0
- package/dist/types/code-editor/themes/coze-light.d.ts +1 -0
- package/dist/{src → types}/consts/index.d.ts +1 -1
- package/dist/types/dev-layout/index.d.ts +13 -0
- package/dist/types/idls/fornax_ml_flow/index.d.ts +779 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/ai_annotate.d.ts +102 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/aidpcallback.d.ts +227 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/annotation_job.d.ts +402 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/base.d.ts +18 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/batch_infer.d.ts +331 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/dataprocess.d.ts +16 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/dataset.d.ts +88 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/datasetv2.d.ts +462 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/datasetv2job.d.ts +180 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/datasetv2lineage.d.ts +69 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/datasetv2similarity.d.ts +8 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/filter.d.ts +39 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/flow_devops_evaluation_callback_common.d.ts +88 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/flow_devops_prompt_common.d.ts +370 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/fornax_domain_model.d.ts +320 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/ml_flow_domain_model.d.ts +510 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/openapi.d.ts +6 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_annotateservice.d.ts +106 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_annotationjobservice.d.ts +256 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_batchinferservice.d.ts +73 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_crowdsourcingannotationjobservice.d.ts +94 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_dataprocessservice.d.ts +11 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_datasetservice.d.ts +24 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_datasetservicev2.d.ts +653 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_modelservice.d.ts +83 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_annotationjobservice.d.ts +81 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_batchinferservice.d.ts +24 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_datasetservicev2.d.ts +260 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_tagservice.d.ts +111 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/tag.d.ts +109 -0
- package/dist/types/idls/prompt_api/index.d.ts +667 -0
- package/dist/types/idls/prompt_api/namespaces/base.d.ts +18 -0
- package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_callback.d.ts +102 -0
- package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_commercial_openapi.d.ts +81 -0
- package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_common.d.ts +1270 -0
- package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_debug.d.ts +197 -0
- package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_manage.d.ts +769 -0
- package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_mcp.d.ts +301 -0
- package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_optimize.d.ts +155 -0
- package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_paas.d.ts +198 -0
- package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_platform.d.ts +230 -0
- package/dist/types/idls/prompt_api/namespaces/mcp.d.ts +95 -0
- package/dist/types/idls/prompt_api/namespaces/model.d.ts +315 -0
- package/dist/types/idls/prompt_api/namespaces/permission.d.ts +52 -0
- package/dist/types/idls/prompt_api/namespaces/release.d.ts +62 -0
- package/dist/{src → types}/index.d.ts +7 -7
- package/dist/types/mermaid-diagram/index.d.ts +12 -0
- package/dist/types/mermaid-diagram/use-svg-pan-zoom.d.ts +17 -0
- package/dist/{src → types}/mermaid-diagram/utils.d.ts +1 -1
- package/dist/types/model-config-editor/basic-type.d.ts +19 -0
- package/dist/types/model-config-editor/model-config-form.d.ts +14 -0
- package/dist/types/model-config-editor/popover-type.d.ts +25 -0
- package/dist/types/model-select/index.d.ts +38 -0
- package/dist/types/model-select/model-option/index.d.ts +30 -0
- package/dist/types/model-select/model-option-group/index.d.ts +15 -0
- package/dist/types/prompt-editor/index.d.ts +30 -0
- package/dist/types/prompt-editor/message-type-select.d.ts +16 -0
- package/dist/types/schema-editor/index.d.ts +18 -0
- package/dist/{src → types}/utils/base.d.ts +4 -5
- package/dist/types/utils/model-config.d.ts +4 -0
- package/package.json +8 -16
- package/dist/edenx.config.d.ts +0 -2
- package/dist/go-syntax-4deb0289.js +0 -8
- package/dist/go-theme-fbd8a4fa.js +0 -1
- package/dist/index.cjs +0 -61
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -2788
- package/dist/src/basic-editor/diff.d.ts +0 -16
- package/dist/src/basic-editor/extensions/go-syntax.d.ts +0 -71
- package/dist/src/basic-editor/extensions/go-template.d.ts +0 -1
- package/dist/src/basic-editor/extensions/jinja.d.ts +0 -4
- package/dist/src/basic-editor/extensions/language-support.d.ts +0 -2
- package/dist/src/basic-editor/extensions/markdown.d.ts +0 -2
- package/dist/src/basic-editor/extensions/search/dom/icon.d.ts +0 -59
- package/dist/src/basic-editor/extensions/search/dom/match-count.d.ts +0 -14
- package/dist/src/basic-editor/extensions/search/index.d.ts +0 -1
- package/dist/src/basic-editor/extensions/search/panel.d.ts +0 -33
- package/dist/src/basic-editor/extensions/search/theme.d.ts +0 -1
- package/dist/src/basic-editor/extensions/validation.d.ts +0 -8
- package/dist/src/basic-editor/extensions/variable.d.ts +0 -11
- package/dist/src/basic-editor/index.d.ts +0 -29
- package/dist/src/code-editor/json-editor.d.ts +0 -18
- package/dist/src/code-editor/raw-text-editor.d.ts +0 -11
- package/dist/src/dev-layout/index.d.ts +0 -7
- package/dist/src/mermaid-diagram/index.d.ts +0 -12
- package/dist/src/mermaid-diagram/use-svg-pan-zoom.d.ts +0 -12
- package/dist/src/model-config-editor/basic-type.d.ts +0 -13
- package/dist/src/model-config-editor/model-config-form.d.ts +0 -13
- package/dist/src/model-config-editor/popover-type.d.ts +0 -19
- package/dist/src/model-select/index.d.ts +0 -27
- package/dist/src/model-select/model-option/index.d.ts +0 -25
- package/dist/src/model-select/model-option-group/index.d.ts +0 -16
- package/dist/src/prompt-editor/index.d.ts +0 -31
- package/dist/src/prompt-editor/message-type-select.d.ts +0 -11
- package/dist/src/schema-editor/index.d.ts +0 -11
- package/dist/src/utils/model-config.d.ts +0 -5
- package/dist/style.css +0 -1
- package/dist/test-build.d.ts +0 -7
- package/dist/vite.config.d.ts +0 -2
|
@@ -0,0 +1,510 @@
|
|
|
1
|
+
export type Int64 = string | number;
|
|
2
|
+
export declare enum ByteTreeNodeResourceProvider {
|
|
3
|
+
TCE = 1,
|
|
4
|
+
TCC = 2,
|
|
5
|
+
Bernard = 3,
|
|
6
|
+
}
|
|
7
|
+
export declare enum CommercialModelStatus {
|
|
8
|
+
Online = 1,
|
|
9
|
+
Offline = 2,
|
|
10
|
+
Deleted = 3,
|
|
11
|
+
FineTuneInQueue = 4,
|
|
12
|
+
FineTuneRunning = 5,
|
|
13
|
+
FineTuneFailed = 6,
|
|
14
|
+
FineTuneTerminated = 7,
|
|
15
|
+
}
|
|
16
|
+
export declare enum DataImportMode {
|
|
17
|
+
Undefined = 0,
|
|
18
|
+
/** 追加 */
|
|
19
|
+
Append = 1,
|
|
20
|
+
/** 覆盖 */
|
|
21
|
+
Overwrite = 2,
|
|
22
|
+
}
|
|
23
|
+
export declare enum DataSourceType {
|
|
24
|
+
Undefined = 0,
|
|
25
|
+
TOS = 1,
|
|
26
|
+
}
|
|
27
|
+
export declare enum Family {
|
|
28
|
+
Undefined = 0,
|
|
29
|
+
GPT = 1,
|
|
30
|
+
Seed = 2,
|
|
31
|
+
Gemini = 3,
|
|
32
|
+
Claude = 4,
|
|
33
|
+
Ernie = 5,
|
|
34
|
+
Baichuan = 6,
|
|
35
|
+
Qwen = 7,
|
|
36
|
+
GLM = 8,
|
|
37
|
+
SkyLark = 9,
|
|
38
|
+
Moonshot = 10,
|
|
39
|
+
Minimax = 11,
|
|
40
|
+
Doubao = 12,
|
|
41
|
+
Baichuan2 = 13,
|
|
42
|
+
DeepSeekV2 = 14,
|
|
43
|
+
DeepSeekCoderV2 = 15,
|
|
44
|
+
DeepseekCoder = 16,
|
|
45
|
+
InternLM2_5 = 17,
|
|
46
|
+
Qwen2 = 18,
|
|
47
|
+
Qwen2_5 = 19,
|
|
48
|
+
Qwen2_5_Coder = 20,
|
|
49
|
+
MiniCPM = 21,
|
|
50
|
+
MiniCPM3 = 22,
|
|
51
|
+
ChatGLM3 = 23,
|
|
52
|
+
Mistral = 24,
|
|
53
|
+
Gemma = 25,
|
|
54
|
+
Gemma2 = 26,
|
|
55
|
+
InternVL2 = 27,
|
|
56
|
+
InternVL2_5 = 28,
|
|
57
|
+
DeepSeekV3 = 29,
|
|
58
|
+
}
|
|
59
|
+
export declare enum IDC {
|
|
60
|
+
HL = 1,
|
|
61
|
+
LF = 2,
|
|
62
|
+
LQ = 3,
|
|
63
|
+
YG = 4,
|
|
64
|
+
GL = 5,
|
|
65
|
+
MALIVA = 101,
|
|
66
|
+
SG1 = 201,
|
|
67
|
+
MY = 202,
|
|
68
|
+
MY2 = 203,
|
|
69
|
+
MYCISB = 204,
|
|
70
|
+
}
|
|
71
|
+
export declare enum MerlinFramework {
|
|
72
|
+
LLMServerPublic = 1,
|
|
73
|
+
Laplace = 2,
|
|
74
|
+
}
|
|
75
|
+
export declare enum MerlinLLMInterface {
|
|
76
|
+
MatxInference = 1,
|
|
77
|
+
}
|
|
78
|
+
export declare enum MerlinQuotaPoolType {
|
|
79
|
+
/** 稳定资源 */
|
|
80
|
+
Default = 0,
|
|
81
|
+
/** 潮汐资源 */
|
|
82
|
+
Hybrid = 1,
|
|
83
|
+
/** 常混资源 */
|
|
84
|
+
HybridShare = 2,
|
|
85
|
+
/** 第三方资源ali */
|
|
86
|
+
ALI = 3,
|
|
87
|
+
/** 第三方资源hw */
|
|
88
|
+
HW = 4,
|
|
89
|
+
}
|
|
90
|
+
export declare enum ModelFilterKey {
|
|
91
|
+
ModelType = 1,
|
|
92
|
+
ModelUserRight = 2,
|
|
93
|
+
ModelFeature = 3,
|
|
94
|
+
ModelFunction = 4,
|
|
95
|
+
ModelScenario = 5,
|
|
96
|
+
Custom = 20,
|
|
97
|
+
}
|
|
98
|
+
export declare enum ModelFilterScene {
|
|
99
|
+
Default = 0,
|
|
100
|
+
EvalFunctionCall = 1,
|
|
101
|
+
}
|
|
102
|
+
export declare enum ModelParamType {
|
|
103
|
+
Unknown = 0,
|
|
104
|
+
Float = 1,
|
|
105
|
+
Int = 2,
|
|
106
|
+
Boolean = 3,
|
|
107
|
+
String = 4,
|
|
108
|
+
}
|
|
109
|
+
export declare enum ModelStatus {
|
|
110
|
+
Undefined = 0,
|
|
111
|
+
/** 健康可用 */
|
|
112
|
+
Available = 1,
|
|
113
|
+
/** 部署中 */
|
|
114
|
+
Deploying = 2,
|
|
115
|
+
/** 不可用(已下线) */
|
|
116
|
+
Unavailable = 3,
|
|
117
|
+
/** 下线中 */
|
|
118
|
+
Offlining = 4,
|
|
119
|
+
}
|
|
120
|
+
export declare enum Provider {
|
|
121
|
+
/** GPT OpenAPI平台 */
|
|
122
|
+
GPTOpenAPI = 1,
|
|
123
|
+
/** 火山方舟 */
|
|
124
|
+
Maas = 2,
|
|
125
|
+
/** 暂时特指seed从bot_engine接入 */
|
|
126
|
+
BotEngine = 3,
|
|
127
|
+
/** merlin平台 */
|
|
128
|
+
Merlin = 4,
|
|
129
|
+
/** merlin-seed平台 */
|
|
130
|
+
MerlinSeed = 5,
|
|
131
|
+
}
|
|
132
|
+
export declare enum ProviderAccountType {
|
|
133
|
+
AKSK = 1,
|
|
134
|
+
APIKey = 2,
|
|
135
|
+
}
|
|
136
|
+
export declare enum Region {
|
|
137
|
+
CN = 1,
|
|
138
|
+
SG = 2,
|
|
139
|
+
US = 3,
|
|
140
|
+
}
|
|
141
|
+
export declare enum RuntimeCustomParamType {
|
|
142
|
+
Unknown = 0,
|
|
143
|
+
StringList = 1,
|
|
144
|
+
IntList = 2,
|
|
145
|
+
FloatList = 3,
|
|
146
|
+
String = 4,
|
|
147
|
+
Int = 5,
|
|
148
|
+
Float = 6,
|
|
149
|
+
Bool = 7,
|
|
150
|
+
}
|
|
151
|
+
export declare enum RuntimeHookType {
|
|
152
|
+
Unknown = 0,
|
|
153
|
+
MsgPreHook = 1,
|
|
154
|
+
}
|
|
155
|
+
export declare enum SftTaskBaseModelType {
|
|
156
|
+
Foundation = 0,
|
|
157
|
+
Custom = 1,
|
|
158
|
+
}
|
|
159
|
+
export declare enum SftTaskErrCode {
|
|
160
|
+
Default = 0,
|
|
161
|
+
/** 前2位代表错误分类,后4位代表具体错误
|
|
162
|
+
10 通用错误 */
|
|
163
|
+
InternalErr = 100000,
|
|
164
|
+
/** 训练集上传到平台方时出错 */
|
|
165
|
+
TrainingSetUploadedErr = 100001,
|
|
166
|
+
/** 在平台方创建精调任务出错 */
|
|
167
|
+
CreateProviderSftTaskErr = 100002,
|
|
168
|
+
/** 20 Merlin任务实例整体报错 */
|
|
169
|
+
MerlinTaskInternalError = 200000,
|
|
170
|
+
/** gpu cpu mem 套餐配比错误 */
|
|
171
|
+
MerlinGpuCpuMemRatioBad = 200001,
|
|
172
|
+
/** 21 Merlin训练脚本主动上报的错误 */
|
|
173
|
+
MerlinReportedInternalErr = 210000,
|
|
174
|
+
MerlinOOM = 210001,
|
|
175
|
+
/** 没找到模型训练产物 */
|
|
176
|
+
MerlinNoModelGenerated = 210002,
|
|
177
|
+
/** 30 火山方舟任务失败
|
|
178
|
+
方舟通用错误 */
|
|
179
|
+
MaaSInternalErr = 300000,
|
|
180
|
+
/** 验证集比例分割异常 */
|
|
181
|
+
MaaSValidationSetSplitErr = 300001,
|
|
182
|
+
/** 训练数据格式不符合预期 */
|
|
183
|
+
MaaSTrainingSetNoValid = 300002,
|
|
184
|
+
/** 业务方的火山账号没有开通模型服务 */
|
|
185
|
+
MaaSAccountModelServiceIsNotActivated = 300003,
|
|
186
|
+
/** 缺少必要的请求参数。请确认请求参数后重试。 */
|
|
187
|
+
MaaSRequiredParamMissing = 300004,
|
|
188
|
+
/** 请求参数值不合法。请检查参数值的正确性后重试。 */
|
|
189
|
+
MaaSRequestParamInvalid = 300005,
|
|
190
|
+
/** 对象的标签存在重复Key */
|
|
191
|
+
MaaSDuplicateTags = 300006,
|
|
192
|
+
/** 无法同时上传验证集和设置训练集取样为验证集百分比,不支持该操作 */
|
|
193
|
+
MaaSNotSupportedToConfigureValidationSetAndPercentage = 300007,
|
|
194
|
+
/** 您没有权限访问基础模型的配置,不支持该操作 */
|
|
195
|
+
MaaSNotPermittedToAccessModel = 300008,
|
|
196
|
+
/** 模型不支持该训练方法,不支持该操作 */
|
|
197
|
+
MaaSModelNotSupportTheTrainingMethod = 300009,
|
|
198
|
+
/** 基础模型的版本不支持该训练方法,不支持该操作 */
|
|
199
|
+
MaaSFoundationModelNotSupportTheTrainingMethod = 300010,
|
|
200
|
+
/** 您的账单已逾期,不支持该操作。请前往火山费用中心充值 */
|
|
201
|
+
MaaSAccountBalanceOverdue = 300011,
|
|
202
|
+
/** 未知错误,请稍后重试。如果多次尝试仍失败,请提交工单 */
|
|
203
|
+
MaaSUnknownErr = 300012,
|
|
204
|
+
}
|
|
205
|
+
export declare enum SftTaskHyperParamType {
|
|
206
|
+
Int = 1,
|
|
207
|
+
Float = 2,
|
|
208
|
+
String = 3,
|
|
209
|
+
Bool = 4,
|
|
210
|
+
Percentage = 5,
|
|
211
|
+
}
|
|
212
|
+
export declare enum SftTaskOutputExportType {
|
|
213
|
+
/** 导出到新模型 */
|
|
214
|
+
NewModel = 1,
|
|
215
|
+
/** 导出到已有模型 */
|
|
216
|
+
ExistModel = 2,
|
|
217
|
+
}
|
|
218
|
+
export declare enum SftTaskOutputStatus {
|
|
219
|
+
/** 未导出 */
|
|
220
|
+
Available = 1,
|
|
221
|
+
/** 已导出 */
|
|
222
|
+
Exported = 2,
|
|
223
|
+
/** 已过期 */
|
|
224
|
+
Expired = 3,
|
|
225
|
+
/** 导出中 */
|
|
226
|
+
Exporting = 4,
|
|
227
|
+
/** 导出失败 */
|
|
228
|
+
ExportFailed = 5,
|
|
229
|
+
}
|
|
230
|
+
export declare enum SftTaskRunEventType {
|
|
231
|
+
Undefined = 0,
|
|
232
|
+
ErrorOccured = 1,
|
|
233
|
+
UploadCkpt = 2,
|
|
234
|
+
ReportMetricsURL = 3,
|
|
235
|
+
ReportProgress = 5,
|
|
236
|
+
ReportTrainingStart = 6,
|
|
237
|
+
ReportTrainingFinished = 7,
|
|
238
|
+
}
|
|
239
|
+
export declare enum SftTaskStatusPhase {
|
|
240
|
+
Preprocessing = 0,
|
|
241
|
+
Queued = 1,
|
|
242
|
+
Deploying = 2,
|
|
243
|
+
Running = 3,
|
|
244
|
+
Completing = 4,
|
|
245
|
+
Completed = 5,
|
|
246
|
+
Terminating = 6,
|
|
247
|
+
Terminated = 7,
|
|
248
|
+
Failed = 8,
|
|
249
|
+
}
|
|
250
|
+
export declare enum SftTaskTrainingMethod {
|
|
251
|
+
LoRA = 1,
|
|
252
|
+
Full = 2,
|
|
253
|
+
}
|
|
254
|
+
export declare enum SftTaskTrainingType {
|
|
255
|
+
SftFineTuning = 1,
|
|
256
|
+
}
|
|
257
|
+
export declare enum SftTaskValidationSetType {
|
|
258
|
+
SplitFromTrainingSet = 1,
|
|
259
|
+
}
|
|
260
|
+
export declare enum TaskStatus {
|
|
261
|
+
Undefined = 0,
|
|
262
|
+
/** 正在初始化 */
|
|
263
|
+
Initializing = 1,
|
|
264
|
+
/** 正在运行 */
|
|
265
|
+
Running = 2,
|
|
266
|
+
/** 成功完成 */
|
|
267
|
+
Done = 3,
|
|
268
|
+
/** 失败 */
|
|
269
|
+
Failed = 4,
|
|
270
|
+
/** 手动终止 */
|
|
271
|
+
Terminated = 5,
|
|
272
|
+
/** 成功完成,但有错误 */
|
|
273
|
+
DoneWithError = 6,
|
|
274
|
+
}
|
|
275
|
+
export declare enum TrainingDataFileType {
|
|
276
|
+
Undefined = 0,
|
|
277
|
+
JSONL = 1,
|
|
278
|
+
}
|
|
279
|
+
export declare enum TrainingDatasetType {
|
|
280
|
+
Undefined = 0,
|
|
281
|
+
SFTChat = 1,
|
|
282
|
+
SFTFunctionCall = 2,
|
|
283
|
+
SFTMultiModalUnderstanding = 3,
|
|
284
|
+
}
|
|
285
|
+
export declare enum TrainingFileOpType {
|
|
286
|
+
Undefined = 0,
|
|
287
|
+
Get = 1,
|
|
288
|
+
Put = 2,
|
|
289
|
+
}
|
|
290
|
+
export declare enum UsageScenario {
|
|
291
|
+
/** 默认场景 */
|
|
292
|
+
Default = 1,
|
|
293
|
+
/** 评测场景 */
|
|
294
|
+
Evaluation = 2,
|
|
295
|
+
/** Prompt as a Service调用 */
|
|
296
|
+
PromptAsAService = 3,
|
|
297
|
+
/** AI打标 */
|
|
298
|
+
AIAnnotate = 4,
|
|
299
|
+
/** 质量分 */
|
|
300
|
+
AIScore = 5,
|
|
301
|
+
/** 数据标签 */
|
|
302
|
+
AITag = 6,
|
|
303
|
+
}
|
|
304
|
+
export declare enum ValidateStatus {
|
|
305
|
+
Pass = 1,
|
|
306
|
+
Failed = 2,
|
|
307
|
+
Skip = 3,
|
|
308
|
+
}
|
|
309
|
+
export declare enum VisibleMode {
|
|
310
|
+
/** 默认(仅模型所属空间可见) */
|
|
311
|
+
Default = 1,
|
|
312
|
+
/** 指定空间可见 */
|
|
313
|
+
Specified = 2,
|
|
314
|
+
/** 所有空间可见 */
|
|
315
|
+
All = 3,
|
|
316
|
+
}
|
|
317
|
+
export interface Ability {
|
|
318
|
+
/** 最大上下文长度 */
|
|
319
|
+
maxContextTokens?: Int64;
|
|
320
|
+
/** 最大输入长度 */
|
|
321
|
+
maxInputTokens?: Int64;
|
|
322
|
+
/** 最大输出长度 */
|
|
323
|
+
maxOutputTokens?: Int64;
|
|
324
|
+
/** 是否支持函数调用 */
|
|
325
|
+
functionCallEnabled?: boolean;
|
|
326
|
+
/** 是否支持JSON模式 */
|
|
327
|
+
jsonModeEnabled?: boolean;
|
|
328
|
+
/** 是否支持多模态 */
|
|
329
|
+
multiModalEnabled?: boolean;
|
|
330
|
+
/** 多模态能力配置 */
|
|
331
|
+
multiModalAbility?: MultiModalAbility;
|
|
332
|
+
/** 消息预处理hook */
|
|
333
|
+
messagePreHandleHook?: RuntimeHook;
|
|
334
|
+
/** 模型可用的参数配置,优先级高于原有的maxContextTokens/maxInputTokens/maxOutputTokens */
|
|
335
|
+
modelParams?: Array<ModelParam>;
|
|
336
|
+
}
|
|
337
|
+
export interface CommercialModelSeries {
|
|
338
|
+
iconUrl?: string;
|
|
339
|
+
modelVendor?: string;
|
|
340
|
+
seriesName?: string;
|
|
341
|
+
}
|
|
342
|
+
export interface CommercialModelStatusDetail {
|
|
343
|
+
isNewModel?: boolean;
|
|
344
|
+
isAdvancedModel?: boolean;
|
|
345
|
+
}
|
|
346
|
+
export interface GPTOpenAPIInfo {
|
|
347
|
+
apiBaseURL?: string;
|
|
348
|
+
apiVersion?: string;
|
|
349
|
+
}
|
|
350
|
+
export interface IDCDeployDetail {
|
|
351
|
+
deployID?: string;
|
|
352
|
+
/** 资源对应服务树节点 id */
|
|
353
|
+
byteNodeID?: string;
|
|
354
|
+
region?: string;
|
|
355
|
+
deviceType?: string;
|
|
356
|
+
deviceDisplayName?: string;
|
|
357
|
+
instance?: string;
|
|
358
|
+
}
|
|
359
|
+
export interface InstanceResourceOption {
|
|
360
|
+
cpus?: string;
|
|
361
|
+
/** 单位 GB */
|
|
362
|
+
mem?: string;
|
|
363
|
+
gpus?: string;
|
|
364
|
+
}
|
|
365
|
+
export interface MaasInfo {
|
|
366
|
+
host?: string;
|
|
367
|
+
region?: string;
|
|
368
|
+
/** v3 sdk */
|
|
369
|
+
baseURL?: string;
|
|
370
|
+
/** 精调模型任务的 ID */
|
|
371
|
+
customizationJobsID?: string;
|
|
372
|
+
}
|
|
373
|
+
export interface MerlinInfo {
|
|
374
|
+
psm?: string;
|
|
375
|
+
cluster?: string;
|
|
376
|
+
idcs?: Array<IDC>;
|
|
377
|
+
framework?: MerlinFramework;
|
|
378
|
+
instanceResourceOption?: InstanceResourceOption;
|
|
379
|
+
/** 资源配置 */
|
|
380
|
+
deployDetailM?: Record<IDC, IDCDeployDetail>;
|
|
381
|
+
/** 服务节点id */
|
|
382
|
+
byteTreeNodeID?: Int64;
|
|
383
|
+
/** 服务树路径 */
|
|
384
|
+
byteTreeNodePath?: string;
|
|
385
|
+
/** 服务详情链接 */
|
|
386
|
+
serviceDetailURL?: string;
|
|
387
|
+
/** LLM 接口信息 */
|
|
388
|
+
llmInterface?: MerlinLLMInterface;
|
|
389
|
+
/** 是否开启 vllm */
|
|
390
|
+
useVLLMServe?: boolean;
|
|
391
|
+
/** 调用 vllm 的 API 路径,仅开启 vllm 时使用 */
|
|
392
|
+
vllmAPIPath?: string;
|
|
393
|
+
}
|
|
394
|
+
export interface Model {
|
|
395
|
+
/** 模型id, 在商业化场景下可为空,如果为空则用identification+provider直接调用模型 */
|
|
396
|
+
id?: Int64;
|
|
397
|
+
/** 模型标识(name,endpoint,与各提供方对齐) */
|
|
398
|
+
identification?: string;
|
|
399
|
+
/** 展示名称 */
|
|
400
|
+
displayName?: string;
|
|
401
|
+
/** 模型描述 */
|
|
402
|
+
description?: string;
|
|
403
|
+
/** 模型家族 */
|
|
404
|
+
family?: Family;
|
|
405
|
+
/** 提供方 */
|
|
406
|
+
provider?: Provider;
|
|
407
|
+
/** 提供方信息 */
|
|
408
|
+
providerInfo?: ProviderInfo;
|
|
409
|
+
/** 是否为公共模型 */
|
|
410
|
+
isPublic?: boolean;
|
|
411
|
+
/** 可见性 */
|
|
412
|
+
visibility?: Visibility;
|
|
413
|
+
/** 所属空间id */
|
|
414
|
+
spaceID?: Int64;
|
|
415
|
+
/** 模型能力 */
|
|
416
|
+
ability?: Ability;
|
|
417
|
+
/** 默认运行时参数 */
|
|
418
|
+
defaultRuntimeParam?: RuntimeParam;
|
|
419
|
+
/** 创建人 */
|
|
420
|
+
createdBy?: string;
|
|
421
|
+
/** 更新人 */
|
|
422
|
+
updatedBy?: string;
|
|
423
|
+
/** 创建时间 */
|
|
424
|
+
createdAt?: Int64;
|
|
425
|
+
/** 更新时间 */
|
|
426
|
+
updatedAt?: Int64;
|
|
427
|
+
/** 编辑版本(用于解决多人同时更新问题) */
|
|
428
|
+
editVersion?: Int64;
|
|
429
|
+
modelStatus?: ModelStatus;
|
|
430
|
+
/** 模型提供方侧的 model id */
|
|
431
|
+
externalModelID?: string;
|
|
432
|
+
/** 从精调模型任务的产出中新建推理点产生的模型 */
|
|
433
|
+
sftTaskID?: Int64;
|
|
434
|
+
/** 模型版本 */
|
|
435
|
+
modelVersion?: string;
|
|
436
|
+
/** 模型头像 */
|
|
437
|
+
modelIcon?: string;
|
|
438
|
+
/** 模型公司 */
|
|
439
|
+
modelVendor?: string;
|
|
440
|
+
/** 模型真实名称(展示在vendor右侧,可能是豆包endpoint或其他厂商的模型名称) */
|
|
441
|
+
actualName?: string;
|
|
442
|
+
/** 模型标签 */
|
|
443
|
+
modelTags?: Array<string>;
|
|
444
|
+
/** 商业化模型状态 */
|
|
445
|
+
commercialModelStatus?: CommercialModelStatus;
|
|
446
|
+
/** 商业化模型状态详情 */
|
|
447
|
+
commercialModelStatusDetail?: CommercialModelStatusDetail;
|
|
448
|
+
/** 商业化模型系列 */
|
|
449
|
+
commercialModelSeries?: CommercialModelSeries;
|
|
450
|
+
}
|
|
451
|
+
export interface ModelParam {
|
|
452
|
+
name?: string;
|
|
453
|
+
label?: string;
|
|
454
|
+
desc?: string;
|
|
455
|
+
/** 类型: bool/int/float等 */
|
|
456
|
+
modelParamType?: ModelParamType;
|
|
457
|
+
min?: string;
|
|
458
|
+
max?: string;
|
|
459
|
+
defaultVal?: string;
|
|
460
|
+
/** 枚举 */
|
|
461
|
+
modelParamOptions?: Array<ModelParamOption>;
|
|
462
|
+
}
|
|
463
|
+
export interface ModelParamOption {
|
|
464
|
+
/** 展示值 */
|
|
465
|
+
label?: string;
|
|
466
|
+
/** 实际值 */
|
|
467
|
+
value?: string;
|
|
468
|
+
}
|
|
469
|
+
export interface MultiModalAbility {
|
|
470
|
+
/** [1, 99] 图片配置
|
|
471
|
+
是否支持图片 */
|
|
472
|
+
imageEnabled?: boolean;
|
|
473
|
+
/** 是否支持二进制图片 */
|
|
474
|
+
binaryImageEnabled?: boolean;
|
|
475
|
+
/** 单张图片大小限制, 范围 [0, 20]MB */
|
|
476
|
+
maxImageSizeInMB?: number;
|
|
477
|
+
/** 最大图片数量, 范围 [-1, 100], -1 表示无限制 */
|
|
478
|
+
maxImageCount?: number;
|
|
479
|
+
}
|
|
480
|
+
export interface ProviderInfo {
|
|
481
|
+
gptOpenAPI?: GPTOpenAPIInfo;
|
|
482
|
+
maas?: MaasInfo;
|
|
483
|
+
merlin?: MerlinInfo;
|
|
484
|
+
}
|
|
485
|
+
export interface RuntimeCustomParam {
|
|
486
|
+
name?: string;
|
|
487
|
+
type?: RuntimeCustomParamType;
|
|
488
|
+
value?: string;
|
|
489
|
+
}
|
|
490
|
+
export interface RuntimeHook {
|
|
491
|
+
type?: RuntimeHookType;
|
|
492
|
+
url?: string;
|
|
493
|
+
}
|
|
494
|
+
export interface RuntimeParam {
|
|
495
|
+
/** 最大输出长度 */
|
|
496
|
+
maxTokens?: Int64;
|
|
497
|
+
temperature?: number;
|
|
498
|
+
topP?: number;
|
|
499
|
+
topK?: Int64;
|
|
500
|
+
jsonMode?: boolean;
|
|
501
|
+
/** 停止词, 值必须是json序列化后的字符串数组 */
|
|
502
|
+
stopWords?: string;
|
|
503
|
+
/** 运行时自定义参数 */
|
|
504
|
+
runtimeCustomParams?: Array<RuntimeCustomParam>;
|
|
505
|
+
}
|
|
506
|
+
export interface Visibility {
|
|
507
|
+
mode?: VisibleMode;
|
|
508
|
+
/** Mode为Specified有效,配置为除模型所属空间外的其他空间 */
|
|
509
|
+
spaceIDs?: Array<Int64>;
|
|
510
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import * as ai_annotate from './ai_annotate';
|
|
2
|
+
import * as base from './base';
|
|
3
|
+
export type Int64 = string | number;
|
|
4
|
+
export interface CreateAIAnnotateTaskReq {
|
|
5
|
+
name?: string;
|
|
6
|
+
datasetID?: string;
|
|
7
|
+
datasetColumnName?: string;
|
|
8
|
+
promptID?: string;
|
|
9
|
+
promptVersion?: string;
|
|
10
|
+
userPromptColumnName?: string;
|
|
11
|
+
promptVariables?: Array<ai_annotate.PromptVariable>;
|
|
12
|
+
/** 打标并发度 */
|
|
13
|
+
executeConcurrency?: number;
|
|
14
|
+
space_id?: string;
|
|
15
|
+
base?: base.Base;
|
|
16
|
+
}
|
|
17
|
+
export interface CreateAIAnnotateTaskResp {
|
|
18
|
+
id?: string;
|
|
19
|
+
baseResp?: base.BaseResp;
|
|
20
|
+
}
|
|
21
|
+
export interface DeleteAIAnnotateTaskReq {
|
|
22
|
+
task_id?: string;
|
|
23
|
+
space_id?: string;
|
|
24
|
+
base?: base.Base;
|
|
25
|
+
}
|
|
26
|
+
export interface DeleteAIAnnotateTaskResp {
|
|
27
|
+
baseResp?: base.BaseResp;
|
|
28
|
+
}
|
|
29
|
+
export interface DryRunAIAnnotateResp {
|
|
30
|
+
items?: Array<ai_annotate.AIAnnotateResultItem>;
|
|
31
|
+
baseResp?: base.BaseResp;
|
|
32
|
+
}
|
|
33
|
+
export interface DryRunAIAnnotateTaskReq {
|
|
34
|
+
datasetID?: string;
|
|
35
|
+
datasetColumnName?: string;
|
|
36
|
+
promptID?: string;
|
|
37
|
+
promptVersion?: string;
|
|
38
|
+
userPromptColumnName?: string;
|
|
39
|
+
promptVariables?: Array<ai_annotate.PromptVariable>;
|
|
40
|
+
/** 不指定则默认读取数据集前5条样本数据 */
|
|
41
|
+
sampleCount?: Int64;
|
|
42
|
+
space_id?: string;
|
|
43
|
+
base?: base.Base;
|
|
44
|
+
}
|
|
45
|
+
export interface GetAIAnnotateTaskReq {
|
|
46
|
+
task_id?: string;
|
|
47
|
+
space_id?: string;
|
|
48
|
+
base?: base.Base;
|
|
49
|
+
}
|
|
50
|
+
export interface GetAIAnnotateTaskResp {
|
|
51
|
+
task?: ai_annotate.AIAnnotateTask;
|
|
52
|
+
baseResp?: base.BaseResp;
|
|
53
|
+
}
|
|
54
|
+
export interface GetAIAnnotateTaskRunReq {
|
|
55
|
+
task_id?: string;
|
|
56
|
+
task_run_id?: string;
|
|
57
|
+
space_id?: string;
|
|
58
|
+
base?: base.Base;
|
|
59
|
+
}
|
|
60
|
+
export interface GetAIAnnotateTaskRunResp {
|
|
61
|
+
taskRun?: ai_annotate.AIAnnotateTaskRun;
|
|
62
|
+
baseResp?: base.BaseResp;
|
|
63
|
+
}
|
|
64
|
+
export interface ListAIAnnotateTaskReq {
|
|
65
|
+
dataset_id?: string;
|
|
66
|
+
space_id?: string;
|
|
67
|
+
base?: base.Base;
|
|
68
|
+
}
|
|
69
|
+
export interface ListAIAnnotateTaskResp {
|
|
70
|
+
tasks?: Array<ai_annotate.AIAnnotateTask>;
|
|
71
|
+
baseResp?: base.BaseResp;
|
|
72
|
+
}
|
|
73
|
+
export interface RunAIAnnotateReq {
|
|
74
|
+
task_id?: string;
|
|
75
|
+
taskRunType?: ai_annotate.AIAnnotateTaskRunType;
|
|
76
|
+
space_id?: string;
|
|
77
|
+
base?: base.Base;
|
|
78
|
+
}
|
|
79
|
+
export interface RunAIAnnotateResp {
|
|
80
|
+
runID?: string;
|
|
81
|
+
baseResp?: base.BaseResp;
|
|
82
|
+
}
|
|
83
|
+
export interface TerminateAIAnnotateTaskRunReq {
|
|
84
|
+
task_id?: string;
|
|
85
|
+
task_run_id?: string;
|
|
86
|
+
space_id?: string;
|
|
87
|
+
base?: base.Base;
|
|
88
|
+
}
|
|
89
|
+
export interface TerminateAIAnnotateTaskRunResp {
|
|
90
|
+
baseResp?: base.BaseResp;
|
|
91
|
+
}
|
|
92
|
+
export interface UpdateAIAnnotateTaskReq {
|
|
93
|
+
task_id?: string;
|
|
94
|
+
name?: string;
|
|
95
|
+
promptID?: string;
|
|
96
|
+
promptVersion?: string;
|
|
97
|
+
userPromptColumnName?: string;
|
|
98
|
+
promptVariables?: Array<ai_annotate.PromptVariable>;
|
|
99
|
+
/** 打标并发度 */
|
|
100
|
+
executeConcurrency?: number;
|
|
101
|
+
space_id?: string;
|
|
102
|
+
base?: base.Base;
|
|
103
|
+
}
|
|
104
|
+
export interface UpdateAIAnnotateTaskResp {
|
|
105
|
+
baseResp?: base.BaseResp;
|
|
106
|
+
}
|