You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "E:/PythonCodes/spark_lite/demo01.py", line 3, in <module>
from sparkai.llm.llm import ChatSparkLLM, ChunkPrintHandler
File "C:\ProgramData\Anaconda3\envs\fastapi\lib\site-packages\sparkai\llm\llm.py", line 20, in <module>
from sparkai.core.callbacks import (
File "C:\ProgramData\Anaconda3\envs\fastapi\lib\site-packages\sparkai\core\callbacks\__init__.py", line 13, in <module>
from sparkai.core.callbacks.manager import (
File "C:\ProgramData\Anaconda3\envs\fastapi\lib\site-packages\sparkai\core\callbacks\manager.py", line 39, in <module>
from sparkai.core.messages import BaseMessage, get_buffer_string
File "C:\ProgramData\Anaconda3\envs\fastapi\lib\site-packages\sparkai\core\messages\__init__.py", line 3, in <module>
from sparkai.core.messages.ai import AIMessage, AIMessageChunk
File "C:\ProgramData\Anaconda3\envs\fastapi\lib\site-packages\sparkai\core\messages\ai.py", line 10, in <module>
class AIMessage(BaseMessage):
File "pydantic\main.py", line 299, in pydantic.main.ModelMetaclass.__new__
File "pydantic\fields.py", line 411, in pydantic.fields.ModelField.infer
File "pydantic\fields.py", line 342, in pydantic.fields.ModelField.__init__
File "pydantic\fields.py", line 451, in pydantic.fields.ModelField.prepare
File "pydantic\fields.py", line 550, in pydantic.fields.ModelField._type_analysis
File "C:\ProgramData\Anaconda3\envs\fastapi\lib\typing.py", line 774, in __subclasscheck__
return issubclass(cls, self.__origin__)
TypeError: issubclass() arg 1 must be a class
The text was updated successfully, but these errors were encountered:
版本
调用代码
异常报错:
The text was updated successfully, but these errors were encountered: