mirror of
https://github.com/block/goose.git
synced 2026-07-17 12:56:20 +02:00
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()?;
|
||||
|
||||
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):")
|
||||
.placeholder("model-a, model-b, model-c")
|
||||
|
||||
Reference in New Issue
Block a user