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

[Feature]: 希望将本客户端添加到 langchain4j 的支持中 #28

Open
flyinox opened this issue Feb 17, 2025 · 3 comments
Open

[Feature]: 希望将本客户端添加到 langchain4j 的支持中 #28

flyinox opened this issue Feb 17, 2025 · 3 comments
Labels
enhancement New feature or request

Comments

@flyinox
Copy link

flyinox commented Feb 17, 2025

您的功能建议是否与某个问题相关?

很高兴看到 deepseek4j 这样的工具,平时我重度依赖 langchain4j 框架,但是在 langchain4j 中,无法查看deepseek R1 的reasoning_content,希望能够推动 langchain4j 社区支持相关特性。

描述您期望的解决方案

目前 langchain4j 社区有2 个 openai sdk 的版本,一个是 openai4j(目前已经停止维护了,等待替换成 openai 官方版本),另外一个是 azure 版。这两个版本都无法支持到reasoning_content, 而且推动改造的成本巨大。所以在 langchain4j 上面做原生的 deepseek 支持应该是最好的解决方案

如果能得到我们这里的授权,我将试着进行 langchain4j 改造,并将 deepseek4j 推到 langchain4j 中

描述您考虑过的替代方案

No response

补充信息

No response

@flyinox flyinox added the enhancement New feature or request label Feb 17, 2025
@lltx
Copy link
Contributor

lltx commented Feb 17, 2025

当然可以的 ,反哺一下 langchain4j 社区。

@lltx
Copy link
Contributor

lltx commented Feb 17, 2025

按 langchain4j 的规划,目前国内的模型实现 只能推到 这个社区库了 https://github.com/langchain4j/langchain4j-community/tree/main/models, 由于 R1 模型的特殊性 不支持 function 和 json ,估计这是官方不愿意去过度改造 openai4j 的原因。

欢迎加我微信: pigcloud999 交流,我也是重度 langchain4j

@yushengliao
Copy link

支持!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants