Chore/delete chunk decode error alert (#2500)

This commit is contained in:
Chenhe Gu 2024-02-21 03:17:33 +08:00 committed by GitHub
parent ae3ad59b16
commit 5031d64e28
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -376,7 +376,6 @@ class OAIAPICompatLargeLanguageModel(_CommonOAI_API_Compat, LargeLanguageModel):
chunk_json = json.loads(decoded_chunk) chunk_json = json.loads(decoded_chunk)
# stream ended # stream ended
except json.JSONDecodeError as e: except json.JSONDecodeError as e:
logger.error(f"decoded_chunk error: {e}, delimiter={delimiter}, decoded_chunk={decoded_chunk}")
yield create_final_llm_result_chunk( yield create_final_llm_result_chunk(
index=chunk_index + 1, index=chunk_index + 1,
message=AssistantPromptMessage(content=""), message=AssistantPromptMessage(content=""),