Files
Memoh/internal/settings/types.go
T
BBQ 5a35ef34ac feat: channel gateway implementation and multi-bot refactor
- Refactor channel manager with support for Sender/Receiver interfaces and hot-swappable adapters.
- Implement identity routing and pre-authentication logic for inbound messages.
- Update database schema to support bot pre-auth keys and extended channel session metadata.
- Add Telegram and Feishu channel configuration and adapter enhancements.
- Update Swagger documentation and internal handlers for channel management.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-06 14:41:54 +08:00

25 lines
834 B
Go

package settings
const (
DefaultMaxContextLoadTime = 24 * 60
DefaultLanguage = "auto"
)
type Settings struct {
ChatModelID string `json:"chat_model_id"`
MemoryModelID string `json:"memory_model_id"`
EmbeddingModelID string `json:"embedding_model_id"`
MaxContextLoadTime int `json:"max_context_load_time"`
Language string `json:"language"`
AllowGuest bool `json:"allow_guest"`
}
type UpsertRequest struct {
ChatModelID string `json:"chat_model_id,omitempty"`
MemoryModelID string `json:"memory_model_id,omitempty"`
EmbeddingModelID string `json:"embedding_model_id,omitempty"`
MaxContextLoadTime *int `json:"max_context_load_time,omitempty"`
Language string `json:"language,omitempty"`
AllowGuest *bool `json:"allow_guest,omitempty"`
}