summaryrefslogtreecommitdiff
path: root/data/maasaisearchproxy/2026-04-24/api-docs.php
blob: 66b61ef63038820bc339bde076f6a01581181d86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<?php return [
    'version' => '1.0',
    'info' => ['style' => 'ROA', 'product' => 'MaasAISearchProxy', 'version' => '2026-04-24'],
    'components' => [
        'schemas' => [],
    ],
    'apis' => [
        'QaChat' => [
            'path' => '/qa/chat',
            'methods' => ['post'],
            'schemes' => ['https', 'sse'],
            'security' => [
                [
                    'AK' => [],
                ],
                [
                    'ApiKey' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['text/event-stream', 'application/json'],
            'deprecated' => false,
            'parameters' => [
                [
                    'name' => 'body',
                    'in' => 'body',
                    'style' => 'json',
                    'schema' => [
                        'type' => 'object',
                        'required' => false,
                        'properties' => [
                            'appId' => ['type' => 'string', 'required' => false],
                            'sessionId' => ['type' => 'string', 'required' => false],
                            'message' => [
                                'type' => 'object',
                                'required' => false,
                                'properties' => [
                                    'role' => [
                                        'type' => 'string',
                                        'required' => false,
                                        'enum' => ['user'],
                                    ],
                                    'parts' => [
                                        'type' => 'array',
                                        'required' => false,
                                        'items' => [
                                            'type' => 'object',
                                            'required' => false,
                                            'properties' => [
                                                'type' => [
                                                    'type' => 'string',
                                                    'required' => false,
                                                    'enum' => ['text', 'file'],
                                                ],
                                                'text' => ['type' => 'string', 'required' => false],
                                                'url' => ['type' => 'string', 'required' => false],
                                                'mediaType' => ['type' => 'string', 'required' => false],
                                            ],
                                        ],
                                    ],
                                ],
                            ],
                            'stream' => ['type' => 'boolean', 'required' => false],
                            'options' => [
                                'type' => 'object',
                                'required' => false,
                                'properties' => [
                                    'searchMode' => [
                                        'type' => 'string',
                                        'required' => false,
                                        'enum' => ['force', 'auto'],
                                    ],
                                    'enableRewrite' => ['type' => 'boolean', 'required' => false],
                                    'enableCitation' => ['type' => 'boolean', 'required' => false],
                                    'enableFollowUp' => ['type' => 'boolean', 'required' => false],
                                    'enableImages' => ['type' => 'boolean', 'required' => false],
                                    'followUpPrompt' => ['type' => 'string', 'required' => false],
                                    'systemPrompt' => ['type' => 'string', 'required' => false],
                                ],
                            ],
                        ],
                    ],
                ],
            ],
        ],
        'WebSearch' => [
            'path' => '/api/web-search',
            'methods' => ['post'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
                [
                    'ApiKey' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'deprecated' => false,
            'parameters' => [
                [
                    'name' => 'body',
                    'in' => 'body',
                    'style' => 'json',
                    'schema' => [
                        'type' => 'object',
                        'required' => false,
                        'properties' => [
                            'query' => ['type' => 'string', 'required' => false],
                            'limit' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
                            'includeDomain' => [
                                'type' => 'array',
                                'required' => false,
                                'items' => ['type' => 'string', 'required' => false],
                            ],
                            'excludeDomain' => [
                                'type' => 'array',
                                'required' => false,
                                'items' => ['type' => 'string', 'required' => false],
                            ],
                            'startTime' => ['type' => 'string', 'required' => false],
                            'endTime' => ['type' => 'string', 'required' => false],
                            'region' => ['type' => 'string', 'required' => false],
                            'searchType' => ['type' => 'string', 'required' => false],
                        ],
                    ],
                ],
            ],
        ],
    ],
    'endpoints' => [
        ['regionId' => 'public', 'regionName' => '公网', 'areaId' => 'other', 'areaName' => '其它', 'public' => 'maasaisearchproxy.aliyuncs.com', 'endpoint' => 'maasaisearchproxy.aliyuncs.com', 'vpc' => ''],
    ],
];