mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-27 07:16:19 +09:00
feat: max context tokens
This commit is contained in:
@@ -36,6 +36,7 @@ type Message struct {
|
||||
Role string `json:"role"`
|
||||
Content json.RawMessage `json:"content"`
|
||||
Metadata map[string]any `json:"metadata,omitempty"`
|
||||
Usage json.RawMessage `json:"usage,omitempty"`
|
||||
Assets []MessageAsset `json:"assets,omitempty"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
}
|
||||
@@ -59,6 +60,7 @@ type PersistInput struct {
|
||||
Role string
|
||||
Content json.RawMessage
|
||||
Metadata map[string]any
|
||||
Usage json.RawMessage
|
||||
Assets []AssetRef
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user