mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-23 00:17:25 +08:00
[Feature] Enable FastDeploy to support adding the “--api-key” authentication parameter. (#4806)
* add api key initial commit * add unit test * modify unit test * move middleware to a single file and add unit tests
This commit is contained in:
@@ -35,6 +35,7 @@ with (
|
||||
scheduler_db=None,
|
||||
scheduler_password=None,
|
||||
scheduler_topic=None,
|
||||
api_key=None,
|
||||
)
|
||||
mock_parse_args.return_value = mock_args
|
||||
mock_retrive_model.return_value = "test-model" # Just return the model name without downloading
|
||||
|
||||
Reference in New Issue
Block a user