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

使用langchain接入模型,如何适配with_structured_output #274

Open
Und3r1ine opened this issue Oct 26, 2024 · 0 comments
Open

使用langchain接入模型,如何适配with_structured_output #274

Und3r1ine opened this issue Oct 26, 2024 · 0 comments

Comments

@Und3r1ine
Copy link

在某些场景下,ChatOpenAI无法使用,需要基于LLM自定义Model,但是参考项目中接入langchain的模型,缺少了with_structured_output方法,而原项目中存在着这样的方法,导致使用langchain接入模型也无法使用。
参考项目中的LLaMa3接入langchain的方法:
https://github.com/datawhalechina/self-llm/blob/master/models/LLaMA3/02-LLaMA3-8B-Instruct%20langchain%20%E6%8E%A5%E5%85%A5.md

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

1 participant