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

有没有ollama的示例 #399

Open
gonggbb opened this issue Dec 24, 2024 · 4 comments
Open

有没有ollama的示例 #399

gonggbb opened this issue Dec 24, 2024 · 4 comments

Comments

@gonggbb
Copy link

gonggbb commented Dec 24, 2024

需求动机

有没有ollama的示例

提议的 API 是什么样的?

No response

@afc163
Copy link
Member

afc163 commented Dec 24, 2024

可以有,欢迎 PR。

另外还可以有以下示例待补充。

  • langchain
  • dify
  • FastGPT
  • Vercel AI SDK

@zpc7
Copy link

zpc7 commented Dec 26, 2024

@afc163 偏右老师, 我来尝试给一个 ollama 的调用示例吧, 恰好最近闲暇在学习

@gonggbb
Copy link
Author

gonggbb commented Dec 26, 2024

@afc163偏右老师,我来尝试给一个ollama调用示例吧,正好最近闲暇在学习

用antx示例做的一个demo https://github.com/gonggbb/antx-ollama
Independent.js 拆分后的,有点问题 setContent('')没有效果
App.js 没拆分

@zpc7
Copy link

zpc7 commented Dec 26, 2024

@afc163偏右老师,我来尝试给一个ollama调用示例吧,正好最近闲暇在学习

用antx示例做的一个demo https://github.com/gonggbb/antx-ollama ; Independent.js 拆分后的,有点问题 setContent('')没有效果 App.js 没拆分

@gonggbb 我使用你的代码, 搭配本地的qwen2.5:7b模型, 工作挺好的, 你说的setContent具体问题是?
image

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

3 participants