folder-classifier 0.4.0__tar.gz → 0.4.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: folder-classifier
3
- Version: 0.4.0
3
+ Version: 0.4.2
4
4
  Summary: Deploy folder classifier API to a Ray cluster
5
5
  Author: Crispin Almodovar
6
6
  Author-email:
@@ -18,7 +18,7 @@ class FolderClassifierAPI:
18
18
  self.logger = logging.getLogger(__name__)
19
19
  self.classifier = FolderClassifier(app_name=model_config.app_name, deployment=model_config.deployment, model=model_config.model,
20
20
  fallback_config = model_config.fallback)
21
- self.logger.info(f"Successfully initialized Folder Classifier API using config: {model_config}")
21
+ self.logger.info(f"Successfully initialized Folder Classifier API")
22
22
 
23
23
  @web_api.post("/predict")
24
24
  async def predict(self, request: FolderClassificationRequest) -> FolderClassificationResponse:
@@ -6,6 +6,7 @@ class FallbackConfig(BaseModel):
6
6
  openai_base_url: str
7
7
  openai_api_key: Optional[str] = None
8
8
  model: str
9
+ model_config = ConfigDict(extra="forbid")
9
10
 
10
11
 
11
12
  class ModelConfig(BaseModel):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: folder-classifier
3
- Version: 0.4.0
3
+ Version: 0.4.2
4
4
  Summary: Deploy folder classifier API to a Ray cluster
5
5
  Author: Crispin Almodovar
6
6
  Author-email:
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = folder-classifier
3
- version = 0.4.0
3
+ version = 0.4.2
4
4
  author = Crispin Almodovar
5
5
  author_email =
6
6
  description = Deploy folder classifier API to a Ray cluster