Documentation
¶
Index ¶
Constants ¶
View Source
const ChatURL = "https://api.deepseek.com/chat/completions"
Variables ¶
View Source
var DEEPSEEK_DEFAULT = Deepseek{ Model: "deepseek-chat", Temperature: 1.0, TopP: 1.0, Url: ChatURL, }
Functions ¶
This section is empty.
Types ¶
type ChatCompletion ¶
type ChatCompletion struct { ID string `json:"id"` Object string `json:"object"` Created int64 `json:"created"` Model string `json:"model"` Choices []Choice `json:"choices"` Usage Usage `json:"usage"` SystemFingerprint string `json:"system_fingerprint"` }
Copy from novita, and openai
type Deepseek ¶
type Deepseek struct { generic.StreamCompleter Model string `json:"model"` FrequencyPenalty float64 `json:"frequency_penalty"` MaxTokens *int `json:"max_tokens"` // Use a pointer to allow null value PresencePenalty float64 `json:"presence_penalty"` Temperature float64 `json:"temperature"` TopP float64 `json:"top_p"` Url string `json:"url"` }
func (*Deepseek) RegisterTool ¶
type GptTool ¶
type GptTool struct { Name string `json:"name"` Description string `json:"description"` Inputs tools.InputSchema `json:"parameters"` }
type GptToolSuper ¶
Click to show internal directories.
Click to hide internal directories.