Voice library support dashscope
This commit is contained in:
@@ -60,6 +60,9 @@ const mapVoice = (raw: AnyRecord): Voice => ({
|
||||
name: readField(raw, ['name'], ''),
|
||||
vendor: ((): string => {
|
||||
const vendor = String(readField(raw, ['vendor'], '')).trim().toLowerCase();
|
||||
if (vendor === 'dashscope') {
|
||||
return 'DashScope';
|
||||
}
|
||||
if (vendor === 'siliconflow' || vendor === '硅基流动' || vendor === 'openai-compatible') {
|
||||
return 'OpenAI Compatible';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user