@outputai/llm 0.11.1-next.da26845.0 → 0.12.0

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 (47) hide show
  1. package/package.json +7 -3
  2. package/src/agent.js +7 -2
  3. package/src/generate.js +1 -0
  4. package/src/index.d.ts +14 -6
  5. package/src/utils/wrap.js +35 -2
  6. package/src/agent.spec.js +0 -595
  7. package/src/ai_provider.spec.js +0 -217
  8. package/src/ai_sdk_options.spec.js +0 -390
  9. package/src/fixtures/image_response_v7_google_vertex.js +0 -72
  10. package/src/fixtures/image_response_v7_openai.js +0 -77
  11. package/src/fixtures/models_api_light.json +0 -675
  12. package/src/fixtures/models_api_v7_subset.json +0 -259
  13. package/src/fixtures/stream_response_v7_anthropic.js +0 -389
  14. package/src/fixtures/stream_response_v7_google_vertex.js +0 -462
  15. package/src/fixtures/stream_response_v7_openai.js +0 -353
  16. package/src/fixtures/stream_response_v7_perplexity.js +0 -671
  17. package/src/fixtures/text_response_v7_anthropic.js +0 -359
  18. package/src/fixtures/text_response_v7_anthropic_cache.js +0 -719
  19. package/src/fixtures/text_response_v7_google_vertex.js +0 -435
  20. package/src/fixtures/text_response_v7_openai.js +0 -347
  21. package/src/fixtures/text_response_v7_perplexity.js +0 -764
  22. package/src/generate.spec.js +0 -525
  23. package/src/prompt/content.spec.js +0 -208
  24. package/src/prompt/interpolations.spec.js +0 -109
  25. package/src/prompt/loader.full.spec.js +0 -309
  26. package/src/prompt/loader.spec.js +0 -258
  27. package/src/prompt/markup/attributes.spec.js +0 -132
  28. package/src/prompt/markup/nodes.spec.js +0 -333
  29. package/src/prompt/markup/tokenizer.spec.js +0 -149
  30. package/src/prompt/markup/tokens.spec.js +0 -250
  31. package/src/prompt/validations.spec.js +0 -812
  32. package/src/utils/cost.full.spec.js +0 -272
  33. package/src/utils/cost.spec.js +0 -290
  34. package/src/utils/error_handler.spec.js +0 -230
  35. package/src/utils/file.spec.js +0 -89
  36. package/src/utils/image.spec.js +0 -20
  37. package/src/utils/legacy_cost_attribute.spec.js +0 -278
  38. package/src/utils/models.spec.js +0 -119
  39. package/src/utils/models_pricing.spec.js +0 -162
  40. package/src/utils/skills.spec.js +0 -168
  41. package/src/utils/sources.spec.js +0 -122
  42. package/src/utils/stream.spec.js +0 -55
  43. package/src/utils/tools.spec.js +0 -167
  44. package/src/utils/usage.full.spec.js +0 -215
  45. package/src/utils/usage.spec.js +0 -246
  46. package/src/utils/wrap.spec.js +0 -467
  47. package/src/validations.spec.js +0 -631
