An open API service indexing awesome lists of open source software.

https://github.com/rvinnie/deepseek-sdk-go

Deepseek SDK for the Golang
https://github.com/rvinnie/deepseek-sdk-go

deepseek deepseek-chat deepseek-go deepseek-r1 go golang streaming-api

Last synced: 26 days ago
JSON representation

Deepseek SDK for the Golang

Awesome Lists containing this project

README

          

[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
[![Golang](https://img.shields.io/badge/Go-v1.21-EEEEEE?logo=go&logoColor=white&labelColor=00ADD8)](https://go.dev/)


Deepseek API Golang Client Library


Client for Deepseek API



English | 中文 | Русский


### Installation
`go get github.com/rvinnie/deepseek-sdk-go`

### Getting Started
1. Import the module
```golang
import "github.com/rvinnie/deepseek-sdk-go/deepseek"
```
2. Create a Deepseek API client
```golang
import "github.com/rvinnie/deepseek-sdk-go/deepseek"

func main() {
client, err := deepseek.NewClient("API_TOKEN")
if err != nil {
// Handle error
}
}
```
3. Call the desired API method. [See Deepseek API documentation](https://api-docs.deepseek.com/api/deepseek-api)

## SDK Usage Examples
#### [Deepseek API SDK Configuration](https://github.com/rvinnie/deepseek-sdk-go/blob/main/docs/examples/01-configuration.md)
* [Authentication](https://github.com/rvinnie/deepseek-sdk-go/blob/main/docs/examples/01-configuration.md#authentication)
#### [Chat Operations](https://github.com/rvinnie/deepseek-sdk-go/blob/main/docs/examples/02-chat-completions.md)
* [Create Chat Request](https://github.com/rvinnie/deepseek-sdk-go/blob/main/docs/examples/02-chat-completions.md#create-chat-request)
* [Streaming Content](https://github.com/rvinnie/deepseek-sdk-go/blob/main/docs/examples/02-chat-completions.md#streaming-content)
#### [Chat Operations (Fill-In-the-Middle)](https://github.com/rvinnie/deepseek-sdk-go/blob/main/docs/examples/03-fim-completions.md)
* [Create Chat Request](https://github.com/rvinnie/deepseek-sdk-go/blob/main/docs/examples/03-fim-completions.md#create-chat-request)
#### [Model Operations](https://github.com/rvinnie/deepseek-sdk-go/blob/main/docs/examples/04-models.md)
* [List Available Models](https://github.com/rvinnie/deepseek-sdk-go/blob/main/docs/examples/04-models.md#list-available-models)
#### [Account Operations](https://github.com/rvinnie/deepseek-sdk-go/blob/main/docs/examples/05-user.md)
* [Get User Balance](https://github.com/rvinnie/deepseek-sdk-go/blob/main/docs/examples/05-user.md#get-user-balance)