Skip to content

How to create a custom LLM #286

Closed Answered by nfcampos
aaronrogers asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @aaronrogers You can now do import { BaseLLM } from 'langchain/llms'; We don't have many docs on creating a custom LLM, my suggestion would be to look at one of the existing ones, and go from there. A simple one is https://github.com/hwchase17/langchainjs/blob/main/langchain/src/llms/cohere.ts

Any questions let me know! Happy to help

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@aaronrogers
Comment options

Answer selected by aaronrogers
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants