File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 3838 python app/cli/cli.py export-model-apis --model-type anoncat --add-training-apis --add-evaluation-apis --add-previews-apis --exclude-metacat-training --exclude-unsupervised-training
3939 python app/cli/cli.py export-model-apis --model-type transformers_deid --add-training-apis --add-evaluation-apis --add-previews-apis --exclude-metacat-training --exclude-unsupervised-training
4040 python app/cli/cli.py export-model-apis --model-type huggingface_ner --add-training-apis --add-evaluation-apis --add-previews-apis --exclude-metacat-training
41- python app/cli/cli.py export-model-apis --model-type huggingface_llm
41+ python app/cli/cli.py export-model-apis --model-type huggingface_llm --add-training-apis --add-evaluation-apis --exclude-metacat-training
4242 python app/cli/cli.py export-openapi-spec
4343 git fetch origin gh-pages:gh-pages
4444 git checkout gh-pages
Original file line number Diff line number Diff line change @@ -451,9 +451,9 @@ def generate_api_doc_per_model(
451451 config .ENABLE_PREVIEWS_APIS = "true" if add_previews_apis else "false"
452452 config .AUTH_USER_ENABLED = "true" if add_user_authentication else "false"
453453
454- model_service_dep = ModelServiceDep (model_type , config , model_name or model_type )
454+ model_service_dep = ModelServiceDep (model_type , config , model_name or model_type . value )
455455 cms_globals .model_service_dep = model_service_dep
456- doc_name = f"{ model_name or model_type } _model_apis.json"
456+ doc_name = f"{ model_type . value } _model_apis.json"
457457
458458 if model_type == ModelType .HUGGINGFACE_LLM :
459459 app = get_generative_server (config )
You can’t perform that action at this time.
0 commit comments