MCPcopy Create free account
hub / github.com/Effect-TS/effect / model

Function model

packages/ai/openrouter/src/OpenRouterLanguageModel.ts:239–243  ·  view source on GitHub ↗
(
  model: string,
  config?: Omit<Config.Service, "model">
)

Source from the content-addressed store, hash-verified

237 * @category Ai Models
238 */
239export const model = (
240 model: string,
241 config?: Omit<Config.Service, "model">
242): AiModel.Model<"openrouter", LanguageModel.LanguageModel, OpenRouterClient> =>
243 AiModel.make("openrouter", layer({ model, config }))
244
245/**
246 * @since 1.0.0

Callers

nothing calls this directly

Calls 2

layerFunction · 0.70
makeMethod · 0.65

Tested by

no test coverage detected