Qiying Wang

Results 35 issues of Qiying Wang

OpenAI 的新 moderation 模型 ![image](https://github.com/user-attachments/assets/be0863e5-2285-4a82-ba75-507f5db855bc) 自测截图 ![image](https://github.com/user-attachments/assets/ae3051f2-f802-4b94-ab45-d42eb6853450) 参考 - https://platform.openai.com/docs/models#moderation

[//]: # (请按照以下格式关联 issue) [//]: # (请在提交 PR 前确认所提交的功能可用,需要附上截图,谢谢) [//]: # (项目维护者一般仅在周末处理 PR,因此如若未能及时回复希望能理解) [//]: # (开发者交流群:910657413) [//]: # (请在提交 PR 之前删除上面的注释) close #2023 我已确认该 PR 已自测通过,相关截图如下: 默认倍率 ![image](https://github.com/user-attachments/assets/3802a618-3282-43f1-9090-ab5134795757) 自定义倍率配置 ![image](https://github.com/user-attachments/assets/707b671f-3bd3-4af9-9a69-27634f78737a)...

目前 model ratio 和 completion ratio 是集中维护的,这带来几个问题: 1. 不同供应商的同一个模型(例如 llama3)可能名字相同,但是价格不同(例如groq价格低于aws),如何区分并设置不同的费率? 2. GetCompletionRatio 函数冗长,为什么不像 model ratio 一样写一个 map? 更为合理的方案是,参考 ModelList 的维护方法,每个 Adapter 维护一个 RatioMap,在 `DoResponse` 返回 usage 的时候连带 ratio 一起返回,或者为 adapter...

enhancement

OpenAI has released a new model `gpt-4o-audio-preview` which is an end-to-end model for audio input/output. It can be used by chat completion api. Reference: - https://platform.openai.com/docs/guides/audio - https://platform.openai.com/docs/api-reference/chat/create