-
Notifications
You must be signed in to change notification settings - Fork 80
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
feat: add hub js sdk to langsmith js sdk #893
Conversation
} | ||
); | ||
|
||
if (response.status === 404) { |
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.
Should we also handle !res.ok
as well?
body: JSON.stringify(data), | ||
signal: AbortSignal.timeout(this.timeout_ms), | ||
...this.fetchOptions, | ||
}); |
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.
nit: should we handle !response.ok
as well?
}; | ||
} | ||
|
||
public async _pullPrompt( |
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.
nit: maybe worth adding @private
JSDoc tag + indicate what user should do?
js/src/client.ts
Outdated
}); | ||
} | ||
|
||
if (options?.object === null) { |
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.
Don't we need to check for undefined as well?
No description provided.