REPOSITORY / ScuroNeko

go-deepseek

Код, история изменений и документация проекта.
ACTIVE PUBLIC SOURCE
2026-07-31 14:25:10 +03:00
2026-07-31 14:21:48 +03:00
2026-07-31 14:21:48 +03:00
2026-07-31 14:21:48 +03:00
2026-07-31 14:21:48 +03:00
2026-07-31 14:21:48 +03:00
2026-07-31 14:21:48 +03:00
2026-07-31 14:21:48 +03:00
2026-07-31 14:21:48 +03:00
2026-07-31 14:21:48 +03:00
2026-07-31 14:25:10 +03:00
2026-07-31 14:21:48 +03:00
2026-07-31 14:21:48 +03:00
2026-07-31 14:21:48 +03:00
2026-07-31 14:21:48 +03:00
2026-07-31 14:21:48 +03:00
2026-07-31 14:21:48 +03:00
2026-07-31 14:21:48 +03:00
2026-07-31 14:21:48 +03:00

GoDeepSeek

Requirements:

  • CGO enabled
  • x86_64 CPU with AVX2 (Intel Haswell 2013+, AMD Ryzen 2017+)
  • C++17 compiler (GCC 7+, Clang 5+, MSVC 2017+)

Quick start

package main

import (
	"context"
	"deepseek"
	"log"
)

func main() {
	ctx := context.Background()
	ds := deepseek.NewClient()
	ds.SetDeviceIDProvider(deepseek.RandomDeviceIDProvider())
	// Flow #1
	err := ds.Login("email", "password")
	if err != nil {
		panic(err)
	}

	// Flow #2
	ds.SetToken("TOKEN")

	chatRes, err := ds.CreateChatWithContext(ctx)
	if err != nil {
		panic(err)
	}

	res, err := ds.CompletionWithContext(ctx, *deepseek.NewCompletionReq(chatRes.ID).SetPrompt("Hello"))
	if err != nil {
		panic(err)
	}

	str, err := ds.ReadStreamAsString(ctx, res)
	if err != nil {
		panic(err)
	}
	log.Println(str)
}
S
Description
No description provided
Readme
61 KiB
Languages
Go 74.1%
C++ 25.1%
C 0.8%