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[minor]: Add Moonshot chat models integration #5239
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
d1e08af
to
7eb8ea0
Compare
|
||
moonshotApiKey?: string; | ||
|
||
apiKey?: string; |
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.
Why two different variables?
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.
Because I saw that some model parameters in langchain provide this alias name apiKey
(such as baiduwenxin zhipuai minimax), and some do not(such as alibabatongyi), so retained here.
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.
Let's just use apiKey
- we're trying to standardize parameter names more.
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.
moonshotApiKey
removed.
} | ||
|
||
_llmType(): string { | ||
return "Moonshot"; |
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: lower-case
Hey, I'm very sorry for the delay - I was on vacation and then we had a lot to do for the launch of 0.2.0. Small comments but looks good otherwise! I can update this tomorrow unless you beat me to it. |
Moonshot is a Chinese startup that provides LLM service for companies and individuals. See https://platform.moonshot.cn/docs/intro.
Langchain Python already has Moonshot integration. See https://python.langchain.com/docs/integrations/chat/moonshot/
So complete this integration in the Javascript version