θΏ™ζ˜―indexlocζδΎ›ηš„ζœεŠ‘οΌŒδΈθ¦θΎ“ε…₯任何密码
Skip to content

Conversation

@shatfield4
Copy link
Collaborator

Pull Request Type

  • ✨ feat
  • πŸ› fix
  • ♻️ refactor
  • πŸ’„ style
  • πŸ”¨ chore
  • πŸ“ docs

Relevant Issues

resolves #1328

What is in this change?

  • Fix a bug where extremely long messages get removed from the messages array when sent to the gemini ai provider
  • A validation was created to ensure the schema is valid because gemini expects every user message to be followed by a model message

Additional Information

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

…with-role-user-cant-follow-user-valid-previous-roles-usermodelfunctionmodelmodeluserfunctionsystem
@timothycarambat timothycarambat merged commit 948ac8a into master May 11, 2024
@timothycarambat timothycarambat deleted the 1328-bug-googlegenerativeai-error-content-with-role-user-cant-follow-user-valid-previous-roles-usermodelfunctionmodelmodeluserfunctionsystem branch May 11, 2024 00:33
CrackerCat pushed a commit to CrackerCat/anything-llm that referenced this pull request Jul 31, 2024
CrackerCat pushed a commit to CrackerCat/anything-llm that referenced this pull request Aug 1, 2024
CrackerCat pushed a commit to CrackerCat/anything-llm that referenced this pull request Aug 2, 2024
CrackerCat pushed a commit to CrackerCat/anything-llm that referenced this pull request Aug 3, 2024
cabwds pushed a commit to cabwds/anything-llm that referenced this pull request Jul 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants