Commit a22cd7e
feat: align SDK types with Venice API swagger spec v20260314
Comprehensive audit and update of all type definitions against the
official Venice API swagger spec. Adds missing parameters, fixes
incorrect response types, and adds test/example coverage for
previously undocumented features.
Types:
- chat: add enable_e2ee, enable_x_search, stop_token_ids, user, store,
text, include; response logprobs, stop_reason, prompt_tokens_details,
reasoning_content, tool_calls, venice_parameters echo with citations
- multimodal: add InputAudioContent, VideoUrlContent, CacheControl
- models: expand Model.type to 9 values, add ModelCapabilities (13 fields),
ModelPricing variants, ~40 new ModelSpec fields
- audio: add 9 Qwen 3 voices, fix transcription response (timestamps)
- images: fix ListImageStylesResponse to match swagger (string[])
- characters: add id, author, featured, photoUrl, modelId, expanded stats,
review types
- responses: add XSearch, CodeInterpreter, FileSearch, ComputerUse tools
- embeddings: make model required
- video: clarify image_url required for i2v models
Endpoints:
- characters: add getReviews() method
Tests:
- chat: 6 new parameter pass-through tests
- responses: new test file (16 tests)
- keys: new test file (36 tests)
Examples:
- 15: add web scraping example
- 20: function calling
- 21: structured output (json_schema)
- 22: reasoning config
- 23: video generation workflow
- 24: audio transcription
Docs:
- README: add examples 16-24, fix model names, standardize on VeniceAI
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 2c5a345 commit a22cd7e
21 files changed
Lines changed: 2101 additions & 2567 deletions
File tree
- examples
- typescript
- venice-ai-sdk/packages/core/src
- api/endpoints
- characters
- chat
- keys
- responses
- types
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
115 | 138 | | |
116 | 139 | | |
117 | 140 | | |
| |||
169 | 192 | | |
170 | 193 | | |
171 | 194 | | |
172 | | - | |
| 195 | + | |
173 | 196 | | |
174 | | - | |
| 197 | + | |
175 | 198 | | |
176 | 199 | | |
177 | 200 | | |
| |||
235 | 258 | | |
236 | 259 | | |
237 | 260 | | |
238 | | - | |
| 261 | + | |
239 | 262 | | |
240 | 263 | | |
241 | 264 | | |
| |||
249 | 272 | | |
250 | 273 | | |
251 | 274 | | |
252 | | - | |
| 275 | + | |
253 | 276 | | |
254 | | - | |
| 277 | + | |
255 | 278 | | |
256 | 279 | | |
257 | 280 | | |
| |||
294 | 317 | | |
295 | 318 | | |
296 | 319 | | |
297 | | - | |
| 320 | + | |
298 | 321 | | |
299 | 322 | | |
300 | 323 | | |
| |||
372 | 395 | | |
373 | 396 | | |
374 | 397 | | |
375 | | - | |
| 398 | + | |
376 | 399 | | |
377 | 400 | | |
378 | 401 | | |
| |||
410 | 433 | | |
411 | 434 | | |
412 | 435 | | |
413 | | - | |
| 436 | + | |
414 | 437 | | |
415 | 438 | | |
416 | 439 | | |
417 | 440 | | |
418 | | - | |
| 441 | + | |
419 | 442 | | |
420 | 443 | | |
421 | 444 | | |
| |||
481 | 504 | | |
482 | 505 | | |
483 | 506 | | |
484 | | - | |
| 507 | + | |
485 | 508 | | |
486 | 509 | | |
487 | 510 | | |
| |||
493 | 516 | | |
494 | 517 | | |
495 | 518 | | |
496 | | - | |
| 519 | + | |
497 | 520 | | |
498 | 521 | | |
499 | 522 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
72 | | - | |
73 | | - | |
| 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 | + | |
74 | 102 | | |
75 | 103 | | |
76 | 104 | | |
| |||
109 | 137 | | |
110 | 138 | | |
111 | 139 | | |
112 | | - | |
113 | | - | |
| 140 | + | |
| 141 | + | |
114 | 142 | | |
115 | 143 | | |
116 | 144 | | |
| |||
143 | 171 | | |
144 | 172 | | |
145 | 173 | | |
146 | | - | |
147 | | - | |
| 174 | + | |
| 175 | + | |
148 | 176 | | |
149 | 177 | | |
150 | 178 | | |
| |||
175 | 203 | | |
176 | 204 | | |
177 | 205 | | |
| 206 | + | |
| 207 | + | |
178 | 208 | | |
179 | 209 | | |
180 | 210 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
0 commit comments