瀏覽代碼

Fix: local variable referenced before assignment (#6909)

### What problem does this PR solve?

Fix: local variable referenced before assignment. #6803 

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.18.0
Yongteng Lei 6 月之前
父節點
當前提交
a008b38cf5
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      rag/llm/chat_model.py

+ 1
- 1
rag/llm/chat_model.py 查看文件

@@ -211,7 +211,7 @@ class Base(ABC):
# For non-rate limit errors or the last attempt, return an error message
if attempt == self.max_retries - 1:
error_code = ERROR_MAX_RETRIES
return f"{ERROR_PREFIX}: {error_code} - {str(e)}. response: {response}", 0
return f"{ERROR_PREFIX}: {error_code} - {str(e)}", 0

def _wrap_toolcall_message(self, stream):
final_tool_calls = {}

Loading…
取消
儲存