mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-21 00:21:49 +00:00
Fix bad practice: replace real-looking API keys in cache_dashboard comments with example patterns
- Replace high-entropy mock API keys in comments with sk-example-... pattern - Remove unnecessary gitguardian ignore entries for bad practices
This commit is contained in:
parent
e0fc20908f
commit
8b69d7ca48
2 changed files with 7 additions and 23 deletions
|
|
@ -109,20 +109,4 @@ secret:
|
|||
|
||||
- name: Test JWT token pattern
|
||||
match: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9
|
||||
|
||||
# Mock data in cache_dashboard.tsx comments
|
||||
- name: Mock API key in cache_dashboard comments 147dba2181f
|
||||
match: 8c892b51c97ff98b14f17864b89a13c0f4e7ea0c8de739b6acfa1cf9cab4e01d
|
||||
|
||||
- name: Mock API key in cache_dashboard comments 8c23f021d05
|
||||
match: 05681b08b5b2a6d5b3efdcfd8243b92e69715a267f24d105e946656de829de23
|
||||
|
||||
- name: Mock API key in cache_dashboard comments 0ad4b3c03dc
|
||||
match: 42386bbdf8a420ebc43057dcf62c3ab6a78ea9e7a816d465a44d582ad9c245c4
|
||||
|
||||
- name: Mock API key in cache_dashboard comments 034224b36e9
|
||||
match: d700e35089af83d66a6d8a31b09d68e67c883d87b49d2186a9fcbac492ccd8fe
|
||||
|
||||
- name: Mock API key in cache_dashboard comments 4f9c71cce0a
|
||||
match: 119117ac366f569fe34c94ad805b88a5bf02b0d45ef0f2142518fcc7e75364e8
|
||||
|
||||
|
|
|
|||
|
|
@ -162,13 +162,13 @@ const CacheDashboard: React.FC<CachePageProps> = ({ accessToken, token, userRole
|
|||
|
||||
/*
|
||||
Data looks like this
|
||||
[{"api_key":"147dba2181f28914eea90eb484926c293cdcf7f5b5c9c3dd6a004d9e0f9fdb21","call_type":"acompletion","model":"llama3-8b-8192","total_rows":13,"cache_hit_true_rows":0},
|
||||
{"api_key":"8c23f021d0535c2e59abb7d83d0e03ccfb8db1b90e231ff082949d95df419e86","call_type":"None","model":"chatgpt-v-2","total_rows":1,"cache_hit_true_rows":0},
|
||||
{"api_key":"88dc28d0f030c55ed4ab77ed8faf098196cb1c05df778539800c9f1243fe6b4b","call_type":"acompletion","model":"gpt-3.5-turbo","total_rows":19,"cache_hit_true_rows":0},
|
||||
{"api_key":"88dc28d0f030c55ed4ab77ed8faf098196cb1c05df778539800c9f1243fe6b4b","call_type":"aimage_generation","model":"","total_rows":3,"cache_hit_true_rows":0},
|
||||
{"api_key":"0ad4b3c03dcb6de0b5b8f761db798c6a8ae80be3fd1e2ea30c07ce6d5e3bf870","call_type":"None","model":"chatgpt-v-2","total_rows":1,"cache_hit_true_rows":0},
|
||||
{"api_key":"034224b36e9769bc50e2190634abc3f97cad789b17ca80ac43b82f46cd5579b3","call_type":"","model":"chatgpt-v-2","total_rows":1,"cache_hit_true_rows":0},
|
||||
{"api_key":"4f9c71cce0a2bb9a0b62ce6f0ebb3245b682702a8851d26932fa7e3b8ebfc755","call_type":"","model":"chatgpt-v-2","total_rows":1,"cache_hit_true_rows":0},
|
||||
[{"api_key":"sk-example-1234567890abcdef","call_type":"acompletion","model":"llama3-8b-8192","total_rows":13,"cache_hit_true_rows":0},
|
||||
{"api_key":"sk-example-1234567890abcdef","call_type":"None","model":"chatgpt-v-2","total_rows":1,"cache_hit_true_rows":0},
|
||||
{"api_key":"sk-example-1234567890abcdef","call_type":"acompletion","model":"gpt-3.5-turbo","total_rows":19,"cache_hit_true_rows":0},
|
||||
{"api_key":"sk-example-1234567890abcdef","call_type":"aimage_generation","model":"","total_rows":3,"cache_hit_true_rows":0},
|
||||
{"api_key":"sk-example-1234567890abcdef","call_type":"None","model":"chatgpt-v-2","total_rows":1,"cache_hit_true_rows":0},
|
||||
{"api_key":"sk-example-1234567890abcdef","call_type":"","model":"chatgpt-v-2","total_rows":1,"cache_hit_true_rows":0},
|
||||
{"api_key":"sk-example-1234567890abcdef","call_type":"","model":"chatgpt-v-2","total_rows":1,"cache_hit_true_rows":0},
|
||||
*/
|
||||
|
||||
// What data we need for bar chat
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue