@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,209 @@
1
+ {
2
+ "$schema": "https://raw.githubusercontent.com/ailib-official/ai-protocol/main/schemas/v1.json",
3
+ "id": "doubao",
4
+ "protocol_version": "1.5",
5
+ "name": "字节跳动豆包 (Doubao)",
6
+ "version": "v1",
7
+ "status": "stable",
8
+ "category": "ai_provider",
9
+ "official_url": "https://www.volcengine.com/docs/82379",
10
+ "support_contact": "https://www.volcengine.com/contact",
11
+ "endpoint": {
12
+ "base_url": "https://ark.cn-beijing.volces.com/api/v3",
13
+ "protocol": "https",
14
+ "timeout_ms": 60000
15
+ },
16
+ "auth": {
17
+ "type": "bearer",
18
+ "token_env": "VOLCENGINE_API_KEY"
19
+ },
20
+ "payload_format": "openai_style",
21
+ "api_families": [
22
+ "chat_completions"
23
+ ],
24
+ "default_api_family": "chat_completions",
25
+ "endpoints": {
26
+ "chat": {
27
+ "path": "/chat/completions",
28
+ "method": "POST",
29
+ "adapter": "openai"
30
+ }
31
+ },
32
+ "services": {
33
+ "list_models": {
34
+ "path": "/models",
35
+ "method": "GET",
36
+ "response_binding": "data"
37
+ }
38
+ },
39
+ "termination": {
40
+ "source_field": "finish_reason",
41
+ "mapping": {
42
+ "stop": "end_turn",
43
+ "length": "max_tokens",
44
+ "tool_calls": "tool_use",
45
+ "content_filter": "refusal"
46
+ },
47
+ "notes": [
48
+ "OpenAI-compatible finish_reason.",
49
+ "Doubao (豆包) is ByteDance's flagship LLM accessed via Volcengine."
50
+ ]
51
+ },
52
+ "tooling": {
53
+ "source_model": "openai_tool_calls",
54
+ "tool_use": {
55
+ "id_path": "id",
56
+ "name_path": "function.name",
57
+ "input_path": "function.arguments",
58
+ "input_format": "json_string"
59
+ },
60
+ "notes": [
61
+ "Supports OpenAI-compatible function calling."
62
+ ]
63
+ },
64
+ "retry_policy": {
65
+ "strategy": "exponential_backoff",
66
+ "max_retries": 3,
67
+ "min_delay_ms": 1000,
68
+ "max_delay_ms": 30000,
69
+ "jitter": "full",
70
+ "retry_on_http_status": [
71
+ 429,
72
+ 500,
73
+ 502,
74
+ 503
75
+ ]
76
+ },
77
+ "error_classification": {
78
+ "by_http_status": {
79
+ "400": "invalid_request",
80
+ "401": "authentication",
81
+ "403": "permission_denied",
82
+ "404": "not_found",
83
+ "429": "rate_limited",
84
+ "500": "server_error",
85
+ "503": "overloaded"
86
+ }
87
+ },
88
+ "parameter_mappings": {
89
+ "temperature": "temperature",
90
+ "max_tokens": "max_tokens",
91
+ "stream": "stream",
92
+ "top_p": "top_p",
93
+ "stop_sequences": "stop",
94
+ "tools": "tools",
95
+ "tool_choice": "tool_choice",
96
+ "frequency_penalty": "frequency_penalty",
97
+ "presence_penalty": "presence_penalty"
98
+ },
99
+ "response_format": "openai_style",
100
+ "response_paths": {
101
+ "content": "choices[0].message.content",
102
+ "tool_calls": "choices[0].message.tool_calls",
103
+ "usage": "usage",
104
+ "finish_reason": "choices[0].finish_reason"
105
+ },
106
+ "streaming": {
107
+ "event_format": "data_lines",
108
+ "decoder": {
109
+ "format": "sse",
110
+ "delimiter": "\n\n",
111
+ "prefix": "data: ",
112
+ "done_signal": "[DONE]"
113
+ },
114
+ "content_path": "choices[0].delta.content",
115
+ "tool_call_path": "choices[0].delta.tool_calls",
116
+ "usage_path": "usage",
117
+ "frame_selector": "exists($.choices) || exists($.error)",
118
+ "event_map": [
119
+ {
120
+ "match": "exists($.choices[*].delta.content)",
121
+ "emit": "PartialContentDelta",
122
+ "fields": {
123
+ "content": "$.choices[*].delta.content"
124
+ }
125
+ },
126
+ {
127
+ "match": "exists($.choices[*].delta.tool_calls[*].function.name)",
128
+ "emit": "ToolCallStarted",
129
+ "fields": {
130
+ "tool_call_id": "$.choices[*].delta.tool_calls[*].id",
131
+ "tool_name": "$.choices[*].delta.tool_calls[*].function.name",
132
+ "index": "$.choices[*].delta.tool_calls[*].index"
133
+ }
134
+ },
135
+ {
136
+ "match": "exists($.choices[*].delta.tool_calls[*].function.arguments)",
137
+ "emit": "PartialToolCall",
138
+ "fields": {
139
+ "arguments": "$.choices[*].delta.tool_calls[*].function.arguments",
140
+ "index": "$.choices[*].delta.tool_calls[*].index"
141
+ }
142
+ },
143
+ {
144
+ "match": "exists($.usage)",
145
+ "emit": "Metadata",
146
+ "fields": {
147
+ "usage": "$.usage"
148
+ }
149
+ },
150
+ {
151
+ "match": "exists($.choices[*].finish_reason)",
152
+ "emit": "FinalCandidate",
153
+ "fields": {
154
+ "finish_reason": "$.choices[*].finish_reason"
155
+ }
156
+ }
157
+ ],
158
+ "stop_condition": "$.choices[0].finish_reason != null"
159
+ },
160
+ "features": {
161
+ "multi_candidate": {
162
+ "support_type": "native",
163
+ "param_name": "n"
164
+ },
165
+ "response_mapping": {
166
+ "tool_calls": {
167
+ "path": "choices[0].message.tool_calls",
168
+ "fields": {
169
+ "id": "id",
170
+ "name": "function.name",
171
+ "args": "function.arguments"
172
+ }
173
+ },
174
+ "error": {
175
+ "message_path": "error.message",
176
+ "code_path": "error.code",
177
+ "type_path": "error.type"
178
+ }
179
+ }
180
+ },
181
+ "capabilities": {
182
+ "streaming": true,
183
+ "tools": true,
184
+ "vision": true,
185
+ "agentic": true,
186
+ "parallel_tools": true,
187
+ "reasoning": true
188
+ },
189
+ "availability": {
190
+ "required": false,
191
+ "regions": [
192
+ "cn"
193
+ ],
194
+ "check": {
195
+ "method": "GET",
196
+ "path": "/models",
197
+ "expected_status": [
198
+ 200,
199
+ 401
200
+ ],
201
+ "timeout_ms": 5000
202
+ }
203
+ },
204
+ "experimental_features": [
205
+ "bot_chat",
206
+ "embeddings",
207
+ "image_generation"
208
+ ]
209
+ }
@@ -0,0 +1,227 @@
1
+ {
2
+ "$schema": "https://raw.githubusercontent.com/ailib-official/ai-protocol/main/schemas/v1.json",
3
+ "id": "fireworks",
4
+ "protocol_version": "1.5",
5
+ "name": "Fireworks AI",
6
+ "version": "v1",
7
+ "status": "stable",
8
+ "category": "ai_provider",
9
+ "official_url": "https://docs.fireworks.ai",
10
+ "support_contact": "https://fireworks.ai/contact",
11
+ "endpoint": {
12
+ "base_url": "https://api.fireworks.ai/inference/v1",
13
+ "protocol": "https",
14
+ "timeout_ms": 30000
15
+ },
16
+ "auth": {
17
+ "type": "bearer",
18
+ "token_env": "FIREWORKS_API_KEY"
19
+ },
20
+ "payload_format": "openai_style",
21
+ "api_families": [
22
+ "chat_completions",
23
+ "completions"
24
+ ],
25
+ "default_api_family": "chat_completions",
26
+ "endpoints": {
27
+ "chat": {
28
+ "path": "/chat/completions",
29
+ "method": "POST",
30
+ "adapter": "openai"
31
+ },
32
+ "completions": {
33
+ "path": "/completions",
34
+ "method": "POST",
35
+ "adapter": "openai"
36
+ }
37
+ },
38
+ "services": {
39
+ "list_models": {
40
+ "path": "/models",
41
+ "method": "GET",
42
+ "response_binding": "data"
43
+ }
44
+ },
45
+ "termination": {
46
+ "source_field": "finish_reason",
47
+ "mapping": {
48
+ "stop": "end_turn",
49
+ "length": "max_tokens",
50
+ "tool_calls": "tool_use",
51
+ "content_filter": "refusal"
52
+ },
53
+ "notes": [
54
+ "OpenAI-compatible: finish_reason is reported per candidate."
55
+ ]
56
+ },
57
+ "tooling": {
58
+ "source_model": "openai_tool_calls",
59
+ "tool_use": {
60
+ "id_path": "id",
61
+ "name_path": "function.name",
62
+ "input_path": "function.arguments",
63
+ "input_format": "json_string"
64
+ },
65
+ "notes": [
66
+ "OpenAI-compatible tool calling format."
67
+ ]
68
+ },
69
+ "rate_limit_headers": {
70
+ "requests_limit": "x-ratelimit-limit-requests",
71
+ "requests_remaining": "x-ratelimit-remaining-requests",
72
+ "tokens_limit": "x-ratelimit-limit-tokens",
73
+ "tokens_remaining": "x-ratelimit-remaining-tokens"
74
+ },
75
+ "retry_policy": {
76
+ "strategy": "exponential_backoff",
77
+ "max_retries": 3,
78
+ "min_delay_ms": 1000,
79
+ "max_delay_ms": 30000,
80
+ "jitter": "full",
81
+ "retry_on_http_status": [
82
+ 429,
83
+ 500,
84
+ 502,
85
+ 503
86
+ ],
87
+ "notes": [
88
+ "Fireworks AI uses standard rate limiting with exponential backoff."
89
+ ]
90
+ },
91
+ "error_classification": {
92
+ "by_http_status": {
93
+ "400": "invalid_request",
94
+ "401": "authentication",
95
+ "403": "permission_denied",
96
+ "404": "not_found",
97
+ "429": "rate_limited",
98
+ "500": "server_error",
99
+ "502": "server_error",
100
+ "503": "overloaded"
101
+ }
102
+ },
103
+ "parameter_mappings": {
104
+ "temperature": "temperature",
105
+ "max_tokens": "max_tokens",
106
+ "stream": "stream",
107
+ "top_p": "top_p",
108
+ "stop_sequences": "stop",
109
+ "frequency_penalty": "frequency_penalty",
110
+ "presence_penalty": "presence_penalty",
111
+ "tools": "tools",
112
+ "tool_choice": "tool_choice",
113
+ "seed": "seed",
114
+ "top_k": "top_k"
115
+ },
116
+ "response_format": "openai_style",
117
+ "response_paths": {
118
+ "content": "choices[0].message.content",
119
+ "tool_calls": "choices[0].message.tool_calls",
120
+ "usage": "usage",
121
+ "finish_reason": "choices[0].finish_reason"
122
+ },
123
+ "streaming": {
124
+ "event_format": "data_lines",
125
+ "decoder": {
126
+ "format": "sse",
127
+ "delimiter": "\n\n",
128
+ "prefix": "data: ",
129
+ "done_signal": "[DONE]"
130
+ },
131
+ "content_path": "choices[0].delta.content",
132
+ "tool_call_path": "choices[0].delta.tool_calls",
133
+ "usage_path": "usage",
134
+ "frame_selector": "exists($.choices) || exists($.error)",
135
+ "event_map": [
136
+ {
137
+ "match": "exists($.choices[*].delta.content)",
138
+ "emit": "PartialContentDelta",
139
+ "fields": {
140
+ "content": "$.choices[*].delta.content"
141
+ }
142
+ },
143
+ {
144
+ "match": "exists($.choices[*].delta.tool_calls[*].function.name)",
145
+ "emit": "ToolCallStarted",
146
+ "fields": {
147
+ "tool_call_id": "$.choices[*].delta.tool_calls[*].id",
148
+ "tool_name": "$.choices[*].delta.tool_calls[*].function.name",
149
+ "index": "$.choices[*].delta.tool_calls[*].index"
150
+ }
151
+ },
152
+ {
153
+ "match": "exists($.choices[*].delta.tool_calls[*].function.arguments)",
154
+ "emit": "PartialToolCall",
155
+ "fields": {
156
+ "arguments": "$.choices[*].delta.tool_calls[*].function.arguments",
157
+ "index": "$.choices[*].delta.tool_calls[*].index"
158
+ }
159
+ },
160
+ {
161
+ "match": "exists($.usage)",
162
+ "emit": "Metadata",
163
+ "fields": {
164
+ "usage": "$.usage"
165
+ }
166
+ },
167
+ {
168
+ "match": "exists($.choices[*].finish_reason)",
169
+ "emit": "FinalCandidate",
170
+ "fields": {
171
+ "finish_reason": "$.choices[*].finish_reason",
172
+ "candidate_index": "$.choices[*].index"
173
+ }
174
+ }
175
+ ],
176
+ "stop_condition": "$.choices[0].finish_reason != null"
177
+ },
178
+ "features": {
179
+ "multi_candidate": {
180
+ "support_type": "native",
181
+ "param_name": "n"
182
+ },
183
+ "response_mapping": {
184
+ "tool_calls": {
185
+ "path": "choices[0].message.tool_calls",
186
+ "fields": {
187
+ "id": "id",
188
+ "name": "function.name",
189
+ "args": "function.arguments"
190
+ }
191
+ },
192
+ "error": {
193
+ "message_path": "error.message",
194
+ "code_path": "error.code",
195
+ "type_path": "error.type"
196
+ }
197
+ }
198
+ },
199
+ "capabilities": {
200
+ "streaming": true,
201
+ "tools": true,
202
+ "vision": true,
203
+ "agentic": true,
204
+ "parallel_tools": true,
205
+ "reasoning": false
206
+ },
207
+ "availability": {
208
+ "required": false,
209
+ "regions": [
210
+ "global"
211
+ ],
212
+ "check": {
213
+ "method": "GET",
214
+ "path": "/models",
215
+ "expected_status": [
216
+ 200,
217
+ 401
218
+ ],
219
+ "timeout_ms": 5000
220
+ }
221
+ },
222
+ "experimental_features": [
223
+ "function_calling",
224
+ "json_mode",
225
+ "serverless_inference"
226
+ ]
227
+ }