@ailib-official/ai-protocol 0.8.4

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.
Files changed (194) hide show
  1. package/LICENSE +6 -0
  2. package/README.md +415 -0
  3. package/dist/index.json +8 -0
  4. package/dist/v1/models/ai21.json +140 -0
  5. package/dist/v1/models/baichuan.json +138 -0
  6. package/dist/v1/models/cerebras.json +147 -0
  7. package/dist/v1/models/claude.json +114 -0
  8. package/dist/v1/models/cohere.json +235 -0
  9. package/dist/v1/models/deepinfra.json +43 -0
  10. package/dist/v1/models/deepseek-chat.json +55 -0
  11. package/dist/v1/models/doubao.json +197 -0
  12. package/dist/v1/models/ernie.json +223 -0
  13. package/dist/v1/models/fireworks.json +222 -0
  14. package/dist/v1/models/gemini.json +58 -0
  15. package/dist/v1/models/gpt.json +166 -0
  16. package/dist/v1/models/grok.json +138 -0
  17. package/dist/v1/models/huggingface.json +183 -0
  18. package/dist/v1/models/hunyuan.json +255 -0
  19. package/dist/v1/models/jina.json +139 -0
  20. package/dist/v1/models/lepton.json +188 -0
  21. package/dist/v1/models/llama.json +143 -0
  22. package/dist/v1/models/minimax.json +194 -0
  23. package/dist/v1/models/mistral.json +177 -0
  24. package/dist/v1/models/moonshot.json +144 -0
  25. package/dist/v1/models/nvidia.json +212 -0
  26. package/dist/v1/models/palmyra.json +103 -0
  27. package/dist/v1/models/perplexity.json +143 -0
  28. package/dist/v1/models/qwen.json +49 -0
  29. package/dist/v1/models/replicate.json +206 -0
  30. package/dist/v1/models/sensenova.json +144 -0
  31. package/dist/v1/models/siliconflow.json +44 -0
  32. package/dist/v1/models/spark.json +173 -0
  33. package/dist/v1/models/stable-diffusion.json +161 -0
  34. package/dist/v1/models/tiangong.json +169 -0
  35. package/dist/v1/models/together.json +43 -0
  36. package/dist/v1/models/yi.json +199 -0
  37. package/dist/v1/models/zhipu.json +250 -0
  38. package/dist/v1/providers/ai21.json +215 -0
  39. package/dist/v1/providers/anthropic.json +253 -0
  40. package/dist/v1/providers/anyscale.json +115 -0
  41. package/dist/v1/providers/azure.json +188 -0
  42. package/dist/v1/providers/baichuan.json +205 -0
  43. package/dist/v1/providers/baidu.json +205 -0
  44. package/dist/v1/providers/cerebras.json +216 -0
  45. package/dist/v1/providers/cohere.json +209 -0
  46. package/dist/v1/providers/deepinfra.json +196 -0
  47. package/dist/v1/providers/deepseek.json +221 -0
  48. package/dist/v1/providers/doubao.json +209 -0
  49. package/dist/v1/providers/fireworks.json +227 -0
  50. package/dist/v1/providers/gemini.json +279 -0
  51. package/dist/v1/providers/groq.json +218 -0
  52. package/dist/v1/providers/huggingface.json +181 -0
  53. package/dist/v1/providers/hunyuan.json +198 -0
  54. package/dist/v1/providers/jina.json +202 -0
  55. package/dist/v1/providers/lepton.json +221 -0
  56. package/dist/v1/providers/minimax.json +209 -0
  57. package/dist/v1/providers/mistral.json +214 -0
  58. package/dist/v1/providers/moonshot.json +214 -0
  59. package/dist/v1/providers/nvidia.json +213 -0
  60. package/dist/v1/providers/openai.json +267 -0
  61. package/dist/v1/providers/openrouter.json +220 -0
  62. package/dist/v1/providers/perplexity.json +172 -0
  63. package/dist/v1/providers/qwen.json +231 -0
  64. package/dist/v1/providers/replicate.json +192 -0
  65. package/dist/v1/providers/sensenova.json +185 -0
  66. package/dist/v1/providers/siliconflow.json +197 -0
  67. package/dist/v1/providers/spark.json +204 -0
  68. package/dist/v1/providers/stability.json +221 -0
  69. package/dist/v1/providers/tiangong.json +207 -0
  70. package/dist/v1/providers/together.json +196 -0
  71. package/dist/v1/providers/writer.json +253 -0
  72. package/dist/v1/providers/xai.json +238 -0
  73. package/dist/v1/providers/yi.json +205 -0
  74. package/dist/v1/providers/zhipu.json +208 -0
  75. package/dist/v1/spec.json +783 -0
  76. package/dist/v2/providers/anthropic.json +372 -0
  77. package/dist/v2/providers/cohere.json +109 -0
  78. package/dist/v2/providers/deepseek.json +272 -0
  79. package/dist/v2/providers/doubao.json +260 -0
  80. package/dist/v2/providers/google.json +388 -0
  81. package/dist/v2/providers/jina.json +71 -0
  82. package/dist/v2/providers/moonshot.json +284 -0
  83. package/dist/v2/providers/openai.json +419 -0
  84. package/dist/v2/providers/qwen.json +274 -0
  85. package/dist/v2/providers/zhipu.json +257 -0
  86. package/dist/v2-alpha/providers/anthropic.json +182 -0
  87. package/dist/v2-alpha/providers/gemini.json +187 -0
  88. package/dist/v2-alpha/providers/openai.json +215 -0
  89. package/dist/v2-alpha/spec.json +644 -0
  90. package/package.json +61 -0
  91. package/schemas/spec.json +186 -0
  92. package/schemas/v1.json +1116 -0
  93. package/schemas/v2/availability.json +66 -0
  94. package/schemas/v2/capabilities.json +182 -0
  95. package/schemas/v2/capability-profile.json +174 -0
  96. package/schemas/v2/computer-use.json +222 -0
  97. package/schemas/v2/context-policy.json +148 -0
  98. package/schemas/v2/endpoint.json +2 -0
  99. package/schemas/v2/error-codes.yaml +225 -0
  100. package/schemas/v2/errors.json +250 -0
  101. package/schemas/v2/execution-metadata.json +59 -0
  102. package/schemas/v2/mcp.json +225 -0
  103. package/schemas/v2/message-roles.json +10 -0
  104. package/schemas/v2/multimodal.json +297 -0
  105. package/schemas/v2/pricing.json +14 -0
  106. package/schemas/v2/provider-contract.json +317 -0
  107. package/schemas/v2/provider.json +203 -0
  108. package/schemas/v2/regions.json +14 -0
  109. package/v1/models/ai21.yaml +97 -0
  110. package/v1/models/baichuan.yaml +95 -0
  111. package/v1/models/cerebras.yaml +99 -0
  112. package/v1/models/claude.yaml +59 -0
  113. package/v1/models/cohere.yaml +165 -0
  114. package/v1/models/deepinfra.yaml +29 -0
  115. package/v1/models/deepseek-chat.yaml +32 -0
  116. package/v1/models/doubao.yaml +129 -0
  117. package/v1/models/ernie.yaml +146 -0
  118. package/v1/models/fireworks.yaml +145 -0
  119. package/v1/models/gemini.yaml +32 -0
  120. package/v1/models/gpt.yaml +90 -0
  121. package/v1/models/grok.yaml +74 -0
  122. package/v1/models/huggingface.yaml +110 -0
  123. package/v1/models/hunyuan.yaml +164 -0
  124. package/v1/models/jina.yaml +98 -0
  125. package/v1/models/lepton.yaml +130 -0
  126. package/v1/models/llama.yaml +91 -0
  127. package/v1/models/minimax.yaml +132 -0
  128. package/v1/models/mistral.yaml +100 -0
  129. package/v1/models/moonshot.yaml +97 -0
  130. package/v1/models/nvidia.yaml +118 -0
  131. package/v1/models/palmyra.yaml +59 -0
  132. package/v1/models/perplexity.yaml +97 -0
  133. package/v1/models/qwen.yaml +27 -0
  134. package/v1/models/replicate.yaml +136 -0
  135. package/v1/models/sensenova.yaml +97 -0
  136. package/v1/models/siliconflow.yaml +29 -0
  137. package/v1/models/spark.yaml +114 -0
  138. package/v1/models/stable-diffusion.yaml +113 -0
  139. package/v1/models/tiangong.yaml +114 -0
  140. package/v1/models/together.yaml +29 -0
  141. package/v1/models/yi.yaml +132 -0
  142. package/v1/models/zhipu.yaml +163 -0
  143. package/v1/providers/ai21.yaml +176 -0
  144. package/v1/providers/anthropic.yaml +209 -0
  145. package/v1/providers/anyscale.yaml +106 -0
  146. package/v1/providers/azure.yaml +155 -0
  147. package/v1/providers/baichuan.yaml +168 -0
  148. package/v1/providers/baidu.yaml +173 -0
  149. package/v1/providers/cerebras.yaml +178 -0
  150. package/v1/providers/cohere.yaml +175 -0
  151. package/v1/providers/deepinfra.yaml +156 -0
  152. package/v1/providers/deepseek.yaml +189 -0
  153. package/v1/providers/doubao.yaml +172 -0
  154. package/v1/providers/fireworks.yaml +187 -0
  155. package/v1/providers/gemini.yaml +229 -0
  156. package/v1/providers/groq.yaml +181 -0
  157. package/v1/providers/huggingface.yaml +157 -0
  158. package/v1/providers/hunyuan.yaml +162 -0
  159. package/v1/providers/jina.yaml +171 -0
  160. package/v1/providers/lepton.yaml +183 -0
  161. package/v1/providers/minimax.yaml +172 -0
  162. package/v1/providers/mistral.yaml +186 -0
  163. package/v1/providers/moonshot.yaml +176 -0
  164. package/v1/providers/nvidia.yaml +172 -0
  165. package/v1/providers/openai.yaml +224 -0
  166. package/v1/providers/openrouter.yaml +181 -0
  167. package/v1/providers/perplexity.yaml +144 -0
  168. package/v1/providers/qwen.yaml +192 -0
  169. package/v1/providers/replicate.yaml +159 -0
  170. package/v1/providers/sensenova.yaml +153 -0
  171. package/v1/providers/siliconflow.yaml +156 -0
  172. package/v1/providers/spark.yaml +167 -0
  173. package/v1/providers/stability.yaml +185 -0
  174. package/v1/providers/tiangong.yaml +170 -0
  175. package/v1/providers/together.yaml +156 -0
  176. package/v1/providers/writer.yaml +212 -0
  177. package/v1/providers/xai.yaml +206 -0
  178. package/v1/providers/yi.yaml +168 -0
  179. package/v1/providers/zhipu.yaml +171 -0
  180. package/v1/spec.yaml +637 -0
  181. package/v2/providers/anthropic.yaml +244 -0
  182. package/v2/providers/cohere.yaml +75 -0
  183. package/v2/providers/deepseek.yaml +176 -0
  184. package/v2/providers/doubao.yaml +169 -0
  185. package/v2/providers/google.yaml +245 -0
  186. package/v2/providers/jina.yaml +55 -0
  187. package/v2/providers/moonshot.yaml +186 -0
  188. package/v2/providers/openai.yaml +266 -0
  189. package/v2/providers/qwen.yaml +174 -0
  190. package/v2/providers/zhipu.yaml +176 -0
  191. package/v2-alpha/providers/anthropic.yaml +134 -0
  192. package/v2-alpha/providers/gemini.yaml +144 -0
  193. package/v2-alpha/providers/openai.yaml +154 -0
  194. package/v2-alpha/spec.yaml +512 -0
@@ -0,0 +1,284 @@
1
+ {
2
+ "$schema": "https://raw.githubusercontent.com/ailib-official/ai-protocol/main/schemas/v2/provider.json",
3
+ "id": "moonshot",
4
+ "protocol_version": "2.0",
5
+ "name": "Moonshot AI",
6
+ "version": "2.5.0",
7
+ "status": "stable",
8
+ "category": "ai_provider",
9
+ "official_url": "https://platform.moonshot.ai/docs/",
10
+ "support_contact": "https://platform.moonshot.ai/",
11
+ "endpoint": {
12
+ "base_url": "https://api.moonshot.cn/v1",
13
+ "chat": "/chat/completions",
14
+ "auth": {
15
+ "type": "bearer",
16
+ "header": "Authorization",
17
+ "prefix": "Bearer",
18
+ "token_env": "MOONSHOT_API_KEY"
19
+ }
20
+ },
21
+ "error_classification": {
22
+ "by_http_status": {
23
+ "400": "invalid_request",
24
+ "401": "authentication",
25
+ "403": "permission_denied",
26
+ "404": "not_found",
27
+ "429": "rate_limited",
28
+ "500": "server_error",
29
+ "503": "overloaded"
30
+ },
31
+ "by_error_code": {
32
+ "context_length_exceeded": "request_too_large",
33
+ "model_not_found": "not_found",
34
+ "rate_limit_exceeded": "rate_limited",
35
+ "insufficient_quota": "quota_exhausted"
36
+ }
37
+ },
38
+ "capabilities": {
39
+ "required": [
40
+ "text",
41
+ "streaming",
42
+ "tools"
43
+ ],
44
+ "optional": [
45
+ "vision",
46
+ "video",
47
+ "parallel_tools",
48
+ "agentic",
49
+ "reasoning",
50
+ "structured_output"
51
+ ],
52
+ "feature_flags": {
53
+ "structured_output": true,
54
+ "parallel_tool_calls": true,
55
+ "streaming_usage": true,
56
+ "system_messages": true
57
+ }
58
+ },
59
+ "capability_profile": {
60
+ "phase": "ios_v1",
61
+ "inputs": {
62
+ "modalities": [
63
+ "text",
64
+ "image",
65
+ "video"
66
+ ]
67
+ },
68
+ "outcomes": {
69
+ "types": [
70
+ "text_completion",
71
+ "structured_json",
72
+ "tool_call_sequence"
73
+ ]
74
+ },
75
+ "systems": {
76
+ "requires": [
77
+ "mcp",
78
+ "search"
79
+ ]
80
+ }
81
+ },
82
+ "parameters": {
83
+ "temperature": {
84
+ "type": "float",
85
+ "range": [
86
+ 0,
87
+ 2
88
+ ],
89
+ "default": 1
90
+ },
91
+ "max_tokens": {
92
+ "type": "integer",
93
+ "min": 1,
94
+ "max": 33000
95
+ },
96
+ "top_p": {
97
+ "type": "float",
98
+ "range": [
99
+ 0,
100
+ 1
101
+ ]
102
+ },
103
+ "stream": {
104
+ "type": "boolean"
105
+ }
106
+ },
107
+ "parameter_mappings": {
108
+ "temperature": "temperature",
109
+ "max_tokens": "max_tokens",
110
+ "stream": "stream",
111
+ "top_p": "top_p",
112
+ "tools": "tools",
113
+ "tool_choice": "tool_choice"
114
+ },
115
+ "streaming": {
116
+ "decoder": {
117
+ "format": "sse",
118
+ "strategy": "openai_chat",
119
+ "done_signal": "[DONE]",
120
+ "prefix": "data: "
121
+ },
122
+ "content_path": "$.choices[0].delta.content",
123
+ "tool_call_path": "$.choices[0].delta.tool_calls",
124
+ "usage_path": "$.usage",
125
+ "event_map": [
126
+ {
127
+ "match": "exists($.choices[*].delta.content)",
128
+ "emit": "PartialContentDelta",
129
+ "fields": {
130
+ "content": "$.choices[*].delta.content"
131
+ }
132
+ },
133
+ {
134
+ "match": "exists($.choices[*].delta.tool_calls)",
135
+ "emit": "PartialToolCall",
136
+ "fields": {
137
+ "tool_calls": "$.choices[*].delta.tool_calls"
138
+ }
139
+ },
140
+ {
141
+ "match": "exists($.usage)",
142
+ "emit": "Metadata",
143
+ "fields": {
144
+ "usage": "$.usage"
145
+ }
146
+ },
147
+ {
148
+ "match": "$.choices[*].finish_reason != null",
149
+ "emit": "StreamEnd",
150
+ "fields": {
151
+ "finish_reason": "$.choices[*].finish_reason"
152
+ }
153
+ }
154
+ ],
155
+ "stop_condition": "$.choices[0].finish_reason != null"
156
+ },
157
+ "multimodal": {
158
+ "input": {
159
+ "vision": {
160
+ "supported": true,
161
+ "formats": [
162
+ "jpeg",
163
+ "png",
164
+ "webp",
165
+ "gif"
166
+ ],
167
+ "encoding_methods": [
168
+ "base64_inline",
169
+ "url"
170
+ ]
171
+ },
172
+ "audio": {
173
+ "supported": false
174
+ },
175
+ "video": {
176
+ "supported": true,
177
+ "formats": [
178
+ "mp4",
179
+ "avi",
180
+ "mov"
181
+ ]
182
+ }
183
+ },
184
+ "output": {
185
+ "text": true,
186
+ "audio": {
187
+ "supported": false
188
+ },
189
+ "image": {
190
+ "supported": false
191
+ }
192
+ }
193
+ },
194
+ "api_families": [
195
+ "chat_completions"
196
+ ],
197
+ "default_api_family": "chat_completions",
198
+ "endpoints": {
199
+ "chat": {
200
+ "path": "/chat/completions",
201
+ "method": "POST",
202
+ "adapter": "openai"
203
+ }
204
+ },
205
+ "services": {
206
+ "list_models": {
207
+ "path": "/models",
208
+ "method": "GET"
209
+ }
210
+ },
211
+ "retry_policy": {
212
+ "strategy": "exponential_backoff",
213
+ "max_retries": 3,
214
+ "min_delay_ms": 1000,
215
+ "max_delay_ms": 30000,
216
+ "jitter": "full",
217
+ "retry_on_http_status": [
218
+ 429,
219
+ 500,
220
+ 502,
221
+ 503
222
+ ]
223
+ },
224
+ "termination": {
225
+ "source_field": "finish_reason",
226
+ "mapping": {
227
+ "stop": "end_turn",
228
+ "length": "max_tokens",
229
+ "tool_calls": "tool_use"
230
+ }
231
+ },
232
+ "metadata": {
233
+ "api_compatibility": "openai",
234
+ "open_source": {
235
+ "license": "Modified MIT",
236
+ "hugging_face": "https://huggingface.co/moonshotai/Kimi-K2.5"
237
+ },
238
+ "agent_swarm": {
239
+ "supported": true,
240
+ "status": "beta",
241
+ "max_agents": 100,
242
+ "max_tool_calls": 1500,
243
+ "coordination": "PARL (Parallel Agent RL)"
244
+ },
245
+ "models": {
246
+ "kimi-k2-5": {
247
+ "context_window": 256000,
248
+ "max_output_tokens": 33000,
249
+ "architecture": {
250
+ "type": "moe",
251
+ "total": "1T",
252
+ "active": "32B",
253
+ "experts": 384
254
+ },
255
+ "pricing": {
256
+ "input_per_1m": 0.6,
257
+ "output_per_1m": 3
258
+ }
259
+ },
260
+ "kimi-k2-thinking": {
261
+ "context_window": 256000,
262
+ "max_output_tokens": 33000,
263
+ "pricing": {
264
+ "input_per_1m": 0.6,
265
+ "output_per_1m": 2.5
266
+ }
267
+ }
268
+ },
269
+ "regional": {
270
+ "primary": "china",
271
+ "international_partners": [
272
+ "fireworks_ai",
273
+ "together_ai",
274
+ "openrouter",
275
+ "nvidia_nim"
276
+ ]
277
+ },
278
+ "sdk": {
279
+ "note": "OpenAI-compatible — use openai SDK with base_url override",
280
+ "python": "openai",
281
+ "typescript": "openai"
282
+ }
283
+ }
284
+ }
@@ -0,0 +1,419 @@
1
+ {
2
+ "$schema": "https://raw.githubusercontent.com/ailib-official/ai-protocol/main/schemas/v2/provider.json",
3
+ "id": "openai",
4
+ "protocol_version": "2.0",
5
+ "name": "OpenAI",
6
+ "version": "5.3.0",
7
+ "status": "stable",
8
+ "category": "ai_provider",
9
+ "official_url": "https://platform.openai.com/docs",
10
+ "support_contact": "https://help.openai.com",
11
+ "endpoint": {
12
+ "base_url": "https://api.openai.com/v1",
13
+ "chat": "/chat/completions",
14
+ "embeddings": "/embeddings",
15
+ "stt": "/audio/transcriptions",
16
+ "tts": "/audio/speech",
17
+ "auth": {
18
+ "type": "bearer",
19
+ "header": "Authorization",
20
+ "prefix": "Bearer",
21
+ "token_env": "OPENAI_API_KEY"
22
+ }
23
+ },
24
+ "error_classification": {
25
+ "by_http_status": {
26
+ "400": "invalid_request",
27
+ "401": "authentication",
28
+ "403": "permission_denied",
29
+ "404": "not_found",
30
+ "413": "request_too_large",
31
+ "429": "rate_limited",
32
+ "500": "server_error",
33
+ "503": "overloaded"
34
+ },
35
+ "by_error_code": {
36
+ "invalid_api_key": "authentication",
37
+ "model_not_found": "not_found",
38
+ "context_length_exceeded": "request_too_large",
39
+ "rate_limit_exceeded": "rate_limited",
40
+ "insufficient_quota": "quota_exhausted",
41
+ "server_error": "server_error"
42
+ }
43
+ },
44
+ "capabilities": {
45
+ "required": [
46
+ "text",
47
+ "streaming",
48
+ "tools"
49
+ ],
50
+ "optional": [
51
+ "vision",
52
+ "audio",
53
+ "parallel_tools",
54
+ "agentic",
55
+ "reasoning",
56
+ "embeddings",
57
+ "structured_output",
58
+ "batch",
59
+ "image_generation",
60
+ "computer_use",
61
+ "mcp_client",
62
+ "stt",
63
+ "tts"
64
+ ],
65
+ "feature_flags": {
66
+ "structured_output": true,
67
+ "parallel_tool_calls": true,
68
+ "extended_thinking": true,
69
+ "streaming_usage": true,
70
+ "system_messages": true,
71
+ "image_generation": true
72
+ }
73
+ },
74
+ "capability_profile": {
75
+ "phase": "ios_v1",
76
+ "inputs": {
77
+ "modalities": [
78
+ "text",
79
+ "image",
80
+ "audio"
81
+ ]
82
+ },
83
+ "outcomes": {
84
+ "types": [
85
+ "text_completion",
86
+ "structured_json",
87
+ "tool_call_sequence"
88
+ ]
89
+ },
90
+ "systems": {
91
+ "requires": [
92
+ "mcp",
93
+ "search"
94
+ ]
95
+ }
96
+ },
97
+ "parameters": {
98
+ "temperature": {
99
+ "type": "float",
100
+ "range": [
101
+ 0,
102
+ 2
103
+ ],
104
+ "default": 1
105
+ },
106
+ "max_tokens": {
107
+ "type": "integer",
108
+ "min": 1,
109
+ "max": 128000
110
+ },
111
+ "top_p": {
112
+ "type": "float",
113
+ "range": [
114
+ 0,
115
+ 1
116
+ ]
117
+ },
118
+ "frequency_penalty": {
119
+ "type": "float",
120
+ "range": [
121
+ -2,
122
+ 2
123
+ ]
124
+ },
125
+ "presence_penalty": {
126
+ "type": "float",
127
+ "range": [
128
+ -2,
129
+ 2
130
+ ]
131
+ },
132
+ "stream": {
133
+ "type": "boolean"
134
+ },
135
+ "n": {
136
+ "type": "integer",
137
+ "min": 1
138
+ },
139
+ "response_format": {
140
+ "type": "object"
141
+ }
142
+ },
143
+ "streaming": {
144
+ "decoder": {
145
+ "format": "sse",
146
+ "strategy": "openai_chat",
147
+ "done_signal": "[DONE]",
148
+ "prefix": "data: "
149
+ },
150
+ "event_map": [
151
+ {
152
+ "match": "$.choices[0].delta.content",
153
+ "emit": "PartialContentDelta",
154
+ "extract": {
155
+ "content": "$.choices[0].delta.content"
156
+ }
157
+ },
158
+ {
159
+ "match": "$.choices[0].delta.tool_calls",
160
+ "emit": "PartialToolCall",
161
+ "extract": {
162
+ "tool_calls": "$.choices[0].delta.tool_calls"
163
+ }
164
+ },
165
+ {
166
+ "match": "$.choices[0].finish_reason",
167
+ "emit": "StreamEnd",
168
+ "extract": {
169
+ "finish_reason": "$.choices[0].finish_reason"
170
+ }
171
+ },
172
+ {
173
+ "match": "$.usage",
174
+ "emit": "UsageReport",
175
+ "extract": {
176
+ "usage": "$.usage"
177
+ }
178
+ }
179
+ ],
180
+ "candidate": {
181
+ "candidate_id_path": "$.choices[*].index",
182
+ "fan_out": true
183
+ },
184
+ "accumulator": {
185
+ "stateful_tool_parsing": true,
186
+ "key_path": "$.choices[0].delta.tool_calls[0].function.arguments",
187
+ "flush_on": "$.choices[0].finish_reason == 'tool_calls'"
188
+ }
189
+ },
190
+ "multimodal": {
191
+ "input": {
192
+ "vision": {
193
+ "supported": true,
194
+ "formats": [
195
+ "jpeg",
196
+ "png",
197
+ "gif",
198
+ "webp"
199
+ ],
200
+ "encoding_methods": [
201
+ "base64_inline",
202
+ "url"
203
+ ],
204
+ "document_understanding": true
205
+ },
206
+ "audio": {
207
+ "supported": true,
208
+ "formats": [
209
+ "mp3",
210
+ "wav",
211
+ "flac",
212
+ "m4a",
213
+ "ogg",
214
+ "aac"
215
+ ],
216
+ "real_time_streaming": true,
217
+ "speech_recognition": true
218
+ },
219
+ "video": {
220
+ "supported": false
221
+ }
222
+ },
223
+ "output": {
224
+ "text": true,
225
+ "audio": {
226
+ "supported": true,
227
+ "formats": [
228
+ "mp3"
229
+ ],
230
+ "real_time_tts": true,
231
+ "natural_voice": true,
232
+ "voice_selection": true
233
+ },
234
+ "image": {
235
+ "supported": true,
236
+ "formats": [
237
+ "png"
238
+ ]
239
+ }
240
+ }
241
+ },
242
+ "computer_use": {
243
+ "supported": true,
244
+ "status": "preview",
245
+ "implementation": "screen_based",
246
+ "actions": {
247
+ "screenshot": {
248
+ "supported": true,
249
+ "formats": [
250
+ "png"
251
+ ]
252
+ },
253
+ "mouse": {
254
+ "supported": true,
255
+ "operations": [
256
+ "click",
257
+ "double_click",
258
+ "drag",
259
+ "scroll"
260
+ ]
261
+ },
262
+ "keyboard": {
263
+ "supported": true,
264
+ "operations": [
265
+ "type",
266
+ "key_press",
267
+ "shortcut"
268
+ ]
269
+ },
270
+ "browser": {
271
+ "supported": true,
272
+ "operations": [
273
+ "navigate",
274
+ "fill_form",
275
+ "click_element"
276
+ ]
277
+ }
278
+ },
279
+ "safety": {
280
+ "confirmation_required": true,
281
+ "sandbox_mode": "recommended",
282
+ "action_logging": true,
283
+ "domain_allowlist": false,
284
+ "sensitive_data_protection": true
285
+ },
286
+ "environment": {
287
+ "browser": true,
288
+ "desktop": true
289
+ },
290
+ "provider_mapping": {
291
+ "tool_type": "computer_use_preview",
292
+ "model_requirement": "computer-use-preview",
293
+ "api_endpoint": "/v1/responses"
294
+ }
295
+ },
296
+ "mcp": {
297
+ "client": {
298
+ "supported": true,
299
+ "protocol_version": "2025-11-25",
300
+ "transports": [
301
+ "streamable_http",
302
+ "sse"
303
+ ],
304
+ "auth_methods": [
305
+ "bearer",
306
+ "oauth2"
307
+ ],
308
+ "capabilities": {
309
+ "tools": true,
310
+ "resources": false,
311
+ "prompts": false,
312
+ "sampling": false
313
+ },
314
+ "tool_filtering": {
315
+ "allowed_tools": true,
316
+ "denied_tools": false
317
+ },
318
+ "approval_modes": [
319
+ "never",
320
+ "always"
321
+ ],
322
+ "provider_mapping": {
323
+ "tool_type": "mcp",
324
+ "api_endpoint": "/v1/responses",
325
+ "config_method": "tool_parameter"
326
+ }
327
+ }
328
+ },
329
+ "api_families": [
330
+ "chat_completions",
331
+ "completions",
332
+ "embeddings",
333
+ "assistants",
334
+ "realtime"
335
+ ],
336
+ "default_api_family": "chat_completions",
337
+ "endpoints": {
338
+ "chat": {
339
+ "path": "/chat/completions",
340
+ "method": "POST",
341
+ "adapter": "openai"
342
+ },
343
+ "embeddings": {
344
+ "path": "/embeddings",
345
+ "method": "POST",
346
+ "adapter": "openai"
347
+ }
348
+ },
349
+ "services": {
350
+ "list_models": {
351
+ "path": "/models",
352
+ "method": "GET",
353
+ "response_binding": "data"
354
+ }
355
+ },
356
+ "rate_limit_headers": {
357
+ "requests_limit": "x-ratelimit-limit-requests",
358
+ "requests_remaining": "x-ratelimit-remaining-requests",
359
+ "tokens_limit": "x-ratelimit-limit-tokens",
360
+ "tokens_remaining": "x-ratelimit-remaining-tokens",
361
+ "retry_after": "retry-after"
362
+ },
363
+ "retry_policy": {
364
+ "strategy": "exponential_backoff",
365
+ "max_retries": 3,
366
+ "min_delay_ms": 1000,
367
+ "max_delay_ms": 60000,
368
+ "jitter": "full",
369
+ "retry_on_http_status": [
370
+ 429,
371
+ 500,
372
+ 502,
373
+ 503
374
+ ]
375
+ },
376
+ "termination": {
377
+ "source_field": "finish_reason",
378
+ "mapping": {
379
+ "stop": "end_turn",
380
+ "length": "max_tokens",
381
+ "content_filter": "refusal",
382
+ "tool_calls": "tool_use",
383
+ "function_call": "tool_use"
384
+ }
385
+ },
386
+ "metadata": {
387
+ "models": {
388
+ "gpt-5.2": {
389
+ "context_window": 400000,
390
+ "max_output_tokens": 16384,
391
+ "release_date": "2025-12-10",
392
+ "pricing": {
393
+ "input_per_1m": 1.75,
394
+ "output_per_1m": 14
395
+ }
396
+ },
397
+ "gpt-5.3-codex": {
398
+ "context_window": 400000,
399
+ "max_output_tokens": 16384,
400
+ "release_date": "2026-02-05",
401
+ "pricing": {
402
+ "input_per_1m": 1.25,
403
+ "output_per_1m": 10
404
+ }
405
+ },
406
+ "gpt-5.3-codex-spark": {
407
+ "context_window": 128000,
408
+ "max_output_tokens": 16384,
409
+ "release_date": "2026-02-12",
410
+ "status": "research_preview"
411
+ }
412
+ },
413
+ "sdk": {
414
+ "python": "openai",
415
+ "typescript": "openai",
416
+ "go": "github.com/openai/openai-go"
417
+ }
418
+ }
419
+ }