Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@ var (

// ChatCompletionMessage represents a single message in a chat completion conversation.
type ChatCompletionMessage struct {
Role string `json:"role"` // The role of the message sender, e.g., "user", "assistant", "system".
Content string `json:"content"` // The content of the message.
Prefix bool `json:"prefix,omitempty"` // The prefix of the message (optional) for Chat Prefix Completion [Beta Feature].
ReasoningContent string `json:"reasoning_content,omitempty"` // The reasoning content of the message (optional) when using the reasoner model with Chat Prefix Completion. When using this feature, the Prefix parameter must be set to true.
ToolCallID string `json:"tool_call_id,omitempty"` // Tool call that this message is responding to.
Role string `json:"role"` // The role of the message sender, e.g., "user", "assistant", "system".
Content string `json:"content"` // The content of the message.
Prefix bool `json:"prefix,omitempty"` // The prefix of the message (optional) for Chat Prefix Completion [Beta Feature].
ReasoningContent string `json:"reasoning_content,omitempty"` // The reasoning content of the message (optional) when using the reasoner model with Chat Prefix Completion. When using this feature, the Prefix parameter must be set to true.
ToolCallID string `json:"tool_call_id,omitempty"` // Tool call that this message is responding to.
ToolCalls []ToolCall `json:"tool_calls,omitempty"` // Optional tool calls.
}

// FunctionParameters defines the parameters for a function.
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/cohesion-org/deepseek-go

go 1.23.3
go 1.23

require (
github.com/joho/godotenv v1.5.1
Expand Down