mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-08 23:06:03 +00:00
hotfix: 针对python3.9的兼容性
This commit is contained in:
@@ -11,7 +11,7 @@ from ..provider import entities as llm_entities
|
||||
|
||||
class BaseEventModel(pydantic.BaseModel):
|
||||
|
||||
query: core_entities.Query | None
|
||||
query: typing.Union[core_entities.Query, None]
|
||||
|
||||
class Config:
|
||||
arbitrary_types_allowed = True
|
||||
|
||||
Reference in New Issue
Block a user