mirror of
https://github.com/langbot-app/LangBot.git
synced 2025-11-25 11:29:39 +08:00
* feat: add embeddings model management backend support Co-Authored-By: Junyan Qin <Chin> <rockchinq@gmail.com> * feat: add embeddings model management frontend support Co-Authored-By: Junyan Qin <Chin> <rockchinq@gmail.com> * chore: revert HttpClient URL to production setting Co-Authored-By: Junyan Qin <Chin> <rockchinq@gmail.com> * refactor: integrate embeddings models into models page with tabs Co-Authored-By: Junyan Qin <Chin> <rockchinq@gmail.com> * perf: move files * perf: remove `s` * feat: allow requester to declare supported types in manifest * feat(embedding): delete dimension and encoding format * feat: add extra_args for embedding moels * perf: i18n ref * fix: linter err * fix: lint err * fix: linter err --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Junyan Qin <Chin> <rockchinq@gmail.com>
28 lines
495 B
Python
28 lines
495 B
Python
from __future__ import annotations
|
|
|
|
import typing
|
|
|
|
import pydantic.v1 as pydantic
|
|
|
|
from . import requester
|
|
from . import token
|
|
|
|
|
|
class LLMModelInfo(pydantic.BaseModel):
|
|
"""模型"""
|
|
|
|
name: str
|
|
|
|
model_name: typing.Optional[str] = None
|
|
|
|
token_mgr: token.TokenManager
|
|
|
|
requester: requester.ProviderAPIRequester
|
|
|
|
tool_call_supported: typing.Optional[bool] = False
|
|
|
|
vision_supported: typing.Optional[bool] = False
|
|
|
|
class Config:
|
|
arbitrary_types_allowed = True
|