openai_request.go
6.59 KB
-
refactor: Update Message methods to use pointer receivers · 86b9dc63
- Refactored ParseToolCalls, SetToolCalls, IsStringContent, and ParseContent methods in the Message struct to use pointer receivers, improving efficiency and consistency in handling mutable state. - Enhanced code readability and maintainability by ensuring all relevant methods operate on the pointer receiver, aligning with Go best practices.
CalciumIon committed