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

Function geminiSummarize

packages/ai-gemini/src/adapters/summarize.ts:51–59  ·  view source on GitHub ↗
(
  model: TModel,
  config?: Omit<GeminiSummarizeConfig, 'apiKey'>,
)

Source from the content-addressed store, hash-verified

49 * ```
50 */
51export function geminiSummarize<TModel extends GeminiSummarizeModel>(
52 model: TModel,
53 config?: Omit<GeminiSummarizeConfig, 'apiKey'>,
54): ChatStreamSummarizeAdapter<
55 TModel,
56 InferTextProviderOptions<GeminiTextAdapter<TModel>>
57> {
58 return createGeminiSummarize(getGeminiApiKeyFromEnv(), model, config)
59}

Callers 1

api.summarize.tsFile · 0.90

Calls 2

getGeminiApiKeyFromEnvFunction · 0.90
createGeminiSummarizeFunction · 0.85

Tested by

no test coverage detected