mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-09-17 17:16:38 +08:00
Merge branch 'patch/o3-mini'
This commit is contained in:
commit
bd055dd989
@ -9,12 +9,21 @@ import (
|
|||||||
type Message struct {
|
type Message struct {
|
||||||
Role string `json:"role,omitempty"`
|
Role string `json:"role,omitempty"`
|
||||||
// Content is a string or a list of objects
|
// Content is a string or a list of objects
|
||||||
Content any `json:"content,omitempty"`
|
Content any `json:"content,omitempty"`
|
||||||
ReasoningContent string `json:"reasoning_content,omitempty"`
|
Name *string `json:"name,omitempty"`
|
||||||
Name *string `json:"name,omitempty"`
|
ToolCalls []Tool `json:"tool_calls,omitempty"`
|
||||||
ToolCalls []Tool `json:"tool_calls,omitempty"`
|
ToolCallId string `json:"tool_call_id,omitempty"`
|
||||||
ToolCallId string `json:"tool_call_id,omitempty"`
|
Audio *messageAudio `json:"audio,omitempty"`
|
||||||
Audio *messageAudio `json:"audio,omitempty"`
|
// -------------------------------------
|
||||||
|
// Deepseek 专有的一些字段
|
||||||
|
// https://api-docs.deepseek.com/api/create-chat-completion
|
||||||
|
// -------------------------------------
|
||||||
|
// Prefix forces the model to begin its answer with the supplied prefix in the assistant message.
|
||||||
|
// To enable this feature, set base_url to "https://api.deepseek.com/beta".
|
||||||
|
Prefix *bool `json:"prefix,omitempty"` // ReasoningContent is Used for the deepseek-reasoner model in the Chat
|
||||||
|
// Prefix Completion feature as the input for the CoT in the last assistant message.
|
||||||
|
// When using this feature, the prefix parameter must be set to true.
|
||||||
|
ReasoningContent *string `json:"reasoning_content,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type messageAudio struct {
|
type messageAudio struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user