We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b0abbc commit 815e76fCopy full SHA for 815e76f
src/routes/api/models/+server.ts
@@ -10,9 +10,9 @@ export async function GET() {
10
datasetName: model.datasetName,
11
datasetUrl: model.datasetUrl,
12
displayName: model.displayName,
13
- description: model.description,
+ description: model.description ?? "",
14
logoUrl: model.logoUrl,
15
- promptExamples: model.promptExamples,
+ promptExamples: model.promptExamples ?? [],
16
preprompt: model.preprompt,
17
multimodal: model.multimodal,
18
unlisted: model.unlisted,
0 commit comments