@aeye/openai 0.3.0 → 0.3.1
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 +2 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -515,7 +515,7 @@ embeddingResponse.embeddings.forEach((item, i) => {
|
|
|
515
515
|
console.log(`Embedding ${i}:`, item.embedding.length, 'dimensions');
|
|
516
516
|
});
|
|
517
517
|
|
|
518
|
-
console.log('Tokens used:', embeddingResponse.usage?.
|
|
518
|
+
console.log('Tokens used:', embeddingResponse.usage?.text?.input);
|
|
519
519
|
```
|
|
520
520
|
|
|
521
521
|
#### Custom Dimensions (for smaller embeddings)
|
|
@@ -622,7 +622,7 @@ const models = await provider.listModels();
|
|
|
622
622
|
models.forEach(model => {
|
|
623
623
|
console.log(`${model.id}: ${model.capabilities}`);
|
|
624
624
|
console.log(` Context window: ${model.contextWindow}`);
|
|
625
|
-
console.log(` Pricing: $${model.pricing.
|
|
625
|
+
console.log(` Pricing: $${model.pricing.text.input}/1M input tokens`);
|
|
626
626
|
});
|
|
627
627
|
```
|
|
628
628
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeye/openai",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "@aeye OpenAI - OpenAI integration for @aeye",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"LICENSE"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@aeye/ai": "^0.3.
|
|
37
|
-
"@aeye/core": "^0.3.
|
|
36
|
+
"@aeye/ai": "^0.3.1",
|
|
37
|
+
"@aeye/core": "^0.3.1",
|
|
38
38
|
"openai": "^6.6.0",
|
|
39
39
|
"zod": "^4.1.12"
|
|
40
40
|
},
|