@acosmi/sdk-ts 2.13.0 → 2.14.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.
- package/CHANGELOG.md +52 -0
- package/dist/browser/index.mjs +1 -3
- package/dist/browser/index.mjs.map +1 -1
- package/dist/index.mjs +1 -3
- package/dist/index.mjs.map +1 -1
- package/dist/node/adapters/anthropic.cjs.map +1 -1
- package/dist/node/adapters/anthropic.d.cts +1 -1
- package/dist/node/adapters/anthropic.d.ts +1 -1
- package/dist/node/adapters/anthropic.mjs.map +1 -1
- package/dist/node/adapters/openai.cjs.map +1 -1
- package/dist/node/adapters/openai.d.cts +2 -2
- package/dist/node/adapters/openai.d.ts +2 -2
- package/dist/node/adapters/openai.mjs.map +1 -1
- package/dist/node/{index-BI-Y3iOO.d.cts → index-BoxWrEq0.d.cts} +26 -5
- package/dist/node/{index-BI-Y3iOO.d.ts → index-BoxWrEq0.d.ts} +26 -5
- package/dist/node/index.cjs +1 -3
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.d.cts +4 -4
- package/dist/node/index.d.ts +4 -4
- package/dist/node/index.mjs +1 -3
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/{openai-DTKQS8kL.d.cts → openai-BRreM1fK.d.cts} +1 -1
- package/dist/node/{openai-CcGS1DkW.d.ts → openai-Dpz9QgEJ.d.ts} +1 -1
- package/docs//345/274/200/345/217/221/344/270/216/345/217/221/345/270/203/346/211/213/345/206/214.md +40 -0
- package/package.json +1 -1
package/dist/node/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as AnthropicResponse } from './openai-
|
|
2
|
-
export { A as AnthropicContentBlock, b as AnthropicUsage, O as OpenAIAdapter, d as anthropicResponseTextContent, e as anthropicResponseThinkingContent, f as anthropicResponseToolUseBlocks } from './openai-
|
|
3
|
-
import { M as ManagedModel, Q as QuotaSummary,
|
|
4
|
-
export { B as BucketClassCommercial, a as BucketClassGeneric, b as BucketInfo, c as BucketRow, C as ChatContentBlock, d as ChatMessage, g as ChatUsage, E as EffortConfig, h as EmbeddingData, G as GeoLoc,
|
|
1
|
+
import { a as AnthropicResponse } from './openai-BRreM1fK.cjs';
|
|
2
|
+
export { A as AnthropicContentBlock, b as AnthropicUsage, O as OpenAIAdapter, d as anthropicResponseTextContent, e as anthropicResponseThinkingContent, f as anthropicResponseToolUseBlocks } from './openai-BRreM1fK.cjs';
|
|
3
|
+
import { M as ManagedModel, Q as QuotaSummary, L as WindowResetSummary, n as ModelCapabilities, e as ChatRequest, P as ProviderAdapter, f as ChatResponse, I as ImageGenerationRequest, k as ImageGenerationResponse, V as VideoGenerationRequest, H as VideoTaskResponse, i as EmbeddingRequest, j as EmbeddingResponse, r as RerankRequest, s as RerankResponse, w as StreamEvent, v as SourcesEvent, x as StreamSettlement, l as InputModality } from './index-BoxWrEq0.cjs';
|
|
4
|
+
export { B as BucketClassCommercial, a as BucketClassGeneric, b as BucketInfo, c as BucketRow, C as ChatContentBlock, d as ChatMessage, g as ChatUsage, E as EffortConfig, h as EmbeddingData, G as GeoLoc, m as InputModalityTag, o as MultimodalContent, O as OutputConfig, p as ProviderFormat, R as RerankDocument, q as RerankQuery, t as RerankResult, S as ServerTool, u as ServerToolTypeWebSearch, T as ThinkingConfig, y as ThinkingHigh, z as ThinkingHighMinMaxTokens, A as ThinkingMax, D as ThinkingMaxFallbackMaxTokens, F as ThinkingOff, W as WebSearchConfig, J as WebSearchSource, K as WindowLimitStatus, N as bucketInfoIsCommercial, U as bucketRowIsCommercial, X as getAdapter, Y as getAdapterForModel, Z as newThinkingConfig, _ as newWebSearchTool, $ as parseSettlement, a0 as parseSourcesEvent } from './index-BoxWrEq0.cjs';
|
|
5
5
|
import { M as MinimalSanitizeConfig } from './index-Bah9A83R.cjs';
|
|
6
6
|
export { A as sanitize } from './index-Bah9A83R.cjs';
|
|
7
7
|
export { AnthropicAdapter } from './adapters/anthropic.cjs';
|
package/dist/node/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as AnthropicResponse } from './openai-
|
|
2
|
-
export { A as AnthropicContentBlock, b as AnthropicUsage, O as OpenAIAdapter, d as anthropicResponseTextContent, e as anthropicResponseThinkingContent, f as anthropicResponseToolUseBlocks } from './openai-
|
|
3
|
-
import { M as ManagedModel, Q as QuotaSummary,
|
|
4
|
-
export { B as BucketClassCommercial, a as BucketClassGeneric, b as BucketInfo, c as BucketRow, C as ChatContentBlock, d as ChatMessage, g as ChatUsage, E as EffortConfig, h as EmbeddingData, G as GeoLoc,
|
|
1
|
+
import { a as AnthropicResponse } from './openai-Dpz9QgEJ.js';
|
|
2
|
+
export { A as AnthropicContentBlock, b as AnthropicUsage, O as OpenAIAdapter, d as anthropicResponseTextContent, e as anthropicResponseThinkingContent, f as anthropicResponseToolUseBlocks } from './openai-Dpz9QgEJ.js';
|
|
3
|
+
import { M as ManagedModel, Q as QuotaSummary, L as WindowResetSummary, n as ModelCapabilities, e as ChatRequest, P as ProviderAdapter, f as ChatResponse, I as ImageGenerationRequest, k as ImageGenerationResponse, V as VideoGenerationRequest, H as VideoTaskResponse, i as EmbeddingRequest, j as EmbeddingResponse, r as RerankRequest, s as RerankResponse, w as StreamEvent, v as SourcesEvent, x as StreamSettlement, l as InputModality } from './index-BoxWrEq0.js';
|
|
4
|
+
export { B as BucketClassCommercial, a as BucketClassGeneric, b as BucketInfo, c as BucketRow, C as ChatContentBlock, d as ChatMessage, g as ChatUsage, E as EffortConfig, h as EmbeddingData, G as GeoLoc, m as InputModalityTag, o as MultimodalContent, O as OutputConfig, p as ProviderFormat, R as RerankDocument, q as RerankQuery, t as RerankResult, S as ServerTool, u as ServerToolTypeWebSearch, T as ThinkingConfig, y as ThinkingHigh, z as ThinkingHighMinMaxTokens, A as ThinkingMax, D as ThinkingMaxFallbackMaxTokens, F as ThinkingOff, W as WebSearchConfig, J as WebSearchSource, K as WindowLimitStatus, N as bucketInfoIsCommercial, U as bucketRowIsCommercial, X as getAdapter, Y as getAdapterForModel, Z as newThinkingConfig, _ as newWebSearchTool, $ as parseSettlement, a0 as parseSourcesEvent } from './index-BoxWrEq0.js';
|
|
5
5
|
import { M as MinimalSanitizeConfig } from './index-Bah9A83R.js';
|
|
6
6
|
export { A as sanitize } from './index-Bah9A83R.js';
|
|
7
7
|
export { AnthropicAdapter } from './adapters/anthropic.js';
|
package/dist/node/index.mjs
CHANGED
|
@@ -3608,9 +3608,7 @@ function normalizeInputModalities(models) {
|
|
|
3608
3608
|
if (Array.isArray(m.inputModalities)) continue;
|
|
3609
3609
|
const snake = m.input_modalities;
|
|
3610
3610
|
if (Array.isArray(snake)) {
|
|
3611
|
-
m.inputModalities = snake.filter(
|
|
3612
|
-
(v) => v === "text" || v === "image"
|
|
3613
|
-
);
|
|
3611
|
+
m.inputModalities = snake.filter((v) => typeof v === "string");
|
|
3614
3612
|
}
|
|
3615
3613
|
}
|
|
3616
3614
|
return models;
|