cencori 1.8.1 → 1.8.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/dist/ai/index.d.mts +1 -1
- package/dist/ai/index.d.ts +1 -1
- package/dist/ai/index.js +6 -2
- package/dist/ai/index.js.map +1 -1
- package/dist/ai/index.mjs +6 -2
- package/dist/ai/index.mjs.map +1 -1
- package/dist/compute/index.d.mts +1 -1
- package/dist/compute/index.d.ts +1 -1
- package/dist/documents/index.d.mts +1 -1
- package/dist/documents/index.d.ts +1 -1
- package/dist/index.d.mts +12 -2
- package/dist/index.d.ts +12 -2
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -2
- package/dist/index.mjs.map +1 -1
- package/dist/memory/index.d.mts +1 -1
- package/dist/memory/index.d.ts +1 -1
- package/dist/storage/index.d.mts +1 -1
- package/dist/storage/index.d.ts +1 -1
- package/dist/telemetry/index.d.mts +1 -1
- package/dist/telemetry/index.d.ts +1 -1
- package/dist/{types-DbHh0iAg.d.mts → types-CAhDuNTz.d.mts} +4 -0
- package/dist/{types-DbHh0iAg.d.ts → types-CAhDuNTz.d.ts} +4 -0
- package/dist/vision/index.d.mts +1 -1
- package/dist/vision/index.d.ts +1 -1
- package/dist/voice/index.d.mts +1 -1
- package/dist/voice/index.d.ts +1 -1
- package/dist/web/index.d.mts +1 -1
- package/dist/web/index.d.ts +1 -1
- package/dist/workflow/index.d.mts +1 -1
- package/dist/workflow/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CencoriConfig, i as RequestOptions } from './types-
|
|
2
|
-
export { j as ChatMessage, a as ChatRequest, b as ChatResponse, o as CodeInterpreterTool, c as CompletionRequest, E as EmbeddingRequest, d as EmbeddingResponse, F as FileSearchTool, l as ResponseInputItem, k as ResponsesOutputItem, R as ResponsesRequest, g as ResponsesResponse, m as ResponsesTool, U as UrlCitation, n as WebSearchTool } from './types-
|
|
1
|
+
import { C as CencoriConfig, i as RequestOptions } from './types-CAhDuNTz.js';
|
|
2
|
+
export { j as ChatMessage, a as ChatRequest, b as ChatResponse, o as CodeInterpreterTool, c as CompletionRequest, E as EmbeddingRequest, d as EmbeddingResponse, F as FileSearchTool, l as ResponseInputItem, k as ResponsesOutputItem, R as ResponsesRequest, g as ResponsesResponse, m as ResponsesTool, U as UrlCitation, n as WebSearchTool } from './types-CAhDuNTz.js';
|
|
3
3
|
import { AINamespace } from './ai/index.js';
|
|
4
4
|
export { StreamChunk } from './ai/index.js';
|
|
5
5
|
import { VisionNamespace } from './vision/index.js';
|
|
@@ -256,6 +256,16 @@ interface ChatCompletionCreateParams {
|
|
|
256
256
|
name: string;
|
|
257
257
|
variables?: Record<string, string>;
|
|
258
258
|
};
|
|
259
|
+
/**
|
|
260
|
+
* Per-request provider timeout in milliseconds (positive, capped
|
|
261
|
+
* server-side at 300000). Bounds one provider attempt.
|
|
262
|
+
*/
|
|
263
|
+
timeout_ms?: number;
|
|
264
|
+
/**
|
|
265
|
+
* Per-request cost budget in USD (non-negative). Unary calls fail before
|
|
266
|
+
* returning; streams surface HTTP 402 `budget_exceeded` at final tally.
|
|
267
|
+
*/
|
|
268
|
+
max_cost_usd?: number;
|
|
259
269
|
}
|
|
260
270
|
interface ChatCompletionResponse {
|
|
261
271
|
id: string;
|
package/dist/index.js
CHANGED
|
@@ -597,7 +597,9 @@ var AINamespace = class {
|
|
|
597
597
|
response_format: request2.response_format,
|
|
598
598
|
include: request2.include,
|
|
599
599
|
stream: false,
|
|
600
|
-
user: request2.user
|
|
600
|
+
user: request2.user,
|
|
601
|
+
timeout_ms: request2.timeout_ms,
|
|
602
|
+
max_cost_usd: request2.max_cost_usd
|
|
601
603
|
})
|
|
602
604
|
});
|
|
603
605
|
if (!response.ok) {
|
|
@@ -645,7 +647,9 @@ var AINamespace = class {
|
|
|
645
647
|
response_format: request2.response_format,
|
|
646
648
|
include: request2.include,
|
|
647
649
|
stream: true,
|
|
648
|
-
user: request2.user
|
|
650
|
+
user: request2.user,
|
|
651
|
+
timeout_ms: request2.timeout_ms,
|
|
652
|
+
max_cost_usd: request2.max_cost_usd
|
|
649
653
|
})
|
|
650
654
|
});
|
|
651
655
|
if (!response.ok) {
|