- Introduce BeginAt and EndAt fields in Message struct to track message timing. - Update NewText and NewType methods in Contents to accept Extra struct for better metadata handling. - Modify ScanTokens function to manage token IDs and beginning timestamps, improving token processing accuracy. - Refactor GenerateWithAI and streamChat methods to utilize new timestamp features, enhancing message context and flow. |
||
|---|---|---|
| .. | ||
| contents.go | ||
| message.go | ||