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

Function openRouterText

packages/ai-openrouter/src/adapters/text.ts:1439–1445  ·  view source on GitHub ↗
(
  model: TModel,
  config?: Omit<SDKOptions, 'apiKey'>,
)

Source from the content-addressed store, hash-verified

1437}
1438
1439export function openRouterText<TModel extends OpenRouterTextModels>(
1440 model: TModel,
1441 config?: Omit<SDKOptions, 'apiKey'>,
1442): OpenRouterTextAdapter<TModel, ResolveToolCapabilities<TModel>> {
1443 const apiKey = getOpenRouterApiKeyFromEnv()
1444 return createOpenRouterText(model, apiKey, config)
1445}

Callers 8

runFunction · 0.90
runFunction · 0.90
api.tanchat.tsFile · 0.90
adapterForFunction · 0.90
resolveTextAdapterFunction · 0.90
api.chat.tsFile · 0.90
api.structured.tsFile · 0.90

Calls 2

createOpenRouterTextFunction · 0.85

Tested by

no test coverage detected