fix: use modelscope for sub config

This commit is contained in:
arkohut 2024-09-10 01:59:37 +08:00
parent 513b41e300
commit 6bbf1a8a68

View File

@ -20,6 +20,7 @@ class VLMSettings(BaseModel):
concurrency: int = 1
force_jpeg: bool = False
use_local: bool = True
use_modelscope: bool = False
class OCRSettings(BaseModel):
@ -37,6 +38,7 @@ class EmbeddingSettings(BaseModel):
num_dim: int = 768
endpoint: str = "http://localhost:11434/api/embed"
model: str = "jinaai/jina-embeddings-v2-base-zh"
use_modelscope: bool = False
class Settings(BaseSettings):
@ -51,8 +53,6 @@ class Settings(BaseSettings):
default_library: str = "screenshots"
screenshots_dir: str = os.path.join(base_dir, "screenshots")
use_modelscope: bool = False
typesense_host: str = "localhost"
typesense_port: str = "8108"
typesense_protocol: str = "http"