fix: use correct type for Anthropic client options

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-01-09 20:44:03 -08:00
parent ea760b5695
commit a43e0b40e8
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ export class ClaudeAgentService implements OnModuleInit {
onModuleInit() { onModuleInit() {
const proxyUrl = this.configService.get<string>('ANTHROPIC_PROXY_URL'); const proxyUrl = this.configService.get<string>('ANTHROPIC_PROXY_URL');
const clientOptions: Anthropic.ClientOptions = { const clientOptions: ConstructorParameters<typeof Anthropic>[0] = {
apiKey: this.configService.get<string>('ANTHROPIC_API_KEY'), apiKey: this.configService.get<string>('ANTHROPIC_API_KEY'),
}; };