Allow empty API Key when registering custom provider (#4977)
Signed-off-by: Rodolfo Olivieri <rodolfo.olivieri3@gmail.com>
This commit is contained in:
@@ -1940,7 +1940,10 @@ fn add_provider() -> Result<(), Box<dyn Error>> {
|
|||||||
})
|
})
|
||||||
.interact()?;
|
.interact()?;
|
||||||
|
|
||||||
let api_key: String = cliclack::password("API key:").mask('▪').interact()?;
|
let api_key: String = cliclack::password("API key:")
|
||||||
|
.allow_empty()
|
||||||
|
.mask('▪')
|
||||||
|
.interact()?;
|
||||||
|
|
||||||
let models_input: String = cliclack::input("Available models (seperate with commas):")
|
let models_input: String = cliclack::input("Available models (seperate with commas):")
|
||||||
.placeholder("model-a, model-b, model-c")
|
.placeholder("model-a, model-b, model-c")
|
||||||
|
|||||||
Reference in New Issue
Block a user