File tree Expand file tree Collapse file tree
medcat-den/src/medcat_den Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 - ' medcat-embedding-linker/v*.*.*'
88 pull_request :
99 paths :
10- - ' medcat-plugins/medcat- embedding-linker/**'
10+ - ' medcat-plugins/embedding-linker/**'
1111 - ' .github/workflows/medcat-embedding-linker**'
1212
1313permissions :
Original file line number Diff line number Diff line change 1- from typing import Union
1+ from typing import Union , Optional
22from pathlib import Path
33
44from pydantic import BaseModel
@@ -16,7 +16,7 @@ class LocalDenConfig(DenConfig):
1616
1717class RemoteDenConfig (DenConfig ):
1818 host : str
19- credentials : dict
19+ credentials : Optional [ dict ] = None
2020 allow_local_fine_tune : bool
2121 allow_push_fine_tuned : bool
2222
Original file line number Diff line number Diff line change @@ -96,8 +96,6 @@ def _init_den_cnf(
9696 host = host or os .getenv (MEDCAT_DEN_REMOTE_HOST )
9797 if not host :
9898 raise ValueError ("Need to specify a host for remote den" )
99- if not credentials :
100- raise ValueError ("Need to specify credentials for remote den" )
10199 # NOTE: these will default to False when nothing is specified
102100 # because "None" is not in ALLOW_OPTION_LOWERCASE
103101 allow_local_fine_tune = str (
You can’t perform that action at this time.
0 commit comments