yao/neo
Max 2becefd06e Enhance Vision module with flexible prompt handling and comprehensive tests
- Refactored the Analyze method in the Vision and OpenAI model to accept a variadic prompt parameter, allowing for optional custom prompts while defaulting to a predefined prompt if none is provided.
- Added multiple test cases in vision_test.go and model_test.go to validate image analysis with default, custom, and empty prompts, ensuring robust functionality and error handling.
- Updated the Model interface to reflect the new prompt handling, improving clarity and usability.

These changes enhance the flexibility of the Vision module, paving the way for improved user experience and functionality in image analysis.
2025-01-06 11:43:31 +08:00
..
assistant Refactor Neo API assistant functionality and enhance model capabilities 2025-01-06 11:05:38 +08:00
message Refactor message handling and enhance file reading capabilities in Neo API 2024-12-31 16:01:48 +08:00
rag Update Go version and dependencies; enhance Neo API functionality 2025-01-02 13:06:36 +08:00
store Refactor conversation table handling and update settings structure in Neo API 2025-01-02 16:22:10 +08:00
vision Enhance Vision module with flexible prompt handling and comprehensive tests 2025-01-06 11:43:31 +08:00
api.go Enhance assistant management and API functionality in Neo 2025-01-01 16:48:06 +08:00
api_test.go Refactor Neo DSL tests and API structure by removing unused handlers, enhancing conversation management, and implementing new test cases for prompts, chat messages, and history saving. Introduce custom response recorder for improved testing and mock AI for simulating responses. 2024-12-13 11:17:00 +08:00
context.go Enhance NewContext function to include ChatID parameter for improved context management 2024-12-12 20:21:02 +08:00
hooks.go Refactor Neo API assistant management and remove obsolete functions 2025-01-03 16:37:43 +08:00
load.go Refactor Neo API assistant management and remove obsolete functions 2025-01-03 16:37:43 +08:00
load_test.go [add] Neo (70%) 2023-04-30 14:21:45 +08:00
neo.go Refactor Neo API upload functionality and enhance environment variable handling 2025-01-06 11:27:44 +08:00
neo_test.go Enhance Neo API and conversation management by adding support for server-sent events (SSE) in chat handling, improving error messaging with structured responses, and refactoring assistant creation logic. Update conversation settings to utilize a new assistant model and implement context management improvements for better performance. Additionally, streamline the DSL structure and enhance test coverage for chat functionalities. 2024-12-13 17:51:13 +08:00
process.go Refactor conversation management and migrate to store-based architecture in Neo API 2025-01-01 10:43:05 +08:00
process_test.go Enhance assistant filtering and management in Neo API 2024-12-29 17:30:33 +08:00
types.go Refactor Neo API assistant management and remove obsolete functions 2025-01-03 16:37:43 +08:00