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

Conversation

@timothycarambat
Copy link
Member

Pull Request Type

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

Relevant Issues

resolves #3757

What is in this change?

  • Handle /no_think and otherwise empty thought blocks on reasoning models.

Additional Information

  • use imperative handler to handle thoughtless streaming and complete responses

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

use imperative handler to handle thoughtless streaming and complete responses
@timothycarambat timothycarambat merged commit 84cf6e0 into master May 2, 2025
@timothycarambat timothycarambat deleted the 3757-no-thoughts-handler branch May 2, 2025 23:08
cabwds pushed a commit to cabwds/anything-llm that referenced this pull request Jul 3, 2025
* handle no thoughts in container
use imperative handler to handle thoughtless streaming and complete responses

* option chain
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]: Fix issue with /no_think cases in reasoning models

2 participants