Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
fix undefined
Browse files
src/lib/components/InferencePlayground/inferencePlaygroundUtils.ts
CHANGED
|
@@ -61,5 +61,5 @@ export async function handleNonStreamingResponse(
|
|
| 61 |
}
|
| 62 |
|
| 63 |
export function isSystemPromptSupported(model: ModelEntryWithTokenizer) {
|
| 64 |
-
return model.tokenizerConfig
|
| 65 |
}
|
|
|
|
| 61 |
}
|
| 62 |
|
| 63 |
export function isSystemPromptSupported(model: ModelEntryWithTokenizer) {
|
| 64 |
+
return model.tokenizerConfig?.chat_template?.includes('system');
|
| 65 |
}
|