Go SDK for Deepseek API
Top 90.4% on sourcepulse
Deepseek-Go is a Go client library for interacting with the Deepseek AI API, offering a type-safe interface for chat completions, streaming, and token usage. It also provides support for external providers like Azure, OpenRouter, and local Ollama instances, making it a versatile tool for developers integrating AI capabilities into Go applications.
How It Works
The library leverages Go's strong typing to provide a clean API for Deepseek's models, including deepseek-chat
and deepseek-reasoner
. It supports streaming responses for real-time interaction and includes features for managing conversation history. The modular design allows for easy extension and integration with other services, including custom providers that adhere to a similar API structure.
Quick Start & Requirements
go get github.com/cohesion-org/deepseek-go
/examples
directory.Highlighted Details
Maintenance & Community
The project is open for contributions via issues and PRs. Community engagement is encouraged for improvements and issue reporting.
Licensing & Compatibility
Licensed under the MIT License, permitting both personal and commercial use.
Limitations & Caveats
Ollama support is experimental due to potential deviations from OpenAI API policies. The FIM and Chat Prefix Completion features are marked as Beta. The deepseek-reasoner
model has specific usage conditions noted in issue #8.
1 week ago
1 day