deepseek

package
v1.16.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package deepseek provides a client for the DeepSeek API.

Index

Constants

View Source
const (
	BaseURL = "https://api.deepseek.com/"

	ModelDeepSeekChat     = "deepseek-chat"
	ModelDeepSeekReasoner = "deepseek-reasoner"
	DefaultModel          = ModelDeepSeekChat

	TemperatureCodeGeneration float32 = 0.0 // code generation, mathematical problem-solving
	TemperatureDataAnalysis   float32 = 1.0 // data extraction, analysis
	TemperatureDataChat       float32 = 1.3 // universal chat, translation
	TemperatureDataCreative   float32 = 2.0 // creative writing, poetry writing
)

Variables

View Source
var (
	WithMaxTokens              = chatgpt.WithMaxTokens
	WithModel                  = chatgpt.WithModel
	WithTemperature            = chatgpt.WithTemperature
	WithInitialRole            = chatgpt.WithInitialRole
	WithInitialContextMessages = chatgpt.WithInitialContextMessages
	WithEnableContext          = chatgpt.WithEnableContext
)

Functions

This section is empty.

Types

type Client

type Client = chatgpt.Client

func NewClient

func NewClient(apiKey string, opts ...ClientOption) (*Client, error)

NewClient creates a new chat client.

type ClientOption

type ClientOption = chatgpt.ClientOption

type ContextMessage added in v1.13.0

type ContextMessage = chatgpt.ContextMessage

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL