添加会话级固定预设

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-06-17 12:06:13 +08:00
co-authored by Claude
parent 0b48dc0d7d
commit 2c4d4af070
5 changed files with 154 additions and 15 deletions
+6 -5
View File
@@ -18,9 +18,10 @@ type ChatRequest struct {
}
type Conversation struct {
ID string `json:"id"`
Title string `json:"title"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
Messages []ChatMessage `json:"messages,omitempty"`
ID string `json:"id"`
Title string `json:"title"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
PresetPrompt string `json:"preset_prompt,omitempty"`
Messages []ChatMessage `json:"messages,omitempty"`
}