MCPcopy Index your code
hub / github.com/Effect-TS/effect / layerWithTokenizer

Function layerWithTokenizer

packages/ai/anthropic/src/AnthropicLanguageModel.ts:406–410  ·  view source on GitHub ↗
(options: {
  readonly model: (string & {}) | Model
  readonly config?: Omit<Config.Service, "model">
})

Source from the content-addressed store, hash-verified

404 * @category Layers
405 */
406export const layerWithTokenizer = (options: {
407 readonly model: (string & {}) | Model
408 readonly config?: Omit<Config.Service, "model">
409}): Layer.Layer<LanguageModel.LanguageModel | Tokenizer.Tokenizer, never, AnthropicClient> =>
410 Layer.merge(layer(options), AnthropicTokenizer.layer)
411
412/**
413 * @since 1.0.0

Callers 1

modelWithTokenizerFunction · 0.70

Calls 2

mergeMethod · 0.80
layerFunction · 0.70

Tested by

no test coverage detected