Skip to content

@chinmaymk/aikit v0.0.40


@chinmaymk/aikit / createAnthropic

Function: createAnthropic()

createAnthropic(options): AnthropicProvider

Defined in: factory.ts:79

Creates an Anthropic provider.

Parameters

options

WithApiKey<AnthropicOptions>

Configuration options with required API key

Returns

AnthropicProvider

Anthropic streaming generation provider function

Example

typescript
const anthropic = createAnthropic({
  apiKey: 'sk-ant-...',
  model: 'claude-3-5-sonnet-20241022',
  topK: 40
});

Released under the MIT License.