Files
LangBot/pkg/provider/modelmgr/entities.py

28 lines
463 B
Python
Raw Normal View History

2024-01-29 21:22:27 +08:00
from __future__ import annotations
import typing
import pydantic
from . import api
from . import token
class LLMModelInfo(pydantic.BaseModel):
"""模型"""
name: str
2024-01-30 16:29:54 +08:00
model_name: typing.Optional[str] = None
token_mgr: token.TokenManager
requester: api.LLMAPIRequester
2024-01-29 21:22:27 +08:00
tool_call_supported: typing.Optional[bool] = False
2024-05-16 20:11:54 +08:00
vision_supported: typing.Optional[bool] = False
class Config:
arbitrary_types_allowed = True