@acedatacloud/sdk 2026.1004.0 → 2026.1005.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.
Files changed (2) hide show
  1. package/README.md +25 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -55,6 +55,31 @@ for await (const chunk of stream) {
55
55
  | `client.files` | File uploads |
56
56
  | `client.platform` | Applications, credentials, models management |
57
57
 
58
+ ## Native Claude Messages
59
+
60
+ Thinking and output configuration are passed through without SDK model-specific
61
+ enum or combination checks. The selected model determines which values it accepts.
62
+ For the beta `display: 'updates'` mode, set the required header on a dedicated
63
+ client (client headers apply to every request):
64
+
65
+ ```typescript
66
+ const claude = new AceDataCloud({
67
+ apiToken: 'your-token',
68
+ headers: { 'anthropic-beta': 'thinking-display-updates-2026-08-18' },
69
+ });
70
+
71
+ const response = await claude.chat.messages.create({
72
+ model: 'claude-sonnet-5-5',
73
+ messages: [{ role: 'user', content: 'Explain this code.' }],
74
+ thinking: { type: 'adaptive', display: 'updates' },
75
+ output_config: { effort: 'high' },
76
+ });
77
+ ```
78
+
79
+ Streaming and `claude.chat.messages.countTokens(...)` also preserve thinking
80
+ configuration. Parameter pass-through does not guarantee model support; API errors
81
+ are returned through the SDK's normal error handling.
82
+
58
83
  ## Image Generation (with Task Polling)
59
84
 
60
85
  ```typescript
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acedatacloud/sdk",
3
- "version": "2026.1004.0",
3
+ "version": "2026.1005.0",
4
4
  "description": "Official TypeScript SDK for AceDataCloud — AI-powered data services",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",