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

为什么换了模型,还是走whisper #2047

Closed
SDAIer opened this issue Jul 15, 2024 · 3 comments
Closed

为什么换了模型,还是走whisper #2047

SDAIer opened this issue Jul 15, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@SDAIer
Copy link

SDAIer commented Jul 15, 2024

本地部署了whisper,接入onapi,fastgpt语音测试正常,只是识别效果很差。
发现了奇怪问题:
使用curl无论是向whisper 3003端口进行测试,还是向oneapi 3001端口测试时,model随便写什么都能输出文本内容,而且都是调用的whisper-1

而且我希望使用阿里的语音模型,日志显示一直走whisper

wihsper 3003端口
curl http://127.0.0.1:3003/v1/audio/transcriptions
-H "Authorization: Bearer sk-tarzan"
-H "Content-Type: multipart/form-data"
-F model="paraformer-realtime-v1-XXXXXX"
-F file="@/home/ftpzjp/1.mp3"
-F response_format=text
image

oneapi 3001端口
curl http://127.0.0.1:3001/v1/audio/transcriptions
-H "Authorization: Bearer sk-fastgpt"
-H "Content-Type: multipart/form-data"
-F model="whisper-1"
-F file="@/home/ftpzjp/1.mp3"
-F response_format=text

image

config.json改了阿里是语音模型,oneapi在原来阿里渠道里增加了阿里语音模型,但是不生效,一直走whisper-1。
请问我哪里做的有问题吗

image

@SDAIer SDAIer added the bug Something isn't working label Jul 15, 2024
@SDAIer SDAIer changed the title config.json把whisper模型改为阿里的语音模型,加载后还是走whisper 为什么换了模型,还是走whisper Jul 17, 2024
@SDAIer
Copy link
Author

SDAIer commented Jul 17, 2024

@songquanpeng

@c121914yu
Copy link
Collaborator

@eric0095
Copy link

eric0095 commented Sep 3, 2024

怎么解决这个问题呢? 默认也是走whisper
$ curl --request POST
--url http://127.0.0.1:3001/v1/audio/transcriptions
--header 'accept: application/json'
--header 'authorization: Bearer aaa'
--header 'content-type: multipart/form-data'
--form file='@bbj.mp3'
--form model=iic/SenseVoiceSmall
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 993k 100 132 100 993k 313 2359k --:--:-- --:--:-- --:--:-- 2359k{"error":{"message":"该令牌无权使用模型:whisper-1 (request id: 2024090310390341030820339103078)","type":"one_api_error"}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants