Skip to content
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

Merged
merged 17 commits into from
Jul 26, 2024

Conversation

madams0013
Copy link
Contributor

No description provided.

@madams0013 madams0013 requested a review from dqbd July 23, 2024 23:16
js/src/client.ts Outdated Show resolved Hide resolved
js/src/client.ts Outdated Show resolved Hide resolved
js/src/client.ts Show resolved Hide resolved
}
);

if (response.status === 404) {
Copy link
Collaborator

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,
});
Copy link
Collaborator

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(
Copy link
Collaborator

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) {
Copy link
Collaborator

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?

@madams0013 madams0013 merged commit 6ba2489 into main Jul 26, 2024
11 checks passed
@madams0013 madams0013 deleted the maddy/add-hub-js-sdk-to-ls-sdk branch July 26, 2024 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants