Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cmd/onecli/secrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (c *SecretsListCmd) Run(out *output.Writer) error {
type SecretsCreateCmd struct {
Project string `optional:"" short:"p" help:"Project slug."`
Name string `required:"" help:"Display name for the secret."`
Type string `required:"" help:"Secret type: 'anthropic' or 'generic'."`
Type string `required:"" help:"Secret type: 'anthropic', 'openai', or 'generic'."`
Value string `required:"" help:"Secret value (e.g. API key)."`
HostPattern string `required:"" name:"host-pattern" help:"Host pattern to match (e.g. 'api.anthropic.com')."`
PathPattern string `optional:"" name:"path-pattern" help:"Path pattern to match (e.g. '/v1/*')."`
Expand Down Expand Up @@ -93,8 +93,8 @@ func (c *SecretsCreateCmd) Run(out *output.Writer) error {
}
}

if input.Type != "anthropic" && input.Type != "generic" {
return fmt.Errorf("invalid type %q: must be 'anthropic' or 'generic'", input.Type)
if input.Type != "anthropic" && input.Type != "openai" && input.Type != "generic" {
return fmt.Errorf("invalid type %q: must be 'anthropic', 'openai', or 'generic'", input.Type)
}

if c.DryRun {
Expand Down
Loading