Add anthropicBaseUrl option

This commit is contained in:
Saoud Rizwan committed 2024-09-07 07:31:29 -04:00
1 parent c8db73fd69
commit ca4ad1d0b3
4 files changed
+39 -2

No files matched your search

+4 -1
View File
@@ -8,7 +8,10 @@ export class AnthropicHandler implements ApiHandler {
constructor(options: ApiHandlerOptions) {
this.options = options
this.client = new Anthropic({ apiKey: this.options.apiKey })
this.client = new Anthropic({
apiKey: this.options.apiKey,
baseURL: this.options.anthropicBaseUrl || undefined,
})
}
async createMessage(