mirror of
https://github.com/Nezumi-2711/9router.git
synced 2026-09-22 20:00:47 +00:00
Feat : tts
This commit is contained in:
@@ -157,7 +157,7 @@ export default function ModelsCard({ providerId, kindFilter }) {
|
||||
const res = await fetch("/api/models/test", {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify({ model: `${providerAlias}/${modelId}` }),
|
||||
body: JSON.stringify({ model: `${providerAlias}/${modelId}`, kind: kindFilter }),
|
||||
});
|
||||
const data = await res.json();
|
||||
setModelTestResults((prev) => ({ ...prev, [modelId]: data.ok ? "ok" : "error" }));
|
||||
|
||||
Reference in New Issue
Block a user