Skip to content

Commit

Permalink
fix handling of incomplete requests
Browse files Browse the repository at this point in the history
  • Loading branch information
amakropoulos committed Sep 18, 2024
1 parent 9081e36 commit b1bd97c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Runtime/LLMCharacter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,10 @@ protected async Task<Ret> PostRequestRemote<Res, Ret>(string json, string endpoi
// Check if progress has changed
if (currentProgress != lastProgress && callback != null)
{
callback?.Invoke(ConvertContent(request.downloadHandler.text, getContent));
try
{
callback?.Invoke(ConvertContent(request.downloadHandler.text, getContent));
} catch (Exception) {}
lastProgress = currentProgress;
}
// Wait for the next frame
Expand Down

0 comments on commit b1bd97c

Please sign in to comment.