yym68686 commited on
Commit
b40e306
·
1 Parent(s): 7c8f29f

🐛 Bug: Fix the bug that prevents the voice function from being used.

Browse files
Files changed (1) hide show
  1. request.py +1 -1
request.py CHANGED
@@ -1072,7 +1072,7 @@ async def get_dalle_payload(request, engine, provider):
1072
  async def get_whisper_payload(request, engine, provider):
1073
  model = provider['model'][request.model]
1074
  headers = {
1075
- "Content-Type": "multipart/form-data",
1076
  }
1077
  if provider.get("api"):
1078
  headers['Authorization'] = f"Bearer {provider['api'].next()}"
 
1072
  async def get_whisper_payload(request, engine, provider):
1073
  model = provider['model'][request.model]
1074
  headers = {
1075
+ # "Content-Type": "multipart/form-data",
1076
  }
1077
  if provider.get("api"):
1078
  headers['Authorization'] = f"Bearer {provider['api'].next()}"