Преглед на файлове

Chore/delete chunk decode error alert (#2500)

Chenhe Gu преди 1 година
родител
ревизия
5031d64e28
променени са 1 файла, в които са добавени 0 реда и са изтрити 1 реда
  1. 0 1
      api/core/model_runtime/model_providers/openai_api_compatible/llm/llm.py

+ 0 - 1
api/core/model_runtime/model_providers/openai_api_compatible/llm/llm.py

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