mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-27 07:16:19 +09:00
27 lines
954 B
Go
27 lines
954 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"`
|
|
SearchProviderID string `json:"search_provider_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"`
|
|
SearchProviderID string `json:"search_provider_id,omitempty"`
|
|
MaxContextLoadTime *int `json:"max_context_load_time,omitempty"`
|
|
Language string `json:"language,omitempty"`
|
|
AllowGuest *bool `json:"allow_guest,omitempty"`
|
|
}
|