Open yuanjie-ai opened 7 months ago
好像是不兼容其他tts模型,我把模型重定向为
就正常返回了
如何兼容tts-xx其他自定义或者外部模型的名称呢
{'error': {'message': 'voice must be one of alloy, echo, fable, onyx, nova, shimmer (request id: 202403271429209790993106t2rwL7q)', 'type': 'new_api_error', 'param': '', 'code': 'invalid_field_value'}}
这些限制去了吧
我写的服务tts返回 @router.post("/audio/speech") async def create_speech(request: SpeechCreateRequest): stream = ...
用openai-sdk直接请求是ok的
openai_client.audio.speech.create
但是把服务放进 openai中转 就出问题了 openai.InternalServerError: Error code: 500 - {'error': {'message': "invalid character 'ÿ' looking for beginning of value (request id: 20240327141142148666233MDtYBLb0)", 'type': 'new_api_error', 'param': '', 'code': 'unmarshal_response_body_failed'}}