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

Dapr Conversation API - DeepSeek with Ollama? #3669

Open
thangchung opened this issue Feb 14, 2025 · 2 comments
Open

Dapr Conversation API - DeepSeek with Ollama? #3669

thangchung opened this issue Feb 14, 2025 · 2 comments
Labels
kind/enhancement New feature or request

Comments

@thangchung
Copy link

Describe the feature

Currently, I am experimenting with Conversation API - deepseek. It works fine with the deepseek API key. But it could not work with the Ollama - deepseek model. I read through the code at https://github.com/dapr/components-contrib/blob/v1.15.0-rc.3/conversation/deepseek/deepseek.go, and found out that this component uses https://github.com/cohesion-org/deepseek-go, and it can only work with deepseek API (cloud platform).

Is there any way to run it with Ollama - Deepseek deepseek-r1:1.5b?

/cc @yaron2

My environment:

  • Windows 11
  • Dapr

Image

@thangchung thangchung added the kind/enhancement New feature or request label Feb 14, 2025
@berndverst
Copy link
Member

We can only rely on SDKs written in Go without C extensions.

I did a quick search for Go libraries related to Ollama but could not find any that do not use CGO.

Unfortunately, CGO based SDKs cannot be accepted for Dapr components. Dapr needs to be able to be compiled as a platform agnostic distribution.

If you find a Go SDK that does not use CGO that does what you want we will accept contributions with such a SDK.

@yaron2
Copy link
Member

yaron2 commented Feb 19, 2025

We can only rely on SDKs written in Go without C extensions.

I did a quick search for Go libraries related to Ollama but could not find any that do not use CGO.

Unfortunately, CGO based SDKs cannot be accepted for Dapr components. Dapr needs to be able to be compiled as a platform agnostic distribution.

If you find a Go SDK that does not use CGO that does what you want we will accept contributions with such a SDK.

I'm fairly certain the SDK we're using for Langchain supports Ollama without cgo: https://github.com/tmc/langchaingo

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

No branches or pull requests

3 participants