yao/openai
Max 17c18e7d56 Refactor Neo API assistant to enhance vision support and message handling
- Updated the Assistant struct to include a vision capability flag and an init hook indicator, allowing for better management of vision-enabled functionalities.
- Refactored message handling throughout the assistant methods to utilize the chatMessage package, improving consistency and type safety.
- Enhanced the handleVision method to support dynamic vision processing options, including improved handling of image descriptions and uploads.
- Streamlined the requestMessages and withAttachments methods to better accommodate vision capabilities, ensuring proper integration with image handling.
- Improved the initialize method to check for vision support based on the model, enhancing the assistant's adaptability.

These changes improve the robustness and maintainability of the Neo API, paving the way for enhanced assistant functionalities and better integration of vision capabilities.
2025-01-17 15:16:26 +08:00
..
openai.go Refactor Neo API assistant to enhance vision support and message handling 2025-01-17 15:16:26 +08:00
openai_test.go [add] neo (50%) 2023-04-29 16:48:37 +08:00
process.go [add] openai process 2023-05-12 22:11:31 +08:00
process_test.go [add] openai process 2023-05-12 22:11:31 +08:00
types.go Enhance Neo API assistant with function support and improved message handling 2025-01-15 11:20:55 +08:00