Renamed hf-api-token to api-token
This commit is contained in:
@@ -64,10 +64,10 @@ class Config:
|
||||
help='LLM engine (default: local, env: SIA_LLM_ENGINE)'
|
||||
)
|
||||
parser.add_argument(
|
||||
'--hf-api-token',
|
||||
'--api-token',
|
||||
type=str,
|
||||
default=os.getenv('SIA_HF_API_TOKEN'),
|
||||
help='Hugging Face access token (env: SIA_HF_API_TOKEN)'
|
||||
default=os.getenv('SIA_API_TOKEN'),
|
||||
help='API access token (env: SIA_API_TOKEN)'
|
||||
)
|
||||
parser.add_argument(
|
||||
'--model',
|
||||
@@ -127,9 +127,9 @@ class Config:
|
||||
return self.args.llm_engine
|
||||
|
||||
@property
|
||||
def hf_api_token(self) -> Optional[str]:
|
||||
"""Hugging Face access token."""
|
||||
return self.args.hf_api_token
|
||||
def api_token(self) -> Optional[str]:
|
||||
"""API access token."""
|
||||
return self.args.api_token
|
||||
|
||||
@property
|
||||
def model(self) -> str:
|
||||
|
||||
Reference in New Issue
Block a user