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

replace openai #2369

Closed
world2025 opened this issue Apr 4, 2023 · 4 comments
Closed

replace openai #2369

world2025 opened this issue Apr 4, 2023 · 4 comments

Comments

@world2025
Copy link

can you tell me how to use local llm to replace the openai model,thanks, i can not find related codes

@Howardqlz
Copy link

Nice work and i have the same question. Is there a way to override LLM function to use customize llms?

@sneedger
Copy link

sneedger commented Apr 5, 2023

+1

@20001LastOrder
Copy link

I guess that you can inherit the base LLM model and implement the _call function. You can check an example here (This is a fake LLM used for testing purpose I believe )

@dosubot
Copy link

dosubot bot commented Sep 19, 2023

Hi, @tkone2018! I'm Dosu, and I'm here to help the LangChain team manage their backlog. I wanted to let you know that we are marking this issue as stale.

From what I understand, you were seeking guidance on how to use a local language model (llm) to replace the openai model. Howardqlz and others have also expressed interest in the same question. 20001LastOrder suggested inheriting the base LLM model and implementing the _call function, and even provided an example in a comment.

Before we close this issue, we wanted to check with you if it is still relevant to the latest version of the LangChain repository. If it is, please let us know by commenting on the issue. Otherwise, feel free to close the issue yourself or it will be automatically closed in 7 days.

Thank you for your contribution and we hope to hear from you soon!

@dosubot dosubot bot added the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Sep 19, 2023
@dosubot dosubot bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 26, 2023
@dosubot dosubot bot removed the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants