Skip to content

Commit

Permalink
fix: redact '--key' cli parameter from prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
Realiserad committed Aug 22, 2024
1 parent 301619c commit bd0a2e1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ repos:
hooks:
- id: bump-version
name: Bump version
entry: ops/bump-version.fish
entry: ./ops/bump-version.fish
language: script
stages: [commit-msg]
ci:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "fish_ai"
version = "0.9.5"
version = "0.9.6"
authors = [{ name = "Bastian Fredriksson", email = "realiserad@gmail.com" }]
description = "Provides core functionality for fish-ai, an AI plugin for the fish shell."
readme = "README.md"
Expand Down
1 change: 1 addition & 0 deletions src/fish_ai/redact.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def redact(messages):
def redact_content(content):
r = content
r = redact_cli_parameter('api-key', r)
r = redact_cli_parameter('key', r)
r = redact_cli_parameter('password', r)
r = redact_cli_parameter('passphrase', r)
r = redact_cli_parameter('secret', r)
Expand Down

0 comments on commit bd0a2e1

Please sign in to comment.