@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.
@@ -1,7 +1,7 @@
1
- import { a as AnthropicResponse } from './openai-DTKQS8kL.cjs';
2
- export { A as AnthropicContentBlock, b as AnthropicUsage, O as OpenAIAdapter, d as anthropicResponseTextContent, e as anthropicResponseThinkingContent, f as anthropicResponseToolUseBlocks } from './openai-DTKQS8kL.cjs';
3
- import { M as ManagedModel, Q as QuotaSummary, K as WindowResetSummary, m as ModelCapabilities, e as ChatRequest, P as ProviderAdapter, f as ChatResponse, I as ImageGenerationRequest, k as ImageGenerationResponse, V as VideoGenerationRequest, F as VideoTaskResponse, i as EmbeddingRequest, j as EmbeddingResponse, q as RerankRequest, r as RerankResponse, v as StreamEvent, u as SourcesEvent, w as StreamSettlement, l as InputModality } from './index-BI-Y3iOO.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, n as MultimodalContent, O as OutputConfig, o as ProviderFormat, R as RerankDocument, p as RerankQuery, s as RerankResult, S as ServerTool, t as ServerToolTypeWebSearch, T as ThinkingConfig, x as ThinkingHigh, y as ThinkingHighMinMaxTokens, z as ThinkingMax, A as ThinkingMaxFallbackMaxTokens, D as ThinkingOff, W as WebSearchConfig, H as WebSearchSource, J as WindowLimitStatus, L as bucketInfoIsCommercial, N as bucketRowIsCommercial, U as getAdapter, X as getAdapterForModel, Y as newThinkingConfig, Z as newWebSearchTool, _ as parseSettlement, $ as parseSourcesEvent } from './index-BI-Y3iOO.cjs';
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';
@@ -1,7 +1,7 @@
1
- import { a as AnthropicResponse } from './openai-CcGS1DkW.js';
2
- export { A as AnthropicContentBlock, b as AnthropicUsage, O as OpenAIAdapter, d as anthropicResponseTextContent, e as anthropicResponseThinkingContent, f as anthropicResponseToolUseBlocks } from './openai-CcGS1DkW.js';
3
- import { M as ManagedModel, Q as QuotaSummary, K as WindowResetSummary, m as ModelCapabilities, e as ChatRequest, P as ProviderAdapter, f as ChatResponse, I as ImageGenerationRequest, k as ImageGenerationResponse, V as VideoGenerationRequest, F as VideoTaskResponse, i as EmbeddingRequest, j as EmbeddingResponse, q as RerankRequest, r as RerankResponse, v as StreamEvent, u as SourcesEvent, w as StreamSettlement, l as InputModality } from './index-BI-Y3iOO.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, n as MultimodalContent, O as OutputConfig, o as ProviderFormat, R as RerankDocument, p as RerankQuery, s as RerankResult, S as ServerTool, t as ServerToolTypeWebSearch, T as ThinkingConfig, x as ThinkingHigh, y as ThinkingHighMinMaxTokens, z as ThinkingMax, A as ThinkingMaxFallbackMaxTokens, D as ThinkingOff, W as WebSearchConfig, H as WebSearchSource, J as WindowLimitStatus, L as bucketInfoIsCommercial, N as bucketRowIsCommercial, U as getAdapter, X as getAdapterForModel, Y as newThinkingConfig, Z as newWebSearchTool, _ as parseSettlement, $ as parseSourcesEvent } from './index-BI-Y3iOO.js';
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';
@@ -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;