yym68686 / uni-api

This is a project that unifies the management of LLM APIs. It can call multiple backend services through a unified API interface, convert them to the OpenAI format uniformly, and support load balancing. Currently supported backend services include: OpenAI, Anthropic, DeepBricks, OpenRouter, Gemini, Vertex, etc.
323 stars 40 forks source link

feat: add TextToSpeechRequest model and implement audio speech endpoi… #14

Closed BenedictKing closed 4 weeks ago

BenedictKing commented 1 month ago

佬友好

我自己加了tts-1等接口的支持,目前卡在从外部api返回语音数据后,这些数据在
wrapped_generator, first_response_time = await error_handling_wrapper(generator) 处理出错,应该是byte数据不能用unicode解码,这里该怎么处理我就不知道了

yym68686 commented 4 weeks ago

感谢贡献代码,代码大部分看起来似乎没有问题,看起来跟我自己写的差不多,应该还有一些问题没有解决。所以:

  1. 先看看我评论的这一行,代码里面没用到 logger,删掉这一行。
  2. 你自己创建一个新的分支,名字随便取,tts-dev 之类的就行。发起 pr,我会合并后,我在本地帮你调试一下,完成后给你的代码合并到主分支。