AnthropicModel
public AnthropicModel(string apiKey, string model = "claude-3-sonnet-20240229", string? baseUrl = null)
Language: C#
Creates a new Anthropic model client.
Parameters:
- apiKey: Anthropic API key.
- model: Model name (e.g., "claude-3-opus-20240229", "claude-3-sonnet-20240229").
- baseUrl: Optional custom base URL (default: Anthropic API).
public Task StartGenerationAsync(IEnumerable<string> input)
Language: C#
public async Task<string> GenerateAsync(IEnumerable<string> messages, int maxTokens = 512, CancellationToken cancellationToken = default)
Language: C#