Files
crawlab/core/entity
Marvin Zhang 8273507d20 refactor: update LLMResponseUsage struct and ChatMessage model for BSON compatibility
- Added BSON tags to fields in LLMResponseUsage struct to ensure proper serialization with MongoDB.
- Updated the Usage field in ChatMessage model to exclude it from JSON serialization while retaining BSON compatibility.
- Introduced GetUsage method in ChatMessage to aggregate token usage from contents, enhancing usage tracking capabilities.
2025-04-12 21:25:57 +08:00
..
2024-06-14 15:42:50 +08:00
2024-06-14 15:42:50 +08:00
2024-06-14 15:42:50 +08:00
2024-11-24 23:14:26 +08:00
2024-06-14 15:42:50 +08:00
2024-06-14 15:42:50 +08:00
2024-06-14 16:37:48 +08:00
2024-10-20 17:17:08 +08:00
2024-06-14 15:42:50 +08:00