feat: use concurrency of 1 by default

This commit is contained in:
arkohut 2024-09-10 00:54:20 +08:00
parent 3a408f0be7
commit f5aae87f40

View File

@ -17,7 +17,7 @@ class VLMSettings(BaseModel):
modelname: str = "moondream"
endpoint: str = "http://localhost:11434"
token: str = ""
concurrency: int = 4
concurrency: int = 1
force_jpeg: bool = False
use_local: bool = True
@ -26,7 +26,7 @@ class OCRSettings(BaseModel):
enabled: bool = True
endpoint: str = "http://localhost:5555/predict"
token: str = ""
concurrency: int = 4
concurrency: int = 1
use_local: bool = True
use_gpu: bool = False
force_jpeg: bool = False
@ -71,7 +71,7 @@ class Settings(BaseSettings):
# Embedding settings
embedding: EmbeddingSettings = EmbeddingSettings()
batchsize: int = 4
batchsize: int = 1
auth_username: str = "admin"
auth_password: SecretStr = SecretStr("changeme")