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

Conversation

@shatfield4
Copy link
Collaborator

Pull Request Type

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

Relevant Issues

resolves #1773

What is in this change?

  • Patch a bug in the OpenAI compatible developer API endpoints where if the workspace was in query mode, a refusal message was sent every time
  • Fixed by spreading the vectorSearchResults into the contextTexts and sources array when checking if there are any valid search results

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

@shatfield4 shatfield4 linked an issue Jun 28, 2024 that may be closed by this pull request
@timothycarambat timothycarambat merged commit 910eb36 into master Jun 28, 2024
@timothycarambat timothycarambat deleted the 1773-bug-api-openai-chat-not-working-when-workspace-in-mode-query branch June 28, 2024 21:23
franzbischoff pushed a commit to franzbischoff/anything-llm that referenced this pull request Jul 3, 2024
…intplex-Labs#1789)

fix query mode always responding with refusal message on develop api openai compatible endpoints
CrackerCat pushed a commit to CrackerCat/anything-llm that referenced this pull request Jul 31, 2024
…intplex-Labs#1789)

fix query mode always responding with refusal message on develop api openai compatible endpoints
CrackerCat pushed a commit to CrackerCat/anything-llm that referenced this pull request Aug 1, 2024
…intplex-Labs#1789)

fix query mode always responding with refusal message on develop api openai compatible endpoints
CrackerCat pushed a commit to CrackerCat/anything-llm that referenced this pull request Aug 2, 2024
…intplex-Labs#1789)

fix query mode always responding with refusal message on develop api openai compatible endpoints
CrackerCat pushed a commit to CrackerCat/anything-llm that referenced this pull request Aug 3, 2024
…intplex-Labs#1789)

fix query mode always responding with refusal message on develop api openai compatible endpoints
cabwds pushed a commit to cabwds/anything-llm that referenced this pull request Jul 3, 2025
…intplex-Labs#1789)

fix query mode always responding with refusal message on develop api openai compatible endpoints
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]: API OpenAi chat not working when workspace in mode 'query'

3 participants