Fix: Add missing parameter key for LLM calls (#17628)

This commit is contained in:
Lynn
2026-07-31 17:05:40 +08:00
committed by GitHub
parent 0108cdac67
commit 03b7b04e2c
2 changed files with 5 additions and 1 deletions

View File

@@ -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),