feat: model category

This commit is contained in:
jialin
2024-12-27 19:12:51 +08:00
parent 9f40e2c71e
commit b4e30565d2
16 changed files with 68 additions and 56 deletions
+2 -2
View File
@@ -102,7 +102,7 @@ const Playground: React.FC = () => {
const getTextToSpeechModels = async () => {
try {
const params = {
text_to_speech: true
categories: 'text_to_speech'
};
const res = await queryModelsList(params);
const list = _.map(res.data || [], (item: any) => {
@@ -120,7 +120,7 @@ const Playground: React.FC = () => {
const getSpeechToText = async () => {
try {
const params = {
speech_to_text: true
categories: 'speech_to_text'
};
const res = await queryModelsList(params);
const list = _.map(res.data || [], (item: any) => {