@@ -1,259 +0,0 @@
1
- {
2
- "openai": {
3
- "id": "openai",
4
- "env": [
5
- "OPENAI_API_KEY"
6
- ],
7
- "npm": "@ai-sdk/openai",
8
- "name": "OpenAI",
9
- "doc": "https://platform.openai.com/docs/models",
10
- "models": {
11
- "gpt-4.1-mini": {
12
- "id": "gpt-4.1-mini",
13
- "name": "GPT-4.1 mini",
14
- "description": "Affordable GPT-4.1 lane for fast coding help and structured extraction",
15
- "family": "gpt-mini",
16
- "attachment": true,
17
- "reasoning": false,
18
- "tool_call": true,
19
- "structured_output": true,
20
- "temperature": true,
21
- "knowledge": "2024-04",
22
- "release_date": "2025-04-14",
23
- "last_updated": "2025-04-14",
24
- "modalities": {
25
- "input": [
26
- "text",
27
- "image",
28
- "pdf"
29
- ],
30
- "output": [
31
- "text"
32
- ]
33
- },
34
- "open_weights": false,
35
- "limit": {
36
- "context": 1047576,
37
- "output": 32768
38
- },
39
- "cost": {
40
- "input": 0.4,
41
- "output": 1.6,
42
- "cache_read": 0.1
43
- }
44
- },
45
- "gpt-image-1": {
46
- "id": "gpt-image-1",
47
- "name": "gpt-image-1",
48
- "description": "OpenAI image model for production generation, edits, and brand-safe visual workflows",
49
- "family": "gpt-image",
50
- "attachment": true,
51
- "reasoning": false,
52
- "tool_call": false,
53
- "temperature": false,
54
- "release_date": "2025-04-24",
55
- "last_updated": "2025-04-24",
56
- "modalities": {
57
- "input": [
58
- "text",
59
- "image"
60
- ],
61
- "output": [
62
- "image"
63
- ]
64
- },
65
- "open_weights": false,
66
- "limit": {
67
- "context": 0,
68
- "input": 0,
69
- "output": 0
70
- },
71
- "status": "deprecated"
72
- }
73
- }
74
- },
75
- "anthropic": {
76
- "id": "anthropic",
77
- "env": [
78
- "ANTHROPIC_API_KEY"
79
- ],
80
- "npm": "@ai-sdk/anthropic",
81
- "name": "Anthropic",
82
- "doc": "https://docs.anthropic.com/en/docs/about-claude/models",
83
- "models": {
84
- "claude-haiku-4-5": {
85
- "id": "claude-haiku-4-5",
86
- "name": "Claude Haiku 4.5 (latest)",
87
- "description": "Fast Claude lane for lightweight agents, office tasks, and responsive chat",
88
- "family": "claude-haiku",
89
- "attachment": true,
90
- "reasoning": true,
91
- "reasoning_options": [
92
- {
93
- "type": "budget_tokens",
94
- "min": 1024
95
- }
96
- ],
97
- "tool_call": true,
98
- "structured_output": true,
99
- "temperature": true,
100
- "knowledge": "2025-02-28",
101
- "release_date": "2025-10-15",
102
- "last_updated": "2025-10-15",
103
- "modalities": {
104
- "input": [
105
- "text",
106
- "image",
107
- "pdf"
108
- ],
109
- "output": [
110
- "text"
111
- ]
112
- },
113
- "open_weights": false,
114
- "limit": {
115
- "context": 200000,
116
- "output": 64000
117
- },
118
- "cost": {
119
- "input": 1,
120
- "output": 5,
121
- "cache_read": 0.1,
122
- "cache_write": 1.25
123
- }
124
- }
125
- }
126
- },
127
- "google-vertex": {
128
- "id": "google-vertex",
129
- "env": [
130
- "GOOGLE_VERTEX_PROJECT",
131
- "GOOGLE_VERTEX_LOCATION",
132
- "GOOGLE_APPLICATION_CREDENTIALS"
133
- ],
134
- "npm": "@ai-sdk/google-vertex",
135
- "name": "Vertex",
136
- "doc": "https://cloud.google.com/vertex-ai/generative-ai/docs/models",
137
- "models": {
138
- "gemini-2.5-flash": {
139
- "id": "gemini-2.5-flash",
140
- "name": "Gemini 2.5 Flash",
141
- "description": "Fast Gemini model balancing multimodal reasoning, tool use, and cost",
142
- "family": "gemini-flash",
143
- "attachment": true,
144
- "reasoning": true,
145
- "reasoning_options": [
146
- {
147
- "type": "toggle"
148
- },
149
- {
150
- "type": "budget_tokens",
151
- "min": 0,
152
- "max": 24576
153
- }
154
- ],
155
- "tool_call": true,
156
- "temperature": true,
157
- "knowledge": "2025-01",
158
- "release_date": "2025-06-17",
159
- "last_updated": "2025-06-17",
160
- "modalities": {
161
- "input": [
162
- "text",
163
- "image",
164
- "audio",
165
- "video",
166
- "pdf"
167
- ],
168
- "output": [
169
- "text"
170
- ]
171
- },
172
- "open_weights": false,
173
- "limit": {
174
- "context": 1048576,
175
- "output": 65536
176
- },
177
- "cost": {
178
- "input": 0.3,
179
- "output": 2.5,
180
- "cache_read": 0.03,
181
- "input_audio": 1
182
- }
183
- },
184
- "gemini-2.5-flash-image": {
185
- "id": "gemini-2.5-flash-image",
186
- "name": "Nano Banana",
187
- "description": "Nano Banana image model for fast generation, edits, and character-consistent assets",
188
- "family": "gemini-flash",
189
- "attachment": true,
190
- "reasoning": false,
191
- "tool_call": false,
192
- "temperature": true,
193
- "knowledge": "2024-06",
194
- "release_date": "2025-08-26",
195
- "last_updated": "2025-08-26",
196
- "modalities": {
197
- "input": [
198
- "text",
199
- "image"
200
- ],
201
- "output": [
202
- "text",
203
- "image"
204
- ]
205
- },
206
- "open_weights": false,
207
- "limit": {
208
- "context": 32768,
209
- "output": 32768
210
- },
211
- "cost": {
212
- "input": 0.3,
213
- "output": 30
214
- }
215
- }
216
- }
217
- },
218
- "perplexity": {
219
- "id": "perplexity",
220
- "env": [
221
- "PERPLEXITY_API_KEY"
222
- ],
223
- "npm": "@ai-sdk/perplexity",
224
- "name": "Perplexity",
225
- "doc": "https://docs.perplexity.ai",
226
- "models": {
227
- "sonar": {
228
- "id": "sonar",
229
- "name": "Sonar",
230
- "description": "Fast web-grounded Sonar for current answers, citations, and lightweight retrieval",
231
- "family": "sonar",
232
- "attachment": false,
233
- "reasoning": false,
234
- "tool_call": false,
235
- "temperature": true,
236
- "knowledge": "2025-09-01",
237
- "release_date": "2024-01-01",
238
- "last_updated": "2025-09-01",
239
- "modalities": {
240
- "input": [
241
- "text"
242
- ],
243
- "output": [
244
- "text"
245
- ]
246
- },
247
- "open_weights": false,
248
- "limit": {
249
- "context": 128000,
250
- "output": 4096
251
- },
252
- "cost": {
253
- "input": 1,
254
- "output": 1
255
- }
256
- }
257
- }
258
- }
259
- }