Skip to content

Conversation

@rxliuli
Copy link
Contributor

@rxliuli rxliuli commented Sep 7, 2024

@vercel
Copy link

vercel bot commented Sep 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langchainjs-docs ✅ Ready (Inspect) Visit Preview Sep 10, 2024 9:17pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
langchainjs-api-refs ⬜️ Ignored (Inspect) Sep 10, 2024 9:17pm

@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. auto:bug labels Sep 7, 2024
@vercel vercel bot temporarily deployed to Preview – langchainjs-docs September 7, 2024 01:50 Inactive
@jacoblee93
Copy link
Collaborator

Thank you! Good catch, sorry for missing this.

if (!this.batchClient) {
const options = this.apiUrl ? { baseURL: this.apiUrl } : undefined;
if (!this.apiKey) {
if (!this.apiKey && !this.createClient) {
Copy link
Collaborator

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

Copy link
Collaborator

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.

@vercel vercel bot temporarily deployed to Preview – langchainjs-docs September 10, 2024 21:17 Inactive
@jacoblee93 jacoblee93 merged commit 1e1d8d1 into langchain-ai:main Sep 10, 2024
@langchain-ai langchain-ai locked as spam and limited conversation to collaborators Oct 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants