fix: pydantic2 error (#5172)

This commit is contained in:
takatost 2024-06-14 03:05:04 +08:00 committed by GitHub
commit 415022aa14
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 5 additions and 5 deletions

View file

@ -313,7 +313,7 @@ class GoogleLargeLanguageModel(LargeLanguageModel):
delta=LLMResultChunkDelta(
index=index,
message=assistant_prompt_message,
finish_reason=chunk.candidates[0].finish_reason,
finish_reason=str(chunk.candidates[0].finish_reason),
usage=usage
)
)