fix: lint ruff

This commit is contained in:
Alex
2025-04-14 23:49:40 +01:00
parent 02934452d6
commit ad610d2f90

View File

@@ -308,8 +308,6 @@ class GoogleLLM(BaseLLM):
config=config, config=config,
) )
# Track if we've seen any function calls
function_call_seen = False
for chunk in response: for chunk in response:
if hasattr(chunk, "candidates") and chunk.candidates: if hasattr(chunk, "candidates") and chunk.candidates:
@@ -317,7 +315,6 @@ class GoogleLLM(BaseLLM):
if candidate.content and candidate.content.parts: if candidate.content and candidate.content.parts:
for part in candidate.content.parts: for part in candidate.content.parts:
if part.function_call: if part.function_call:
function_call_seen = True
yield part yield part
elif part.text: elif part.text:
yield part.text yield part.text