Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🗣️ fix: Azure OpenAI STT #3731

Merged
merged 4 commits into from
Aug 30, 2024
Merged

Conversation

maxesse
Copy link
Contributor

@maxesse maxesse commented Aug 21, 2024

Pull Request Template

⚠️ Before Submitting a PR, Please Review:

  • Please ensure that you have thoroughly read and understood the Contributing Docs before submitting your Pull Request.

⚠️ Documentation Updates Notice:

  • Kindly note that documentation updates are managed in this repository: librechat.ai

Summary

The issue causing 424 errors (failed dependency) when using STT against Azure OpenAI is that the FormData object is being created in a Node.js environment, which doesn't have native support for FormData or Blob.
To fix this, we should use a Node.js-compatible form-data library.

Change Type

Please delete any irrelevant options.

  • Bug fix (non-breaking change which fixes an issue)

Testing

Use a standard working STT config with whisper and the 2024-05-01-preview api version, now the STT file gets uploaded and converted into a prompt successfully.

Test Configuration:

Checklist

Please delete any irrelevant options.

  • My code adheres to this project's style guidelines
  • I have performed a self-review of my own code
  • I have commented in any complex areas of my code
  • I have made pertinent documentation changes
  • My changes do not introduce new warnings
  • Local unit tests pass with my changes

@danny-avila
Copy link
Owner

Looks good! Will review/merge after today

@maxesse
Copy link
Contributor Author

maxesse commented Aug 26, 2024

Amazing, thank you!!

@danny-avila danny-avila changed the title Fix for Azure OpenAI STT 🗣️ fix: Azure OpenAI STT Aug 30, 2024
@danny-avila danny-avila merged commit 63b80c3 into danny-avila:main Aug 30, 2024
1 check passed
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.

2 participants