Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

# Neo API: Enhance Message Handling and Vision Support #819

Merged
merged 2 commits into from
Jan 17, 2025

Conversation

trheyi
Copy link
Contributor

@trheyi trheyi commented Jan 17, 2025

Changes

  • Added vision support capabilities to Assistant
  • Improved function call handling
  • Updated message processing for better type safety
  • Enhanced image handling and upload support

Why

These updates make the Neo API more robust and flexible, especially for vision-related tasks and function calls.

- Updated streamChat method to utilize content.Type for function handling, enhancing the interaction with function calls.
- Improved the String method in Content struct to handle function arguments more robustly, including JSON unmarshalling for completed content.
- Set default message type to "text" in NewOpenAI function, ensuring consistent message processing.

These changes enhance the flexibility and maintainability of the Neo API, paving the way for improved assistant functionalities and message management.
…ling

- 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.
@trheyi trheyi merged commit a77cc6c into YaoApp:main Jan 17, 2025
1 of 2 checks passed
Copy link

Thank you for the PR! The db: SQLite3 redis: 4 mongo: 6.0 test workflow is running, the results of the run will be commented later.

Copy link

Thank you for the PR! The db: MySQL5.7 redis: 5 mongo: 6.0 test workflow is running, the results of the run will be commented later.

Copy link

Thank you for the PR! The db: SQLite3 redis: 6 mongo: 6.0 test workflow is running, the results of the run will be commented later.

Copy link

Thank you for the PR! The db: SQLite3 redis: 5 mongo: 6.0 test workflow is running, the results of the run will be commented later.

Copy link

Thank you for the PR! The db: MySQL8.0 redis: 5 mongo: 6.0 test workflow is running, the results of the run will be commented later.

Copy link

Thank you for the PR! The db: MySQL8.0 redis: 6 mongo: 6.0 test workflow is running, the results of the run will be commented later.

Copy link

Thank you for the PR! The db: MySQL5.7 redis: 4 mongo: 6.0 test workflow is running, the results of the run will be commented later.

Copy link

Thank you for the PR! The db: MySQL8.0 redis: 4 mongo: 6.0 test workflow is running, the results of the run will be commented later.

Copy link

Thank you for the PR! The db: MySQL5.7 redis: 6 mongo: 6.0 test workflow is running, the results of the run will be commented later.

Copy link

✨DONE✨ db: SQLite3 redis: 6 mongo: 6.0 passed.

Copy link

✨DONE✨ db: SQLite3 redis: 4 mongo: 6.0 passed.

Copy link

✨DONE✨ db: MySQL5.7 redis: 5 mongo: 6.0 passed.

Copy link

✨DONE✨ db: MySQL8.0 redis: 5 mongo: 6.0 passed.

Copy link

✨DONE✨ db: MySQL8.0 redis: 6 mongo: 6.0 passed.

Copy link

✨DONE✨ db: MySQL5.7 redis: 4 mongo: 6.0 passed.

Copy link

✨DONE✨ db: MySQL5.7 redis: 6 mongo: 6.0 passed.

Copy link

✨DONE✨ db: MySQL8.0 redis: 4 mongo: 6.0 passed.

Copy link

✨DONE✨ db: SQLite3 redis: 5 mongo: 6.0 passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant