mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-01 13:33:48 +08:00
Fix: Add missing parameter key for LLM calls (#17628)
This commit is contained in:
@@ -396,6 +396,7 @@ class Base(ABC):
|
||||
hist.append(
|
||||
{
|
||||
"role": "assistant",
|
||||
"content": None,
|
||||
"tool_calls": [
|
||||
{
|
||||
"index": getattr(tool_call, "index", None),
|
||||
@@ -425,6 +426,7 @@ class Base(ABC):
|
||||
hist.append(
|
||||
{
|
||||
"role": "assistant",
|
||||
"content": None,
|
||||
"tool_calls": [
|
||||
{
|
||||
"index": getattr(tc, "index", None),
|
||||
@@ -1884,6 +1886,7 @@ class LiteLLMBase(ABC):
|
||||
def _append_history(self, hist, tool_call, tool_res, reasoning_content=None):
|
||||
assistant_msg = {
|
||||
"role": "assistant",
|
||||
"content": None,
|
||||
"tool_calls": [
|
||||
{
|
||||
"index": getattr(tool_call, "index", None),
|
||||
@@ -1914,6 +1917,7 @@ class LiteLLMBase(ABC):
|
||||
"""
|
||||
assistant_msg = {
|
||||
"role": "assistant",
|
||||
"content": None,
|
||||
"tool_calls": [
|
||||
{
|
||||
"index": getattr(tc, "index", None),
|
||||
|
||||
Reference in New Issue
Block a user