@aeye/models 0.1.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.
- package/ReplicateScrape.md +54 -0
- package/dist/scripts/codegen.d.ts +21 -0
- package/dist/scripts/codegen.d.ts.map +1 -0
- package/dist/scripts/codegen.js +102 -0
- package/dist/scripts/codegen.js.map +1 -0
- package/dist/scripts/scrape.d.ts +19 -0
- package/dist/scripts/scrape.d.ts.map +1 -0
- package/dist/scripts/scrape.js +146 -0
- package/dist/scripts/scrape.js.map +1 -0
- package/dist/scripts/scrapers/__tests__/aws.test.d.ts +8 -0
- package/dist/scripts/scrapers/__tests__/aws.test.d.ts.map +1 -0
- package/dist/scripts/scrapers/__tests__/aws.test.js +73 -0
- package/dist/scripts/scrapers/__tests__/aws.test.js.map +1 -0
- package/dist/scripts/scrapers/aws.d.ts +12 -0
- package/dist/scripts/scrapers/aws.d.ts.map +1 -0
- package/dist/scripts/scrapers/aws.js +314 -0
- package/dist/scripts/scrapers/aws.js.map +1 -0
- package/dist/scripts/scrapers/openai.d.ts +12 -0
- package/dist/scripts/scrapers/openai.d.ts.map +1 -0
- package/dist/scripts/scrapers/openai.js +490 -0
- package/dist/scripts/scrapers/openai.js.map +1 -0
- package/dist/scripts/scrapers/openrouter.d.ts +13 -0
- package/dist/scripts/scrapers/openrouter.d.ts.map +1 -0
- package/dist/scripts/scrapers/openrouter.js +156 -0
- package/dist/scripts/scrapers/openrouter.js.map +1 -0
- package/dist/scripts/scrapers/replicate.d.ts +12 -0
- package/dist/scripts/scrapers/replicate.d.ts.map +1 -0
- package/dist/scripts/scrapers/replicate.js +305 -0
- package/dist/scripts/scrapers/replicate.js.map +1 -0
- package/dist/src/index.d.ts +11 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +11 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/models/aws.d.ts +11 -0
- package/dist/src/models/aws.d.ts.map +1 -0
- package/dist/src/models/aws.js +2632 -0
- package/dist/src/models/aws.js.map +1 -0
- package/dist/src/models/index.d.ts +15 -0
- package/dist/src/models/index.d.ts.map +1 -0
- package/dist/src/models/index.js +18 -0
- package/dist/src/models/index.js.map +1 -0
- package/dist/src/models/openai.d.ts +11 -0
- package/dist/src/models/openai.d.ts.map +1 -0
- package/dist/src/models/openai.js +2207 -0
- package/dist/src/models/openai.js.map +1 -0
- package/dist/src/models/openrouter.d.ts +11 -0
- package/dist/src/models/openrouter.d.ts.map +1 -0
- package/dist/src/models/openrouter.js +9786 -0
- package/dist/src/models/openrouter.js.map +1 -0
- package/dist/src/models/replicate.d.ts +11 -0
- package/dist/src/models/replicate.d.ts.map +1 -0
- package/dist/src/models/replicate.js +4106 -0
- package/dist/src/models/replicate.js.map +1 -0
- package/dist/src/transformers/index.d.ts +23 -0
- package/dist/src/transformers/index.d.ts.map +1 -0
- package/dist/src/transformers/index.js +24 -0
- package/dist/src/transformers/index.js.map +1 -0
- package/package.json +50 -0
- package/scripts/codegen.ts +117 -0
- package/scripts/scrape.ts +182 -0
- package/scripts/scrapers/__tests__/aws.test.ts +86 -0
- package/scripts/scrapers/aws.ts +370 -0
- package/scripts/scrapers/openai.ts +619 -0
- package/scripts/scrapers/openrouter.ts +214 -0
- package/scripts/scrapers/replicate.ts +448 -0
- package/scripts/tsconfig.json +24 -0
- package/src/index.ts +11 -0
- package/src/models/aws.ts +2634 -0
- package/src/models/index.ts +21 -0
- package/src/models/openai.ts +2209 -0
- package/src/models/openrouter.ts +9788 -0
- package/src/models/replicate.ts +4108 -0
- package/src/transformers/index.ts +26 -0
- package/tsconfig.json +14 -0
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AWS Bedrock Model Scraper
|
|
3
|
+
*
|
|
4
|
+
* Fetches model information from AWS Bedrock using the AWS SDK
|
|
5
|
+
*/
|
|
6
|
+
import { BedrockClient, ListFoundationModelsCommand, } from '@aws-sdk/client-bedrock';
|
|
7
|
+
import * as fs from 'fs/promises';
|
|
8
|
+
import * as path from 'path';
|
|
9
|
+
import * as url from 'url';
|
|
10
|
+
import { writeModelTS } from '../codegen';
|
|
11
|
+
const __filename = url.fileURLToPath(import.meta.url);
|
|
12
|
+
const __dirname = path.dirname(__filename);
|
|
13
|
+
/**
|
|
14
|
+
* Model pricing information (per million tokens)
|
|
15
|
+
* Source: https://aws.amazon.com/bedrock/pricing/
|
|
16
|
+
*/
|
|
17
|
+
const MODEL_PRICING = {
|
|
18
|
+
// Anthropic Claude 3.5 Sonnet
|
|
19
|
+
'anthropic.claude-3-5-sonnet-20240620-v1:0': { input: 3, output: 15 },
|
|
20
|
+
'anthropic.claude-3-5-sonnet-20241022-v2:0': { input: 3, output: 15 },
|
|
21
|
+
// Anthropic Claude 3 Opus
|
|
22
|
+
'anthropic.claude-3-opus-20240229-v1:0': { input: 15, output: 75 },
|
|
23
|
+
// Anthropic Claude 3 Sonnet
|
|
24
|
+
'anthropic.claude-3-sonnet-20240229-v1:0': { input: 3, output: 15 },
|
|
25
|
+
// Anthropic Claude 3 Haiku
|
|
26
|
+
'anthropic.claude-3-haiku-20240307-v1:0': { input: 0.25, output: 1.25 },
|
|
27
|
+
// Anthropic Claude 2.x
|
|
28
|
+
'anthropic.claude-v2:1': { input: 8, output: 24 },
|
|
29
|
+
'anthropic.claude-v2': { input: 8, output: 24 },
|
|
30
|
+
'anthropic.claude-instant-v1': { input: 0.8, output: 2.4 },
|
|
31
|
+
// Meta Llama 3.2
|
|
32
|
+
'meta.llama3-2-1b-instruct-v1:0': { input: 0.1, output: 0.1 },
|
|
33
|
+
'meta.llama3-2-3b-instruct-v1:0': { input: 0.15, output: 0.15 },
|
|
34
|
+
'meta.llama3-2-11b-instruct-v1:0': { input: 0.35, output: 0.35 },
|
|
35
|
+
'meta.llama3-2-90b-instruct-v1:0': { input: 2.65, output: 2.65 },
|
|
36
|
+
// Meta Llama 3.1
|
|
37
|
+
'meta.llama3-1-8b-instruct-v1:0': { input: 0.3, output: 0.6 },
|
|
38
|
+
'meta.llama3-1-70b-instruct-v1:0': { input: 2.65, output: 3.5 },
|
|
39
|
+
'meta.llama3-1-405b-instruct-v1:0': { input: 5.32, output: 16 },
|
|
40
|
+
// Meta Llama 3
|
|
41
|
+
'meta.llama3-8b-instruct-v1:0': { input: 0.3, output: 0.6 },
|
|
42
|
+
'meta.llama3-70b-instruct-v1:0': { input: 2.65, output: 3.5 },
|
|
43
|
+
// Meta Llama 2
|
|
44
|
+
'meta.llama2-13b-chat-v1': { input: 0.75, output: 1 },
|
|
45
|
+
'meta.llama2-70b-chat-v1': { input: 1.95, output: 2.56 },
|
|
46
|
+
// Mistral AI
|
|
47
|
+
'mistral.mistral-7b-instruct-v0:2': { input: 0.15, output: 0.2 },
|
|
48
|
+
'mistral.mixtral-8x7b-instruct-v0:1': { input: 0.45, output: 0.7 },
|
|
49
|
+
'mistral.mistral-large-2402-v1:0': { input: 4, output: 12 },
|
|
50
|
+
'mistral.mistral-large-2407-v1:0': { input: 3, output: 9 },
|
|
51
|
+
// Cohere
|
|
52
|
+
'cohere.command-text-v14': { input: 1.5, output: 2 },
|
|
53
|
+
'cohere.command-light-text-v14': { input: 0.3, output: 0.6 },
|
|
54
|
+
'cohere.command-r-v1:0': { input: 0.5, output: 1.5 },
|
|
55
|
+
'cohere.command-r-plus-v1:0': { input: 3, output: 15 },
|
|
56
|
+
// Amazon Titan Text
|
|
57
|
+
'amazon.titan-text-lite-v1': { input: 0.15, output: 0.2 },
|
|
58
|
+
'amazon.titan-text-express-v1': { input: 0.2, output: 0.6 },
|
|
59
|
+
'amazon.titan-text-premier-v1:0': { input: 0.5, output: 1.5 },
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Model context window information (in tokens)
|
|
63
|
+
* Source: AWS Bedrock documentation
|
|
64
|
+
*/
|
|
65
|
+
const MODEL_CONTEXT_WINDOWS = {
|
|
66
|
+
// Anthropic Claude 3.5 Sonnet
|
|
67
|
+
'anthropic.claude-3-5-sonnet-20240620-v1:0': { context: 200000, maxOutput: 8192 },
|
|
68
|
+
'anthropic.claude-3-5-sonnet-20241022-v2:0': { context: 200000, maxOutput: 8192 },
|
|
69
|
+
// Anthropic Claude 3 Opus
|
|
70
|
+
'anthropic.claude-3-opus-20240229-v1:0': { context: 200000, maxOutput: 4096 },
|
|
71
|
+
// Anthropic Claude 3 Sonnet
|
|
72
|
+
'anthropic.claude-3-sonnet-20240229-v1:0': { context: 200000, maxOutput: 4096 },
|
|
73
|
+
// Anthropic Claude 3 Haiku
|
|
74
|
+
'anthropic.claude-3-haiku-20240307-v1:0': { context: 200000, maxOutput: 4096 },
|
|
75
|
+
// Anthropic Claude 2.x
|
|
76
|
+
'anthropic.claude-v2:1': { context: 100000, maxOutput: 4096 },
|
|
77
|
+
'anthropic.claude-v2': { context: 100000, maxOutput: 4096 },
|
|
78
|
+
'anthropic.claude-instant-v1': { context: 100000, maxOutput: 4096 },
|
|
79
|
+
// Meta Llama 3.2
|
|
80
|
+
'meta.llama3-2-1b-instruct-v1:0': { context: 128000, maxOutput: 2048 },
|
|
81
|
+
'meta.llama3-2-3b-instruct-v1:0': { context: 128000, maxOutput: 2048 },
|
|
82
|
+
'meta.llama3-2-11b-instruct-v1:0': { context: 128000, maxOutput: 2048 },
|
|
83
|
+
'meta.llama3-2-90b-instruct-v1:0': { context: 128000, maxOutput: 2048 },
|
|
84
|
+
// Meta Llama 3.1
|
|
85
|
+
'meta.llama3-1-8b-instruct-v1:0': { context: 128000, maxOutput: 2048 },
|
|
86
|
+
'meta.llama3-1-70b-instruct-v1:0': { context: 128000, maxOutput: 2048 },
|
|
87
|
+
'meta.llama3-1-405b-instruct-v1:0': { context: 128000, maxOutput: 4096 },
|
|
88
|
+
// Meta Llama 3
|
|
89
|
+
'meta.llama3-8b-instruct-v1:0': { context: 8192, maxOutput: 2048 },
|
|
90
|
+
'meta.llama3-70b-instruct-v1:0': { context: 8192, maxOutput: 2048 },
|
|
91
|
+
// Meta Llama 2
|
|
92
|
+
'meta.llama2-13b-chat-v1': { context: 4096, maxOutput: 2048 },
|
|
93
|
+
'meta.llama2-70b-chat-v1': { context: 4096, maxOutput: 2048 },
|
|
94
|
+
// Mistral AI
|
|
95
|
+
'mistral.mistral-7b-instruct-v0:2': { context: 32000, maxOutput: 8192 },
|
|
96
|
+
'mistral.mixtral-8x7b-instruct-v0:1': { context: 32000, maxOutput: 8192 },
|
|
97
|
+
'mistral.mistral-large-2402-v1:0': { context: 32000, maxOutput: 8192 },
|
|
98
|
+
'mistral.mistral-large-2407-v1:0': { context: 128000, maxOutput: 8192 },
|
|
99
|
+
// Cohere
|
|
100
|
+
'cohere.command-text-v14': { context: 4096, maxOutput: 4096 },
|
|
101
|
+
'cohere.command-light-text-v14': { context: 4096, maxOutput: 4096 },
|
|
102
|
+
'cohere.command-r-v1:0': { context: 128000, maxOutput: 4096 },
|
|
103
|
+
'cohere.command-r-plus-v1:0': { context: 128000, maxOutput: 4096 },
|
|
104
|
+
// Amazon Titan Text
|
|
105
|
+
'amazon.titan-text-lite-v1': { context: 4096, maxOutput: 4096 },
|
|
106
|
+
'amazon.titan-text-express-v1': { context: 8192, maxOutput: 8192 },
|
|
107
|
+
'amazon.titan-text-premier-v1:0': { context: 32000, maxOutput: 3072 },
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* Detect model family from model ID
|
|
111
|
+
*/
|
|
112
|
+
function detectModelFamily(modelId) {
|
|
113
|
+
if (modelId.startsWith('anthropic.'))
|
|
114
|
+
return 'anthropic';
|
|
115
|
+
if (modelId.startsWith('meta.'))
|
|
116
|
+
return 'meta';
|
|
117
|
+
if (modelId.startsWith('mistral.'))
|
|
118
|
+
return 'mistral';
|
|
119
|
+
if (modelId.startsWith('cohere.'))
|
|
120
|
+
return 'cohere';
|
|
121
|
+
if (modelId.startsWith('ai21.'))
|
|
122
|
+
return 'ai21';
|
|
123
|
+
if (modelId.startsWith('amazon.'))
|
|
124
|
+
return 'amazon';
|
|
125
|
+
if (modelId.startsWith('stability.'))
|
|
126
|
+
return 'stability';
|
|
127
|
+
return 'unknown';
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Detect capabilities from model information
|
|
131
|
+
*/
|
|
132
|
+
function detectCapabilities(model) {
|
|
133
|
+
const capabilities = new Set();
|
|
134
|
+
const modelId = model.modelId || '';
|
|
135
|
+
const family = detectModelFamily(modelId);
|
|
136
|
+
// Check for chat capability (text-to-text models)
|
|
137
|
+
if (model.inputModalities?.includes('TEXT') &&
|
|
138
|
+
model.outputModalities?.includes('TEXT')) {
|
|
139
|
+
// Chat models
|
|
140
|
+
if (family === 'anthropic' ||
|
|
141
|
+
family === 'meta' ||
|
|
142
|
+
family === 'mistral' ||
|
|
143
|
+
family === 'cohere' ||
|
|
144
|
+
family === 'ai21' ||
|
|
145
|
+
(family === 'amazon' && modelId.includes('text'))) {
|
|
146
|
+
capabilities.add('chat');
|
|
147
|
+
// Streaming support
|
|
148
|
+
if (model.responseStreamingSupported) {
|
|
149
|
+
capabilities.add('streaming');
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
// Image generation
|
|
154
|
+
if (model.inputModalities?.includes('TEXT') &&
|
|
155
|
+
model.outputModalities?.includes('IMAGE')) {
|
|
156
|
+
capabilities.add('image');
|
|
157
|
+
}
|
|
158
|
+
// Vision (image understanding)
|
|
159
|
+
if (model.inputModalities?.includes('IMAGE') &&
|
|
160
|
+
model.outputModalities?.includes('TEXT')) {
|
|
161
|
+
capabilities.add('vision');
|
|
162
|
+
}
|
|
163
|
+
// Embeddings
|
|
164
|
+
if (family === 'amazon' && modelId.includes('embed')) {
|
|
165
|
+
capabilities.add('embedding');
|
|
166
|
+
}
|
|
167
|
+
if (family === 'cohere' && modelId.includes('embed')) {
|
|
168
|
+
capabilities.add('embedding');
|
|
169
|
+
}
|
|
170
|
+
// Tool calling for supported models
|
|
171
|
+
if (family === 'anthropic' && modelId.includes('claude-3')) {
|
|
172
|
+
capabilities.add('tools');
|
|
173
|
+
}
|
|
174
|
+
return capabilities;
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Convert AWS Bedrock model to ModelInfo format
|
|
178
|
+
*/
|
|
179
|
+
function convertAWSModel(model) {
|
|
180
|
+
const modelId = model.modelId;
|
|
181
|
+
if (!modelId)
|
|
182
|
+
return null;
|
|
183
|
+
const family = detectModelFamily(modelId);
|
|
184
|
+
const capabilities = detectCapabilities(model);
|
|
185
|
+
// Determine tier based on model family and name
|
|
186
|
+
let tier = 'efficient';
|
|
187
|
+
if (family === 'anthropic' && modelId.includes('opus')) {
|
|
188
|
+
tier = 'flagship';
|
|
189
|
+
}
|
|
190
|
+
else if (family === 'anthropic' && modelId.includes('sonnet')) {
|
|
191
|
+
tier = 'efficient';
|
|
192
|
+
}
|
|
193
|
+
else if (family === 'anthropic' && modelId.includes('haiku')) {
|
|
194
|
+
tier = 'efficient';
|
|
195
|
+
}
|
|
196
|
+
else if (family === 'meta' && (modelId.includes('405b') || modelId.includes('90b'))) {
|
|
197
|
+
tier = 'flagship';
|
|
198
|
+
}
|
|
199
|
+
else if (family === 'meta' && (modelId.includes('70b') || modelId.includes('13b'))) {
|
|
200
|
+
tier = 'efficient';
|
|
201
|
+
}
|
|
202
|
+
else if (family === 'meta' && (modelId.includes('8b') || modelId.includes('7b') || modelId.includes('3b') || modelId.includes('1b'))) {
|
|
203
|
+
tier = 'efficient';
|
|
204
|
+
}
|
|
205
|
+
else if (family === 'mistral' && modelId.includes('large')) {
|
|
206
|
+
tier = 'flagship';
|
|
207
|
+
}
|
|
208
|
+
else if (family === 'mistral' && modelId.includes('mixtral')) {
|
|
209
|
+
tier = 'efficient';
|
|
210
|
+
}
|
|
211
|
+
else if (family === 'mistral' && modelId.includes('7b')) {
|
|
212
|
+
tier = 'efficient';
|
|
213
|
+
}
|
|
214
|
+
else if (family === 'cohere' && modelId.includes('plus')) {
|
|
215
|
+
tier = 'flagship';
|
|
216
|
+
}
|
|
217
|
+
else {
|
|
218
|
+
tier = 'efficient';
|
|
219
|
+
}
|
|
220
|
+
// Get pricing information
|
|
221
|
+
const pricing = MODEL_PRICING[modelId];
|
|
222
|
+
const contextInfo = MODEL_CONTEXT_WINDOWS[modelId];
|
|
223
|
+
return {
|
|
224
|
+
provider: 'aws',
|
|
225
|
+
id: modelId,
|
|
226
|
+
name: model.modelName || modelId,
|
|
227
|
+
capabilities,
|
|
228
|
+
tier,
|
|
229
|
+
pricing: pricing ? {
|
|
230
|
+
text: {
|
|
231
|
+
input: pricing.input,
|
|
232
|
+
output: pricing.output,
|
|
233
|
+
},
|
|
234
|
+
} : {},
|
|
235
|
+
contextWindow: contextInfo?.context || 0,
|
|
236
|
+
maxOutputTokens: contextInfo?.maxOutput,
|
|
237
|
+
metadata: {
|
|
238
|
+
modelArn: model.modelArn,
|
|
239
|
+
providerName: model.providerName,
|
|
240
|
+
responseStreamingSupported: model.responseStreamingSupported,
|
|
241
|
+
customizationsSupported: model.customizationsSupported,
|
|
242
|
+
inferenceTypesSupported: model.inferenceTypesSupported,
|
|
243
|
+
inputModalities: model.inputModalities,
|
|
244
|
+
outputModalities: model.outputModalities,
|
|
245
|
+
},
|
|
246
|
+
};
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* Main scraper function
|
|
250
|
+
*/
|
|
251
|
+
export async function scrapeAWS(outputDir, options = {}) {
|
|
252
|
+
const { region = process.env.AWS_REGION || 'us-east-1' } = options;
|
|
253
|
+
console.log('\n=== AWS Bedrock Scraper ===\n');
|
|
254
|
+
console.log(`Using region: ${region}`);
|
|
255
|
+
// Create Bedrock client
|
|
256
|
+
const client = new BedrockClient({
|
|
257
|
+
region,
|
|
258
|
+
// Credentials are automatically picked up from environment
|
|
259
|
+
});
|
|
260
|
+
try {
|
|
261
|
+
// List foundation models
|
|
262
|
+
console.log('Fetching models from AWS Bedrock...');
|
|
263
|
+
const command = new ListFoundationModelsCommand({});
|
|
264
|
+
const response = await client.send(command);
|
|
265
|
+
if (!response.modelSummaries) {
|
|
266
|
+
console.log('✗ No models returned from AWS Bedrock');
|
|
267
|
+
return;
|
|
268
|
+
}
|
|
269
|
+
console.log(`✓ Fetched ${response.modelSummaries.length} AWS Bedrock models`);
|
|
270
|
+
// Create output directory
|
|
271
|
+
await fs.mkdir(outputDir, { recursive: true });
|
|
272
|
+
// Save raw data
|
|
273
|
+
await fs.writeFile(path.join(outputDir, 'aws-models.json'), JSON.stringify({ data: response.modelSummaries }, (key, value) => {
|
|
274
|
+
if (value instanceof Set) {
|
|
275
|
+
return Array.from(value);
|
|
276
|
+
}
|
|
277
|
+
return value;
|
|
278
|
+
}, 2));
|
|
279
|
+
console.log(`✓ Saved raw AWS models to aws-models.json`);
|
|
280
|
+
// Convert to ModelInfo format
|
|
281
|
+
const modelInfos = response.modelSummaries
|
|
282
|
+
.map(convertAWSModel)
|
|
283
|
+
.filter((m) => m !== null);
|
|
284
|
+
// Save JSON for reference
|
|
285
|
+
await fs.writeFile(path.join(outputDir, 'aws-modelinfo.json'), JSON.stringify(modelInfos, (key, value) => {
|
|
286
|
+
if (value instanceof Set) {
|
|
287
|
+
return Array.from(value);
|
|
288
|
+
}
|
|
289
|
+
return value;
|
|
290
|
+
}, 2));
|
|
291
|
+
console.log(`✓ Saved ${modelInfos.length} models to JSON`);
|
|
292
|
+
// Generate TypeScript file
|
|
293
|
+
const srcDir = path.join(__dirname, '../../src/models');
|
|
294
|
+
await writeModelTS(modelInfos, 'awsModels', path.join(srcDir, 'aws.ts'));
|
|
295
|
+
console.log(`✓ Generated TypeScript file: src/models/aws.ts`);
|
|
296
|
+
console.log('\n✓ AWS Bedrock scraping complete\n');
|
|
297
|
+
}
|
|
298
|
+
catch (error) {
|
|
299
|
+
console.error('✗ AWS Bedrock scraping failed:', error);
|
|
300
|
+
throw error;
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
// CLI execution
|
|
304
|
+
if (process.argv[1].endsWith('aws.ts')) {
|
|
305
|
+
const args = process.argv.slice(2);
|
|
306
|
+
const outputDir = args.find((arg) => !arg.startsWith('--')) || path.join(__dirname, '../../data');
|
|
307
|
+
const regionArg = args.find((arg) => arg.startsWith('--region='));
|
|
308
|
+
const region = regionArg ? regionArg.split('=')[1] : undefined;
|
|
309
|
+
scrapeAWS(outputDir, { region }).catch((error) => {
|
|
310
|
+
console.error('✗ AWS Bedrock scraping failed:', error);
|
|
311
|
+
process.exit(1);
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
//# sourceMappingURL=aws.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aws.js","sourceRoot":"","sources":["../../../scripts/scrapers/aws.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EACL,aAAa,EACb,2BAA2B,GAE5B,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,UAAU,GAAG,GAAG,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACtD,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;AAE3C;;;GAGG;AACH,MAAM,aAAa,GAAsD;IACvE,8BAA8B;IAC9B,2CAA2C,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE;IACrE,2CAA2C,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE;IAErE,0BAA0B;IAC1B,uCAAuC,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;IAElE,4BAA4B;IAC5B,yCAAyC,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE;IAEnE,2BAA2B;IAC3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,EAAE,YAAY,CAAC,CAAC;IAClG,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC;IAClE,MAAM,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAE/D,SAAS,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;QAC/C,OAAO,CAAC,KAAK,CAAC,gCAAgC,EAAE,KAAK,CAAC,CAAC;QACvD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAI Model Scraper
|
|
3
|
+
*
|
|
4
|
+
* Scrapes model information from OpenAI documentation using Puppeteer
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Main scraper function
|
|
8
|
+
*/
|
|
9
|
+
export declare function scrapeOpenAI(outputDir: string, options?: {
|
|
10
|
+
concurrency?: number;
|
|
11
|
+
}): Promise<void>;
|
|
12
|
+
//# sourceMappingURL=openai.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openai.d.ts","sourceRoot":"","sources":["../../../scripts/scrapers/openai.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAgiBH;;GAEG;AACH,wBAAsB,YAAY,CAChC,SAAS,EAAE,MAAM,EACjB,OAAO,GAAE;IAAE,WAAW,CAAC,EAAE,MAAM,CAAA;CAAO,GACrC,OAAO,CAAC,IAAI,CAAC,CAgDf"}
|