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

Conversation

@timothycarambat
Copy link
Member

Pull Request Type

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

Relevant Issues

resolves #2108

What is in this change?

  • Enforces validation on response.text and prompt for history creation to prevent collision with other prompt formatting tools we apply per-model.

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

@timothycarambat timothycarambat merged commit c8fe254 into master Aug 15, 2024
@timothycarambat timothycarambat deleted the 2108-assert-prompt-and-response-type branch August 15, 2024 21:22
cabwds pushed a commit to cabwds/anything-llm that referenced this pull request Jul 3, 2025
* Omit invalid `response.text` values and `prompts`
resolves Mintplex-Labs#2108

* remove import
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.

[BUG]: Anthropic Error:invalid_request_error messages: text content blocks must contain non-whitespace text

2 participants