fix(build): Fix build from source error

This commit is contained in:
Fangyin Cheng 2025-03-12 10:26:37 +08:00
parent 295d673396
commit 1a2a8a6f43
2 changed files with 2 additions and 1 deletions

View File

@ -28,6 +28,7 @@ RUN if [ "$USE_TSINGHUA_UBUNTU" = "true" ]; then \
rm -rf /var/lib/apt/lists/* && \
apt-get update && apt-get install -y \
python${PYTHON_VERSION} \
python${PYTHON_VERSION}-dev \
python${PYTHON_VERSION}-venv \
python3-pip \
python3-dev \

View File

@ -374,7 +374,7 @@ class BaseChat(ABC):
ai_response_text, view_message = await self._handle_final_output(
final_output, incremental=incremental
)
full_text = view_message
full_text = view_message if text_output else final_output.text
# Return the incremental text
delta_text = full_text[len(previous_text) :]
result_text = delta_text if incremental else full_text