Skip to content

Commit

Permalink
Improve grouping example in README
Browse files Browse the repository at this point in the history
  • Loading branch information
gehrisandro committed Dec 12, 2023
1 parent a6006cf commit ff5c7c1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,13 @@ Next, you need to register the recorder in your `config/pulse.php` file:
'sample_rate' => env('PULSE_OPENAI_REQUESTS_SAMPLE_RATE', 1),
'ignore' => [],
'groups' => [
'/(.*)\/(asst_|file-|ft-|msg_|run_|step_|thread_)[0-9a-zA-Z]*(.*)/' => '\1/\2*\3',
'/(.*)\/(asst_)[0-9a-zA-Z]*(.*)/' => '\1/\2*\3',
'/(.*)\/(file-)[0-9a-zA-Z]*(.*)/' => '\1/\2*\3',
'/(.*)\/(ft-)[0-9a-zA-Z]*(.*)/' => '\1/\2*\3',
'/(.*)\/(thread_)[0-9a-zA-Z]*(.*)\/(run_)[0-9a-zA-Z]*(.*)\/(step_)[0-9a-zA-Z]*(.*)/' => '\1/\2*\3/\4*\5/\6*\7',
'/(.*)\/(thread_)[0-9a-zA-Z]*(.*)\/(run_)[0-9a-zA-Z]*(.*)/' => '\1/\2*\3/\4*\5',
'/(.*)\/(thread_)[0-9a-zA-Z]*(.*)\/(msg_)[0-9a-zA-Z]*(.*)/' => '\1/\2*\3/\4*\5',
'/(.*)\/(thread_)[0-9a-zA-Z]*(.*)/' => '\1/\2*\3',
],
],
],
Expand Down

0 comments on commit ff5c7c1

Please sign in to comment.