Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TanStack/ai
/ createAdapter
Function
createAdapter
packages/ai-openrouter/tests/image-adapter.test.ts:21–22 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
19
})
20
21
const
createAdapter = () =>
22
createOpenRouterImage(
'google/gemini-2.5-flash-image'
,
'test-key'
)
23
24
function
createMockImageResponse(images: Array<{ url: string }>) {
25
return
{
Callers
1
image-adapter.test.ts
File · 0.70
Calls
1
createOpenRouterImage
Function · 0.90
Tested by
no test coverage detected