/** * @zhin.js/ai - Anthropic Provider * 支持 Claude 系列模型 */ import { BaseProvider } from './base.js'; import type { ProviderConfig, ChatCompletionRequest, ChatCompletionResponse, ChatCompletionChunk } from '../types.js'; export interface AnthropicConfig extends ProviderConfig { anthropicVersion?: string; } export declare class AnthropicProvider extends BaseProvider { name: string; models: string[]; contextWindow: number; capabilities: { vision: boolean; streaming: boolean; toolCalling: boolean; thinking: boolean; }; private baseUrl; private anthropicVersion; constructor(config?: AnthropicConfig); protected fetch(url: string, options?: RequestInit & { json?: unknown; }): Promise; chat(request: ChatCompletionRequest): Promise; chatStream(request: ChatCompletionRequest): AsyncIterable; listModels(): Promise; } //# sourceMappingURL=anthropic.d.ts.map