mirror of
https://github.com/tcsenpai/pensieve.git
synced 2025-06-06 03:05:25 +00:00
fix: use modelscope for sub config
This commit is contained in:
parent
513b41e300
commit
6bbf1a8a68
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user