diff options
| author | Zhineng Li <[email protected]> | 2026-02-13 10:54:11 +0800 |
|---|---|---|
| committer | Zhineng Li <[email protected]> | 2026-02-13 10:54:11 +0800 |
| commit | 7347bac4ab7e136157fc94777e6cf87ef9e08599 (patch) | |
| tree | 0dec367dac6e152161a6f7cc0dba6ebbef1f34a2 /data/zh_cn/searchplat/2024-05-29 | |
| download | acs-metadata-full-main.tar.gz acs-metadata-full-main.zip | |
first commitHEADv1.0.0+20260212main
Diffstat (limited to 'data/zh_cn/searchplat/2024-05-29')
| -rw-r--r-- | data/zh_cn/searchplat/2024-05-29/api-docs.php | 1670 |
1 files changed, 1670 insertions, 0 deletions
diff --git a/data/zh_cn/searchplat/2024-05-29/api-docs.php b/data/zh_cn/searchplat/2024-05-29/api-docs.php new file mode 100644 index 0000000..a5511f6 --- /dev/null +++ b/data/zh_cn/searchplat/2024-05-29/api-docs.php @@ -0,0 +1,1670 @@ +<?php return [ + 'version' => '1.0', + 'info' => [ + 'product' => 'Searchplat', + 'version' => '2024-05-29', + ], + 'directories' => [ + [ + 'id' => 0, + 'title' => '其它', + 'type' => 'directory', + 'children' => [ + 'GetTextGeneration', + 'GetDocumentAnalyzeTaskStatus', + 'GetDocumentRank', + 'GetDocumentSplit', + 'CreateDocumentAnalyzeTask', + 'GetTextSparseEmbedding', + 'GetQueryAnalysis', + 'CreateImageAnalyzeTask', + 'GetImageAnalyzeTaskStatus', + 'GetTextEmbedding', + 'GetWebSearch', + 'GetEmbeddingTuning', + 'GetPrediction', + ], + ], + ], + 'components' => [ + 'schemas' => [], + ], + 'apis' => [ + 'GetTextGeneration' => [ + 'summary' => '大模型问答', + 'path' => '/v3/openapi/workspaces/{workspace_name}/text-generation/{service_id}', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'BearerToken' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'paid', + ], + 'parameters' => [ + [ + 'name' => 'workspace_name', + 'in' => 'path', + 'schema' => [ + 'type' => 'string', + 'required' => true, + ], + ], + [ + 'name' => 'service_id', + 'in' => 'path', + 'schema' => [ + 'type' => 'string', + 'required' => true, + ], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'messages' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'content' => [ + 'type' => 'string', + ], + 'role' => [ + 'type' => 'string', + ], + ], + ], + 'required' => true, + ], + 'stream' => [ + 'type' => 'boolean', + ], + 'csi_level' => [ + 'type' => 'string', + ], + 'parameters' => [ + 'type' => 'object', + ], + 'enable_search' => [ + 'type' => 'boolean', + ], + ], + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'request_id' => [ + 'type' => 'string', + ], + 'latency' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + 'usage' => [ + 'type' => 'object', + 'properties' => [ + 'output_tokens' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + 'input_tokens' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + 'total_tokens' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + ], + ], + 'result' => [ + 'type' => 'object', + 'properties' => [ + 'text' => [ + 'type' => 'string', + ], + 'search_results' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'title' => [ + 'type' => 'string', + ], + 'url' => [ + 'type' => 'string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '', + ], + 'GetDocumentAnalyzeTaskStatus' => [ + 'summary' => '获取文档解析异步提取任务状态', + 'path' => '/v3/openapi/workspaces/{workspace_name}/document-analyze/{service_id}/async/task-status', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'BearerToken' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'paid', + ], + 'parameters' => [ + [ + 'name' => 'workspace_name', + 'in' => 'path', + 'schema' => [ + 'type' => 'string', + 'required' => true, + ], + ], + [ + 'name' => 'service_id', + 'in' => 'path', + 'schema' => [ + 'type' => 'string', + 'required' => true, + ], + ], + [ + 'name' => 'task_id', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + 'required' => true, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'request_id' => [ + 'type' => 'string', + ], + 'latency' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + 'usage' => [ + 'type' => 'object', + 'properties' => [ + 'image_count' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + 'table_count' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + 'token_count' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + ], + ], + 'result' => [ + 'type' => 'object', + 'properties' => [ + 'data' => [ + 'type' => 'object', + 'properties' => [ + 'content' => [ + 'type' => 'string', + ], + 'content_type' => [ + 'type' => 'string', + ], + 'page_num' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + ], + ], + 'status' => [ + 'type' => 'string', + ], + 'task_id' => [ + 'type' => 'string', + ], + 'error' => [ + 'type' => 'string', + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '', + ], + 'GetDocumentRank' => [ + 'summary' => '文档相关性打分', + 'path' => '/v3/openapi/workspaces/{workspace_name}/ranker/{service_id}', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'BearerToken' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'paid', + ], + 'parameters' => [ + [ + 'name' => 'workspace_name', + 'in' => 'path', + 'schema' => [ + 'type' => 'string', + 'required' => true, + ], + ], + [ + 'name' => 'service_id', + 'in' => 'path', + 'schema' => [ + 'type' => 'string', + 'required' => true, + ], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'docs' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'string', + 'required' => true, + ], + 'required' => true, + ], + 'query' => [ + 'type' => 'string', + 'required' => true, + ], + ], + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'request_id' => [ + 'type' => 'string', + ], + 'latency' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + 'usage' => [ + 'type' => 'object', + 'properties' => [ + 'doc_count' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + ], + ], + 'result' => [ + 'type' => 'object', + 'properties' => [ + 'scores' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'index' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + 'score' => [ + 'type' => 'number', + 'format' => 'double', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + ], + 'GetDocumentSplit' => [ + 'summary' => '文档切片', + 'path' => '/v3/openapi/workspaces/{workspace_name}/document-split/{service_id}', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'BearerToken' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'paid', + ], + 'parameters' => [ + [ + 'name' => 'workspace_name', + 'in' => 'path', + 'schema' => [ + 'type' => 'string', + 'required' => true, + ], + ], + [ + 'name' => 'service_id', + 'in' => 'path', + 'schema' => [ + 'type' => 'string', + 'required' => true, + ], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'document' => [ + 'type' => 'object', + 'properties' => [ + 'content' => [ + 'type' => 'string', + ], + 'content_encoding' => [ + 'type' => 'string', + ], + 'content_type' => [ + 'type' => 'string', + ], + ], + 'required' => true, + ], + 'strategy' => [ + 'type' => 'object', + 'properties' => [ + 'max_chunk_size' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + 'compute_type' => [ + 'type' => 'string', + ], + 'need_sentence' => [ + 'type' => 'boolean', + ], + ], + ], + ], + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'request_id' => [ + 'type' => 'string', + ], + 'latency' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + 'usage' => [ + 'type' => 'object', + 'properties' => [ + 'token_count' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + ], + ], + 'result' => [ + 'type' => 'object', + 'properties' => [ + 'chunks' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'content' => [ + 'type' => 'string', + ], + 'meta' => [ + 'type' => 'object', + 'additionalProperties' => [ + 'type' => 'string', + ], + ], + ], + ], + ], + 'rich_texts' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'content' => [ + 'type' => 'string', + ], + 'meta' => [ + 'type' => 'object', + 'additionalProperties' => [ + 'type' => 'string', + ], + ], + ], + ], + ], + 'nodes' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'additionalProperties' => [ + 'type' => 'string', + ], + ], + ], + 'sentences' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'content' => [ + 'type' => 'string', + ], + 'meta' => [ + 'type' => 'object', + 'additionalProperties' => [ + 'type' => 'string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '', + ], + 'CreateDocumentAnalyzeTask' => [ + 'summary' => '创建文档解析异步提取任务', + 'path' => '/v3/openapi/workspaces/{workspace_name}/document-analyze/{service_id}/async', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'BearerToken' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'paid', + ], + 'parameters' => [ + [ + 'name' => 'workspace_name', + 'in' => 'path', + 'schema' => [ + 'type' => 'string', + 'required' => true, + ], + ], + [ + 'name' => 'service_id', + 'in' => 'path', + 'schema' => [ + 'type' => 'string', + 'required' => true, + ], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'document' => [ + 'type' => 'object', + 'properties' => [ + 'url' => [ + 'type' => 'string', + ], + 'content' => [ + 'type' => 'string', + ], + 'file_name' => [ + 'type' => 'string', + ], + 'file_type' => [ + 'type' => 'string', + ], + ], + ], + 'output' => [ + 'type' => 'object', + 'properties' => [ + 'image_storage' => [ + 'type' => 'string', + ], + ], + ], + ], + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'request_id' => [ + 'type' => 'string', + ], + 'latency' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + 'result' => [ + 'type' => 'object', + 'properties' => [ + 'task_id' => [ + 'type' => 'string', + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '', + ], + 'GetTextSparseEmbedding' => [ + 'summary' => '文本稀疏向量化', + 'path' => '/v3/openapi/workspaces/{workspace_name}/text-sparse-embedding/{service_id}', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'BearerToken' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'paid', + ], + 'parameters' => [ + [ + 'name' => 'workspace_name', + 'in' => 'path', + 'schema' => [ + 'type' => 'string', + 'required' => true, + ], + ], + [ + 'name' => 'service_id', + 'in' => 'path', + 'schema' => [ + 'type' => 'string', + 'required' => true, + ], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'input' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'string', + ], + 'required' => true, + ], + 'input_type' => [ + 'type' => 'string', + 'required' => false, + 'example' => 'document', + 'default' => 'document', + 'enum' => [ + 'document', + 'query', + ], + ], + 'return_token' => [ + 'type' => 'boolean', + ], + ], + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'request_id' => [ + 'type' => 'string', + ], + 'latency' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + 'usage' => [ + 'type' => 'object', + 'properties' => [ + 'token_count' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + ], + ], + 'result' => [ + 'type' => 'object', + 'properties' => [ + 'sparse_embeddings' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'embedding' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'token' => [ + 'type' => 'string', + ], + 'token_id' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + 'weight' => [ + 'type' => 'number', + 'format' => 'float', + ], + ], + ], + ], + 'index' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '', + ], + 'GetQueryAnalysis' => [ + 'summary' => '获取query分析结果', + 'path' => '/v3/openapi/workspaces/{workspace_name}/query-analyze/{service_id}', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'BearerToken' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'paid', + ], + 'parameters' => [ + [ + 'name' => 'workspace_name', + 'in' => 'path', + 'schema' => [ + 'type' => 'string', + 'required' => true, + ], + ], + [ + 'name' => 'service_id', + 'in' => 'path', + 'schema' => [ + 'type' => 'string', + 'required' => true, + ], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'history' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'content' => [ + 'type' => 'string', + ], + 'role' => [ + 'type' => 'string', + ], + ], + ], + 'required' => false, + ], + 'query' => [ + 'type' => 'string', + 'required' => true, + ], + 'functions' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'name' => [ + 'type' => 'string', + ], + 'parameters' => [ + 'type' => 'object', + ], + ], + ], + ], + ], + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'request_id' => [ + 'type' => 'string', + ], + 'latency' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + 'usage' => [ + 'type' => 'object', + 'properties' => [ + 'output_tokens' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + 'input_tokens' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + 'total_tokens' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + ], + ], + 'result' => [ + 'type' => 'object', + 'properties' => [ + 'query' => [ + 'type' => 'string', + ], + 'queries' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'string', + ], + ], + 'intent' => [ + 'type' => 'string', + ], + 'sql' => [ + 'type' => 'object', + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + ], + 'CreateImageAnalyzeTask' => [ + 'summary' => '创建图片解析异步提取任务', + 'path' => '/v3/openapi/workspaces/{workspace_name}/image-analyze/{service_id}/async', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'BearerToken' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'paid', + ], + 'parameters' => [ + [ + 'name' => 'workspace_name', + 'in' => 'path', + 'schema' => [ + 'type' => 'string', + 'required' => true, + ], + ], + [ + 'name' => 'service_id', + 'in' => 'path', + 'schema' => [ + 'type' => 'string', + 'required' => true, + ], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'document' => [ + 'type' => 'object', + 'properties' => [ + 'url' => [ + 'type' => 'string', + ], + 'content' => [ + 'type' => 'string', + ], + 'file_name' => [ + 'type' => 'string', + ], + 'file_type' => [ + 'type' => 'string', + ], + ], + ], + ], + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'request_id' => [ + 'type' => 'string', + ], + 'latency' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + 'result' => [ + 'type' => 'object', + 'properties' => [ + 'task_id' => [ + 'type' => 'string', + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + ], + 'GetImageAnalyzeTaskStatus' => [ + 'summary' => '获取图片解析异步提取任务状态', + 'path' => '/v3/openapi/workspaces/{workspace_name}/image-analyze/{service_id}/async/task-status', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'BearerToken' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'paid', + ], + 'parameters' => [ + [ + 'name' => 'workspace_name', + 'in' => 'path', + 'schema' => [ + 'type' => 'string', + 'required' => true, + ], + ], + [ + 'name' => 'service_id', + 'in' => 'path', + 'schema' => [ + 'type' => 'string', + 'required' => true, + ], + ], + [ + 'name' => 'task_id', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + 'required' => true, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'request_id' => [ + 'type' => 'string', + ], + 'latency' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + 'usage' => [ + 'type' => 'object', + 'properties' => [ + 'pv_count' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + 'token_count' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + ], + ], + 'result' => [ + 'type' => 'object', + 'properties' => [ + 'data' => [ + 'type' => 'object', + 'properties' => [ + 'content' => [ + 'type' => 'string', + ], + 'content_type' => [ + 'type' => 'string', + ], + 'page_num' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + ], + ], + 'status' => [ + 'type' => 'string', + ], + 'task_id' => [ + 'type' => 'string', + ], + 'error' => [ + 'type' => 'string', + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + ], + 'GetTextEmbedding' => [ + 'summary' => '文本向量化', + 'path' => '/v3/openapi/workspaces/{workspace_name}/text-embedding/{service_id}', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'BearerToken' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'paid', + ], + 'parameters' => [ + [ + 'name' => 'workspace_name', + 'in' => 'path', + 'schema' => [ + 'type' => 'string', + 'required' => true, + ], + ], + [ + 'name' => 'service_id', + 'in' => 'path', + 'schema' => [ + 'type' => 'string', + 'required' => true, + ], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'input' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'string', + ], + 'required' => true, + ], + 'input_type' => [ + 'type' => 'string', + 'required' => false, + 'example' => 'document', + 'default' => 'document', + 'enum' => [ + 'document', + 'query', + ], + ], + ], + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'request_id' => [ + 'type' => 'string', + ], + 'latency' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + 'usage' => [ + 'type' => 'object', + 'properties' => [ + 'token_count' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + ], + ], + 'result' => [ + 'type' => 'object', + 'properties' => [ + 'embeddings' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'index' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + 'embedding' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'number', + 'format' => 'double', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + ], + 'GetWebSearch' => [ + 'summary' => '联网搜索', + 'path' => '/v3/openapi/workspaces/{workspace_name}/web-search/{service_id}', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'BearerToken' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'paid', + ], + 'parameters' => [ + [ + 'name' => 'workspace_name', + 'in' => 'path', + 'schema' => [ + 'type' => 'string', + 'required' => true, + ], + ], + [ + 'name' => 'service_id', + 'in' => 'path', + 'schema' => [ + 'type' => 'string', + 'required' => true, + ], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'query' => [ + 'type' => 'string', + 'required' => true, + ], + 'way' => [ + 'type' => 'string', + ], + 'top_k' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + ], + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'request_id' => [ + 'type' => 'string', + ], + 'latency' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + 'usage' => [ + 'type' => 'object', + 'properties' => [ + 'search_count' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + 'rewrite_model.input_tokens' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + 'rewrite_model.output_tokens' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + 'rewrite_model.total_tokens' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + 'filter_model.input_tokens' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + 'filter_model.output_tokens' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + 'filter_model.total_tokens' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + ], + ], + 'result' => [ + 'type' => 'object', + 'properties' => [ + 'search_result' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'tilte' => [ + 'type' => 'string', + ], + 'link' => [ + 'type' => 'string', + ], + 'snippet' => [ + 'type' => 'string', + ], + 'content' => [ + 'type' => 'string', + ], + 'position' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'GetEmbeddingTuning' => [ + 'summary' => '向量微调', + 'path' => '/v3/openapi/workspaces/{workspace_name}/embedding-tuning/{service_id}', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'BearerToken' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'paid', + ], + 'parameters' => [ + [ + 'name' => 'workspace_name', + 'in' => 'path', + 'schema' => [ + 'title' => 'A short description of struct', + 'type' => 'string', + ], + ], + [ + 'name' => 'service_id', + 'in' => 'path', + 'schema' => [ + 'type' => 'string', + ], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'input' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'number', + 'format' => 'float', + ], + ], + ], + 'parameters' => [ + 'type' => 'object', + ], + ], + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'request_id' => [ + 'title' => 'Id of the request', + 'type' => 'string', + ], + 'latency' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + 'usage' => [ + 'type' => 'object', + 'properties' => [ + 'doc_count' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + ], + ], + 'result' => [ + 'type' => 'object', + 'properties' => [ + 'output' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'number', + 'format' => 'float', + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'eventInfo' => [ + 'enable' => false, + 'eventNames' => [], + ], + ], + 'GetPrediction' => [ + 'summary' => '获取推理结果', + 'path' => '/v3/openapi/deployments/{deployment_id}/predict', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'BearerToken' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'paid', + ], + 'parameters' => [ + [ + 'name' => 'deployment_id', + 'in' => 'path', + 'schema' => [ + 'type' => 'string', + 'required' => true, + ], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'schema' => [ + 'type' => 'string', + ], + ], + [ + 'name' => 'Token', + 'in' => 'header', + 'schema' => [ + 'type' => 'string', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'string', + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + ], + ], + 'endpoints' => [ + [ + 'regionId' => 'cn-shanghai', + 'endpoint' => 'searchplat.cn-shanghai.aliyuncs.com', + ], + [ + 'regionId' => 'eu-central-1', + 'endpoint' => 'searchplat.eu-central-1.aliyuncs.com', + ], + ], +]; |
