@acedatacloud/sdk 2026.1005.0 → 2026.1005.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 +13 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -80,6 +80,19 @@ Streaming and `claude.chat.messages.countTokens(...)` also preserve thinking
|
|
|
80
80
|
configuration. Parameter pass-through does not guarantee model support; API errors
|
|
81
81
|
are returned through the SDK's normal error handling.
|
|
82
82
|
|
|
83
|
+
## OpenAI Embeddings
|
|
84
|
+
|
|
85
|
+
```typescript
|
|
86
|
+
const embeddings = await client.openai.embeddings.create({
|
|
87
|
+
model: 'text-embedding-3-small',
|
|
88
|
+
input: 'The food was delicious and the waiter...',
|
|
89
|
+
});
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Supported models are `text-embedding-3-small` and `text-embedding-3-large`.
|
|
93
|
+
`text-embedding-ada-002` is no longer available. When migrating an existing index,
|
|
94
|
+
regenerate its vectors and rebuild the index; do not mix old and new model vectors.
|
|
95
|
+
|
|
83
96
|
## Image Generation (with Task Polling)
|
|
84
97
|
|
|
85
98
|
```typescript
|