-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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(community): Add new LLM provider Novita AI #7231
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
Hi @jacoblee93 I have finished adding the new LLM provider Novita AI but the Vercel – langchainjs-docs deployment failed. I cannot see the details on Vercel. I have successfully run |
"## Overview\n", | ||
"\n", | ||
"### Model features\n", | ||
"| [Tool calling](../../how_to/tool_calling.ipynb) | [Structured output](../../how_to/structured_output.ipynb) | JSON mode | [Image input](../../how_to/multimodal_inputs.ipynb) | Audio input | Video input | [Token-level streaming](../../how_to/chat_streaming.ipynb) | Native async | [Token usage](../../how_to/chat_token_usage_tracking.ipynb) | [Logprobs](../../how_to/logprobs.ipynb) |\n", |
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.
I believe these need to be absolute paths rather than relative
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.
Fixed
"source": [ | ||
"## Chaining\n", | ||
"\n", | ||
"We can [chain](../../how_to/sequence.ipynb) our model with a prompt template like so:" |
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.
See above
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.
Fixed
"source": [ | ||
"## API reference\n", | ||
"\n", | ||
"For detailed documentation of Novita AI LLM APIs, head to [Novita AI API reference](https://novita.ai/docs/model-api/reference/llm/llm.html?utm_source=github_langchain&utm_medium=github_readme&utm_campaign=link)\n" |
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.
We prefer having this link to the LangChain API refs, but this is ok too
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.
I'm truly sorry but I don't have more time to write a Novita API ref for LangChain 😭.
--- | ||
|
||
import CodeBlock from "@theme/CodeBlock"; | ||
|
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.
You shouldn't have this and the notebook above - the notebook compiles into an .mdx
file
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.
Removed this file
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.
Remove, see above. The notebook is all you need
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.
Remove, see above. The notebook is all you need
@@ -113,6 +113,7 @@ export const config = { | |||
"llms/writer": "llms/writer", | |||
"llms/yandex": "llms/yandex", | |||
"llms/layerup_security": "llms/layerup_security", | |||
"llms/novita": "llms/novita", |
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.
This should be chat_models/novita
@@ -35,7 +35,7 @@ | |||
"author": "LangChain", | |||
"license": "MIT", | |||
"dependencies": { | |||
"@langchain/openai": ">=0.2.0 <0.4.0", | |||
"@langchain/openai": "workspace:*", |
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.
Revert
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.
Thanks, looks good overall. See comments!
Thank you so much for reviewing and all the problems above have been solved! |
Add new LLM API provider Novita AI.