-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(anthropic): Do not check for apiKey existence when createClient parameters are present #6716
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
Thank you! Good catch, sorry for missing this. |
@@ -949,7 +949,7 @@ export class ChatAnthropicMessages< | |||
): Promise<Anthropic.Message> { | |||
if (!this.batchClient) { | |||
const options = this.apiUrl ? { baseURL: this.apiUrl } : undefined; | |||
if (!this.apiKey) { | |||
if (!this.apiKey && !this.createClient) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this.createClient
will always be defined since we have a default - can update
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Honestly, I don't really think we need a second check here. Will remove.
Fixes #6615 (comment)