MCPcopy Create free account
hub / github.com/TanStack/ai / openRouterSummarize

Function openRouterSummarize

packages/ai-openrouter/src/adapters/summarize.ts:74–82  ·  view source on GitHub ↗
(
  model: TModel,
  config?: Omit<SDKOptions, 'apiKey'>,
)

Source from the content-addressed store, hash-verified

72 * ```
73 */
74export function openRouterSummarize<TModel extends OpenRouterTextModels>(
75 model: TModel,
76 config?: Omit<SDKOptions, 'apiKey'>,
77): ChatStreamSummarizeAdapter<
78 TModel,
79 InferTextProviderOptions<OpenRouterTextAdapter<TModel>>
80> {
81 return createOpenRouterSummarize(model, getOpenRouterApiKeyFromEnv(), config)
82}

Callers 1

api.summarize.tsFile · 0.90

Calls 2

Tested by

no test coverage detected