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

Function getOpenRouterApiKeyFromEnv

packages/ai-openrouter/src/utils/client.ts:10–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8}
9
10export function getOpenRouterApiKeyFromEnv(): string {
11 return getApiKeyFromEnv('OPENROUTER_API_KEY')
12}
13
14export function generateId(prefix: string): string {
15 return _generateId(prefix)

Callers 4

openRouterTextFunction · 0.90
openRouterSummarizeFunction · 0.90
openRouterImageFunction · 0.90
openRouterResponsesTextFunction · 0.90

Calls 1

getApiKeyFromEnvFunction · 0.90

Tested by

no test coverage detected