Add anthropicBaseUrl option
This commit is contained in:
1 parent
c8db73fd69
commit
ca4ad1d0b3
4 files changed
+39
-2
No files matched your search
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user