Spaces:
Running
Running
Add logs to tokenizer fetch (#1030)
Browse files- src/lib/server/models.ts +2 -1
src/lib/server/models.ts
CHANGED
@@ -94,7 +94,8 @@ async function getChatPromptRender(
|
|
94 |
throw Error(
|
95 |
"Failed to load tokenizer for model " +
|
96 |
m.name +
|
97 |
-
" consider setting chatPromptTemplate manually or making sure the model is available on the hub."
|
|
|
98 |
);
|
99 |
}
|
100 |
|
|
|
94 |
throw Error(
|
95 |
"Failed to load tokenizer for model " +
|
96 |
m.name +
|
97 |
+
" consider setting chatPromptTemplate manually or making sure the model is available on the hub. Error: " +
|
98 |
+
(e as Error).message
|
99 |
);
|
100 |
}
|
101 |
|