@acedatacloud/sdk 2026.1005.0 → 2026.1005.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.
Files changed (2) hide show
  1. package/README.md +18 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -71,6 +71,7 @@ const claude = new AceDataCloud({
71
71
  const response = await claude.chat.messages.create({
72
72
  model: 'claude-sonnet-5-5',
73
73
  messages: [{ role: 'user', content: 'Explain this code.' }],
74
+ metadata: { user_id: 'example-user-001' },
74
75
  thinking: { type: 'adaptive', display: 'updates' },
75
76
  output_config: { effort: 'high' },
76
77
  });
@@ -80,6 +81,23 @@ Streaming and `claude.chat.messages.countTokens(...)` also preserve thinking
80
81
  configuration. Parameter pass-through does not guarantee model support; API errors
81
82
  are returned through the SDK's normal error handling.
82
83
 
84
+ Optional `metadata.user_id` is passed as request metadata, not conversation content.
85
+ Use a stable identifier without personal information; it does not replace Bearer
86
+ authentication or require the thinking beta header.
87
+
88
+ ## OpenAI Embeddings
89
+
90
+ ```typescript
91
+ const embeddings = await client.openai.embeddings.create({
92
+ model: 'text-embedding-3-small',
93
+ input: 'The food was delicious and the waiter...',
94
+ });
95
+ ```
96
+
97
+ Supported models are `text-embedding-3-small` and `text-embedding-3-large`.
98
+ `text-embedding-ada-002` is no longer available. When migrating an existing index,
99
+ regenerate its vectors and rebuild the index; do not mix old and new model vectors.
100
+
83
101
  ## Image Generation (with Task Polling)
84
102
 
85
103
  ```typescript
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acedatacloud/sdk",
3
- "version": "2026.1005.0",
3
+ "version": "2026.1005.1",
4
4
  "description": "Official TypeScript SDK for AceDataCloud — AI-powered data services",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",