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

Function createAdapter

packages/ai-openai/tests/usage-extraction.test.ts:6–7  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4import type { StreamChunk } from '@tanstack/ai'
5
6const createAdapter = () =>
7 new OpenAITextAdapter({ apiKey: 'test-key' }, 'gpt-4o-mini')
8
9function createMockResponsesStream(
10 chunks: Array<Record<string, unknown>>,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected