chore: audio api adjust

This commit is contained in:
jialin
2024-11-27 19:35:19 +08:00
parent 230120fff5
commit 60c92b8a98
12 changed files with 73 additions and 67 deletions
@@ -157,11 +157,10 @@ const GroundLeft: React.FC<MessageProps> = forwardRef((props, ref) => {
const handleSelectModel = useCallback(
async (value: string) => {
const data: any = modelList.find((item) => item.value === value);
if (!data) return;
if (!value) return;
try {
const res = await queryModelVoices({
name: data?.modelId as string
model: value
});
const voiceList = _.map(res.voices || [], (item: any) => {
return {
@@ -300,7 +299,6 @@ const GroundLeft: React.FC<MessageProps> = forwardRef((props, ref) => {
clearAll={handleClear}
shouldResetMessage={false}
submitIcon={<SendOutlined></SendOutlined>}
modelList={modelList}
/>
</div>
</div>