added rules for together.ai

This commit is contained in:
Mick Grove 2025-08-27 12:20:44 -07:00
commit 8798d799f9
2 changed files with 37 additions and 1 deletions

View file

@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
## [1.46.0]
- Improved rules: AWS, pem
- Added rule for Ollama, Weights and Biases, Cerebras, Friendli, Fireworks.ai, NVIDIA NIM
- Added rule for Ollama, Weights and Biases, Cerebras, Friendli, Fireworks.ai, NVIDIA NIM, together.ai
- Added a new precommit subcommand that installs a git pre-commit hook, prompting or accepting --global/--repo flags to control scope and configuring the hook to run kingfisher --quiet --only-valid --no-update-check
## [1.45.0]

36
data/rules/togetherai.yml Normal file
View file

@ -0,0 +1,36 @@
rules:
- name: Together.ai API Key
id: kingfisher.together.1
pattern: |
(?xi)
\b
(
tgp_v1_[A-Z0-9_-]{43}
)
confidence: medium
min_entropy: 3.0
examples:
- tgp_v1_Tctm6OfOeNkwLIKkyxJxUHIqNKx2AvFr65tQRIOMgzY
- tgp_v1_HgWU7iym2128y2Pdj-7-9kX4W_MSCcIT5EhuY_SmNqc
- tgp_v1_xeybrcbPy2c10JR9eAlkOq1qvPaBXT3ZbXp8yKq1VME
- tgp_v1_yanBH3171P6HAZ01LbzSDlnOiXM3lo_89kG2Gg5yzko
validation:
type: Http
content:
request:
method: GET
url: "https://api.together.xyz/v1/models"
headers:
Authorization: "Bearer {{ TOKEN }}"
Accept: "application/json"
response_matcher:
- report_response: true
- type: StatusMatch
status: [200]
- type: WordMatch
words:
- '"id":'
- '"object":'
references:
- https://docs.together.ai/reference/authentication
- https://docs.together.ai/reference/models-list