Fix: Handle empty server response in API call #4379
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
在这次提交中,我针对本地使用的模型在处理问答提交时可能出现的问题进行了改善。具体场景是:当用户提交一个问题后,由于模型原因已经结束了但是未能返回任何信息时,界面会持续显示加载状态,而无任何反馈给用户。为了解决这一问题,本次提交增加了对已结束但返回结果长度为零情况的处理逻辑