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

AI21 Labs Integration #1505

Merged
merged 4 commits into from
Jun 3, 2023
Merged

AI21 Labs Integration #1505

merged 4 commits into from
Jun 3, 2023

Conversation

paaatrrrick
Copy link
Contributor

A new file for integrating AI21 Labs API with unit tests.

I followed the python ai21 labs file as closely as possible to keep the similarity between the two codebases.

Please be thorough in your feedback

Twitter: @PatrickRFoster

@vercel
Copy link

vercel bot commented Jun 2, 2023

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

Name Status Preview Updated (UTC)
langchainjs-docs ✅ Ready (Inspect) Visit Preview Jun 2, 2023 11:35pm

@jacoblee93
Copy link
Collaborator

Thank you! Will look as soon as I can.

@jacoblee93 jacoblee93 added the lgtm PRs that are ready to be merged as-is label Jun 2, 2023
@jacoblee93
Copy link
Collaborator

Added some polish, tests, and docs - thank you!

@jacoblee93 jacoblee93 merged commit c753c19 into langchain-ai:main Jun 3, 2023
10 checks passed
};
const data = { prompt, stopSequences: stop, ...this.defaultParams };
const responseData = await this.caller.callWithOptions(
{ signal: options.signal },
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given you're passing signal to fetch you don't need to pass it here too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm PRs that are ready to be merged as-is
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants