dyadic 1.7.0 → 1.7.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/CHANGELOG.md +5 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.7.1 (2026-10-17)
|
|
4
|
+
|
|
5
|
+
- Corrected: `anthropic.messages.batches.create` described message batches as running at half price. Dyadic runs them in the
|
|
6
|
+
background at the usual price; nothing about the calls changed.
|
|
7
|
+
|
|
3
8
|
## 1.7.0 (2026-10-17)
|
|
4
9
|
|
|
5
10
|
The Anthropic API and OpenRouter's.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "1.7.
|
|
1
|
+
export declare const VERSION = "1.7.1";
|
|
2
2
|
export declare const DEFAULT_BASE_URL = "https://dyadic.app/api/openai/v1";
|
|
3
3
|
/** The Anthropic API version the `anthropic` calls speak (sent as anthropic-version, as Anthropic's SDKs do). */
|
|
4
4
|
export declare const ANTHROPIC_VERSION = "2023-06-01";
|
|
@@ -1416,7 +1416,7 @@ export declare class Dyadic {
|
|
|
1416
1416
|
countTokens: (params: Omit<AnthropicMessageParams, "max_tokens" | "stream">) => Promise<{
|
|
1417
1417
|
input_tokens: number;
|
|
1418
1418
|
}>;
|
|
1419
|
-
/** Up to 100,000 requests at
|
|
1419
|
+
/** Up to 100,000 requests, run in the background at the usual price; poll `retrieve` until processing_status is "ended", then read `results`. */
|
|
1420
1420
|
batches: {
|
|
1421
1421
|
create: (params: {
|
|
1422
1422
|
requests: {
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// The official TypeScript SDK for the Dyadic API: Iris
|
|
2
2
|
// through the OpenAI-compatible endpoints at https://dyadic.app/api/openai/v1, and beside them the Anthropic API
|
|
3
3
|
// (/api/anthropic/v1) and OpenRouter's API through the AI gateway (/api/openrouter/v1).
|
|
4
|
-
export const VERSION = "1.7.
|
|
4
|
+
export const VERSION = "1.7.1";
|
|
5
5
|
export const DEFAULT_BASE_URL = "https://dyadic.app/api/openai/v1";
|
|
6
6
|
/** The Anthropic API version the `anthropic` calls speak (sent as anthropic-version, as Anthropic's SDKs do). */
|
|
7
7
|
export const ANTHROPIC_VERSION = "2023-06-01";
|
|
@@ -480,7 +480,7 @@ export class Dyadic {
|
|
|
480
480
|
create: ((params) => this.anthropicCall("POST", "/messages", params, Boolean(params.stream))),
|
|
481
481
|
/** A request's input tokens (free; no model runs). */
|
|
482
482
|
countTokens: (params) => this.anthropicCall("POST", "/messages/count_tokens", params, false, { idempotent: true }),
|
|
483
|
-
/** Up to 100,000 requests at
|
|
483
|
+
/** Up to 100,000 requests, run in the background at the usual price; poll `retrieve` until processing_status is "ended", then read `results`. */
|
|
484
484
|
batches: {
|
|
485
485
|
create: (params) => this.anthropicCall("POST", "/messages/batches", params),
|
|
486
486
|
list: (query = {}) => this.anthropicCall("GET", "/messages/batches", undefined, false, { query }),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dyadic",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.1",
|
|
4
4
|
"description": "The official TypeScript and JavaScript SDK for the Dyadic API: runs with your own agents and functions, plus the OpenAI-, Anthropic- and OpenRouter-compatible APIs.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|