MCPcopy Create free account
hub / github.com/TanStack/ai / image-adapter.test.ts

File image-adapter.test.ts

packages/ai-gemini/tests/image-adapter.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { describe, it, expect, vi } from 'vitest'
2import { generateImage } from '@tanstack/ai'
3import { resolveDebugOption } from '@tanstack/ai/adapter-internals'
4import { GeminiImageAdapter, createGeminiImage } from '../src/adapters/image'

Callers

nothing calls this directly

Calls 10

createGeminiImageFunction · 0.90
sizeToAspectRatioFunction · 0.90
validateImageSizeFunction · 0.90
validateNumberOfImagesFunction · 0.90
validatePromptFunction · 0.90
parseNativeImageSizeFunction · 0.90
generateImageFunction · 0.90
resolveDebugOptionFunction · 0.85
mockedNativeAdapterFunction · 0.85
generateImagesMethod · 0.45

Tested by

no test coverage detected