From 7347bac4ab7e136157fc94777e6cf87ef9e08599 Mon Sep 17 00:00:00 2001 From: Zhineng Li Date: Fri, 13 Feb 2026 10:54:11 +0800 Subject: first commit --- data/en_us/paicopilot/2025-07-31/api-docs.php | 259 ++++++++++++++++++++++++++ 1 file changed, 259 insertions(+) create mode 100644 data/en_us/paicopilot/2025-07-31/api-docs.php (limited to 'data/en_us/paicopilot/2025-07-31/api-docs.php') diff --git a/data/en_us/paicopilot/2025-07-31/api-docs.php b/data/en_us/paicopilot/2025-07-31/api-docs.php new file mode 100644 index 0000000..9ed8a5a --- /dev/null +++ b/data/en_us/paicopilot/2025-07-31/api-docs.php @@ -0,0 +1,259 @@ + '1.0', + 'info' => [ + 'style' => 'ROA', + 'product' => 'PAICopilot', + 'version' => '2025-07-31', + ], + 'directories' => [ + 'SearchInfo', + ], + 'components' => [ + 'schemas' => [], + ], + 'apis' => [ + 'SearchInfo' => [ + 'summary' => '/api/v1/sessions', + 'path' => '/api/v1/searches', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => [ + 'FEATURElearnOTS2AE', + ], + 'autoTest' => true, + 'tenantRelevance' => 'tenant', + ], + 'parameters' => [ + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'KnowledgeBaseFilters' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'CollectionName' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'pai_qa', + ], + 'ResultLimit' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '5', + ], + 'ScoreThreshold' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'double', + 'required' => false, + 'example' => '0.7827883223', + ], + 'Query' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'what is pai', + ], + ], + 'required' => false, + ], + 'required' => false, + ], + 'WebFilters' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'ResultLimit' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '5', + ], + 'IncludeSites' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'help.aliyun.com', + ], + 'required' => false, + ], + 'ScoreThreshold' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'double', + 'required' => false, + 'example' => '0.832883223', + ], + 'Query' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'what is dsw', + ], + 'Category' => [ + 'type' => 'string', + ], + ], + 'required' => false, + ], + 'required' => false, + ], + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => '44553E9A-******-37ADC33FE2', + ], + 'KnowledgeBaseSearchResults' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'ResultContent' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'DSW is ****** in pai.', + ], + 'Score' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'double', + 'example' => '0.6215165367', + ], + 'Index' => [ + 'description' => '', + 'type' => 'string', + 'example' => '0', + ], + ], + ], + ], + 'WebSearchResults' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'SourceLink' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'https://help.aliyun.com/zh/pai/use-cases/dsw-use-qwen3-coder-to-assist-in-code-development', + ], + 'ResultContent' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'Qwen3-Coder*****is good', + ], + 'Score' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'double', + 'example' => '0.5215170567', + ], + 'Index' => [ + 'description' => '', + 'type' => 'string', + 'example' => '2', + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'IdempotentParameterMismatch', + 'errorMessage' => 'The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical.', + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"44553E9A-******-37ADC33FE2\\",\\n \\"KnowledgeBaseSearchResults\\": [\\n {\\n \\"ResultContent\\": \\"DSW is ****** in pai.\\",\\n \\"Score\\": 0.6215165367,\\n \\"Index\\": \\"0\\"\\n }\\n ],\\n \\"WebSearchResults\\": [\\n {\\n \\"SourceLink\\": \\"https://help.aliyun.com/zh/pai/use-cases/dsw-use-qwen3-coder-to-assist-in-code-development\\",\\n \\"ResultContent\\": \\"Qwen3-Coder*****is good\\",\\n \\"Score\\": 0.5215170567,\\n \\"Index\\": \\"2\\"\\n }\\n ]\\n}","type":"json"}]', + ], + ], + 'endpoints' => [ + [ + 'regionId' => 'cn-beijing', + 'endpoint' => 'paicopilot.cn-beijing.aliyuncs.com', + ], + [ + 'regionId' => 'cn-wulanchabu', + 'endpoint' => 'paicopilot.cn-wulanchabu.aliyuncs.com', + ], + [ + 'regionId' => 'cn-shanghai', + 'endpoint' => 'paicopilot.cn-shanghai.aliyuncs.com', + ], + [ + 'regionId' => 'cn-shenzhen', + 'endpoint' => 'paicopilot.cn-shenzhen.aliyuncs.com', + ], + [ + 'regionId' => 'ap-southeast-1', + 'endpoint' => 'paicopilot.ap-southeast-1.aliyuncs.com', + ], + [ + 'regionId' => 'cn-hangzhou', + 'endpoint' => 'paicopilot.cn-hangzhou.aliyuncs.com', + ], + ], +]; -- cgit v1.2.3