fix: linter

pull/21565/head
Yeuoly 11 months ago
parent e5719de784
commit cc19f23230

@ -150,9 +150,9 @@ def invoke_llm_with_structured_output(
else: else:
def generator() -> Generator[LLMResultChunkWithStructuredOutput, None, None]: def generator() -> Generator[LLMResultChunkWithStructuredOutput, None, None]:
result_text = "" result_text: str = ""
prompt_messages = [] prompt_messages: Sequence[PromptMessage] = []
system_fingerprint = None system_fingerprint: Optional[str] = None
for event in llm_result: for event in llm_result:
if isinstance(event, LLMResultChunk): if isinstance(event, LLMResultChunk):
if isinstance(event.delta.message.content, str): if isinstance(event.delta.message.content, str):

Loading…
Cancel
Save