mishig HF staff commited on
Commit
e9a4671
1 Parent(s): dd66861

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.chat_template?.includes('system');
65
  }
 
61
  }
62
 
63
  export function isSystemPromptSupported(model: ModelEntryWithTokenizer) {
64
+ return model.tokenizerConfig?.chat_template?.includes('system');
65
  }