这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@timothycarambat
Copy link
Member

Pull Request Type

  • ✨ feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

Relevant Issues

resolves #1983

What is in this change?

Enabled the user to define the timeout value between response streams so as to not prematurely close the OpenRouter stream. The reason this exists is that OpenRouter models mostly do not return the finish_reason response reliably which leads to hanging responses unless we force close it.

On slower connections to 500ms may be too little for most connections.

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 5e73dce into master Jul 29, 2024
@timothycarambat timothycarambat deleted the 1983-openrouter-config-timeout branch July 29, 2024 18:49
@PierrunoYT
Copy link

grafik

@PierrunoYT
Copy link

@timothycarambat How can I try this version?

DipFlip pushed a commit to DipFlip/anything-llm that referenced this pull request Aug 4, 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

Development

Successfully merging this pull request may close these issues.

[BUG]: OpenRouter always cut off it's response

3 participants