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

community[major]: DeepInfra llm and chat #5672

Merged
merged 27 commits into from
Jun 11, 2024

Conversation

ovuruska
Copy link
Contributor

@ovuruska ovuruska commented Jun 5, 2024

This PR includes integration of DeepInfra's Inference API with Langchain's LLM and Chat interfaces.

Copy link

vercel bot commented Jun 5, 2024

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

Name Status Preview Comments Updated (UTC)
langchainjs-api-refs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 11, 2024 8:08pm
langchainjs-docs ✅ Ready (Inspect) Visit Preview Jun 11, 2024 8:08pm

@ovuruska ovuruska changed the title Feat/deepinfra llm and chat community[major]: Feat/deepinfra llm and chat Jun 5, 2024
@ovuruska ovuruska changed the title community[major]: Feat/deepinfra llm and chat community[major]: DeepInfra llm and chat Jun 5, 2024
@ovuruska ovuruska marked this pull request as ready for review June 5, 2024 21:11
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. auto:enhancement A large net-new component, integration, or chain. Use sparingly. The largest features labels Jun 5, 2024
@@ -0,0 +1,18 @@
import { DeepInfraLLM } from "@langchain/community/llms/deepinfra";
Copy link

Choose a reason for hiding this comment

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

Hey team, just a heads up that I've flagged a change in the PR for review. The added code accesses an environment variable using process.env, so it's important to ensure proper handling and security of environment variables.

@@ -0,0 +1,17 @@
import { ChatDeepInfra } from "@langchain/community/chat_models/deepinfra";
Copy link

Choose a reason for hiding this comment

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

Hey there! I've reviewed the code changes, and it looks like the addition of accessing the environment variable DEEPINFRA_API_TOKEN using process.env has been flagged for your review. Please take a look at the related change and ensure it aligns with the project's requirements. Let me know if you need further assistance!

@@ -0,0 +1,14 @@
import { DeepInfraLLM } from "@langchain/community/llms/deepinfra";
Copy link

Choose a reason for hiding this comment

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

Hey there! I've reviewed the code and flagged a change related to accessing environment variables for the maintainers to review. Please take a look at the comment for more details. Let me know if you need further assistance!

@@ -0,0 +1,217 @@
import {
Copy link

Choose a reason for hiding this comment

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

Hey team, I've reviewed the code and noticed that the new changes introduce a net-new HTTP request using the fetch function. I've flagged this for your review to ensure it aligns with our project's requirements. Great work overall!

@@ -0,0 +1,217 @@
import {
Copy link

Choose a reason for hiding this comment

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

Hey team, I've reviewed the code changes and flagged a specific section for your attention. The added code appears to explicitly access and require an environment variable using the getEnvironmentVariable function, so please review this change to ensure it aligns with our environment variable handling practices.

@@ -0,0 +1,69 @@
import { LLM, type BaseLLMParams } from "@langchain/core/language_models/llms";
Copy link

Choose a reason for hiding this comment

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

Hey team, just a heads up that I've flagged this PR for review because it introduces a new fetch request within the _call method. Please take a look and ensure it aligns with our project's requirements. Thanks!

@@ -0,0 +1,69 @@
import { LLM, type BaseLLMParams } from "@langchain/core/language_models/llms";
Copy link

Choose a reason for hiding this comment

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

Hey there! 👋 This is a friendly flag for the maintainers to review the recent change in the PR, as it explicitly requires an environment variable via getEnvironmentVariable. Keep up the great work! 🚀

@jacoblee93
Copy link
Collaborator

jacoblee93 commented Jun 11, 2024

Thank you, sorry for the delay! Have gone through and added some basic docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto:enhancement A large net-new component, integration, or chain. Use sparingly. The largest features size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants