diff --git a/mikupad.html b/mikupad.html index 4a344bd..f6a33e9 100644 --- a/mikupad.html +++ b/mikupad.html @@ -1354,7 +1354,7 @@ if (!res.ok) throw new Error(`HTTP ${res.status}`); for await (const chunk of parseEventStream(res.body)) { - const probs = chunk.completion_probabilities[0].probs; + const probs = chunk.completion_probabilities[0]?.probs; const prob = probs?.find(p => p.tok_str === chunk.content)?.prob; yield { content: chunk.content,