feat: bot inbox (#77)

* feat: bot inbox

* feat: unified header

* fix: missing tool_call usage

* feat: add group name in header
This commit is contained in:
Acbox Liu
2026-02-22 01:27:24 +08:00
committed by GitHub
parent 2c6b5e5565
commit c591af14b0
42 changed files with 3367 additions and 260 deletions
+3
View File
@@ -2,6 +2,7 @@ package settings
const (
DefaultMaxContextLoadTime = 24 * 60
DefaultMaxInboxItems = 50
DefaultLanguage = "auto"
)
@@ -12,6 +13,7 @@ type Settings struct {
SearchProviderID string `json:"search_provider_id"`
MaxContextLoadTime int `json:"max_context_load_time"`
MaxContextTokens int `json:"max_context_tokens"`
MaxInboxItems int `json:"max_inbox_items"`
Language string `json:"language"`
AllowGuest bool `json:"allow_guest"`
}
@@ -23,6 +25,7 @@ type UpsertRequest struct {
SearchProviderID string `json:"search_provider_id,omitempty"`
MaxContextLoadTime *int `json:"max_context_load_time,omitempty"`
MaxContextTokens *int `json:"max_context_tokens,omitempty"`
MaxInboxItems *int `json:"max_inbox_items,omitempty"`
Language string `json:"language,omitempty"`
AllowGuest *bool `json:"allow_guest,omitempty"`
}