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

Refactor Neo API assistant message handling and content processing #826

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

trheyi
Copy link
Contributor

@trheyi trheyi commented Jan 22, 2025

  • Enhanced message generation by introducing NewHistory and NewContent methods for improved handling of message content and history.
  • Updated the withHistory method to utilize the new NewHistory method, streamlining the addition of historical messages.
  • Improved the call method to conditionally save message history based on input parameters, enhancing flexibility in message management.
  • Refactored the String method in the Message struct to better represent message types and properties, improving serialization consistency.

These changes enhance the maintainability and robustness of the Neo API assistant, paving the way for improved message handling and content processing.

- Enhanced message generation by introducing NewHistory and NewContent methods for improved handling of message content and history.
- Updated the withHistory method to utilize the new NewHistory method, streamlining the addition of historical messages.
- Improved the call method to conditionally save message history based on input parameters, enhancing flexibility in message management.
- Refactored the String method in the Message struct to better represent message types and properties, improving serialization consistency.

These changes enhance the maintainability and robustness of the Neo API assistant, paving the way for improved message handling and content processing.
@trheyi trheyi merged commit a8b8224 into YaoApp:main Jan 22, 2025
1 of 2 checks passed
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: 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: 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: 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: 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: 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: 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: 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: 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: 4 mongo: 6.0 passed.

Copy link

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

Copy link

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

Copy link

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

Copy link

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

Copy link

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

Copy link

✨DONE✨ db: MySQL8.0 redis: 4 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