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
pydantic.errors.PydanticUserError: A non-annotated attribute was detected: top_p = 0.9. All model fields require a type annotation; if top_p is not meant to be a field, you may be able to resolve this error by annotating it as a ClassVar or updating model_config['ignored_types'].
class Qwen(LLM, ABC):
max_token: int = 10000
temperature: float = 0.01
top_p = 0.9
history_len: int = 3
期望行为 | Expected Behavior
class Qwen(LLM, ABC):
max_token: int = 10000
temperature: float = 0.01
top_p: float = 0.9
history_len: int = 3
是否已有关于该错误的issue或讨论? | Is there an existing issue / discussion for this?
该问题是否在FAQ中有解答? | Is there an existing answer for this in FAQ?
当前行为 | Current Behavior
https://qwen.readthedocs.io/en/latest/framework/Langchain.html
pydantic.errors.PydanticUserError: A non-annotated attribute was detected:
top_p = 0.9
. All model fields require a type annotation; iftop_p
is not meant to be a field, you may be able to resolve this error by annotating it as aClassVar
or updatingmodel_config['ignored_types']
.期望行为 | Expected Behavior
复现方法 | Steps To Reproduce
just copy paste the example in the link.
https://qwen.readthedocs.io/en/latest/framework/Langchain.html
运行环境 | Environment
备注 | Anything else?
No response
The text was updated successfully, but these errors were encountered: