@chinmaymk/aikit / createAnthropic
Function: createAnthropic()
createAnthropic(
options
):AnthropicProvider
Defined in: factory.ts:79
Creates an Anthropic provider.
Parameters
options
Configuration options with required API key
Returns
Anthropic streaming generation provider function
Example
typescript
const anthropic = createAnthropic({
apiKey: 'sk-ant-...',
model: 'claude-3-5-sonnet-20241022',
topK: 40
});