mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 08:33:20 +00:00
fix: lint ruff
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user