@aeye/openrouter 0.3.0 → 0.3.2
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/README.md +3 -3
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -289,7 +289,7 @@ const models = await source.fetchModels();
|
|
|
289
289
|
|
|
290
290
|
models.forEach(model => {
|
|
291
291
|
console.log(`${model.id}`);
|
|
292
|
-
console.log(` Pricing: $${model.pricing.
|
|
292
|
+
console.log(` Pricing: $${model.pricing.text.input}/1M input tokens`);
|
|
293
293
|
console.log(` Context: ${model.contextWindow} tokens`);
|
|
294
294
|
console.log(` ZDR: ${model.capabilities.has('zdr')}`);
|
|
295
295
|
});
|
|
@@ -356,8 +356,8 @@ const response = await ai.chat.get(messages, {
|
|
|
356
356
|
});
|
|
357
357
|
|
|
358
358
|
// Cost is automatically included
|
|
359
|
-
console.log('Input tokens:', response.usage.
|
|
360
|
-
console.log('Output tokens:', response.usage.
|
|
359
|
+
console.log('Input tokens:', response.usage.text.input);
|
|
360
|
+
console.log('Output tokens:', response.usage.text.output);
|
|
361
361
|
console.log('Cost: $', response.usage.cost); // Actual USD cost
|
|
362
362
|
|
|
363
363
|
// Cost calculation is skipped when provider returns cost
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeye/openrouter",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "@aeye OpenRouter - OpenRouter integration for @aeye",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"LICENSE"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@aeye/ai": "^0.3.
|
|
37
|
-
"@aeye/core": "^0.3.
|
|
38
|
-
"@aeye/openai": "^0.3.
|
|
36
|
+
"@aeye/ai": "^0.3.2",
|
|
37
|
+
"@aeye/core": "^0.3.2",
|
|
38
|
+
"@aeye/openai": "^0.3.2",
|
|
39
39
|
"openai": "^6.6.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|