MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / createProvider

Function createProvider

packages/kosong/test/google-genai.test.ts:36–45  ·  view source on GitHub ↗
(
  options?: Partial<{ model: string; vertexai: boolean; stream: boolean }>,
)

Source from the content-addressed store, hash-verified

34}
35
36function createProvider(
37 options?: Partial<{ model: string; vertexai: boolean; stream: boolean }>,
38): GoogleGenAIChatProvider {
39 return new GoogleGenAIChatProvider({
40 model: options?.model ?? 'gemini-2.5-flash',
41 apiKey: 'test-key',
42 vertexai: options?.vertexai,
43 stream: options?.stream,
44 });
45}
46
47/** Capture the request body by mocking the client's generateContentStream. */
48async function captureRequestBody(

Callers 2

captureThinkingConfigFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected