mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-11 03:38:38 +00:00
* feat(lens): simplify investigation setup and results * fix(lens): pin worker with actionable failure diagnostics * fix(lens): focus worker success on starting an investigation * feat(lens): simplify investigation setup and worker defaults * fix(lens): remove setup repetition and label billing access * fix(lens): finish agent selection and setup readiness * fix(lens): handle unavailable setup dependencies and restore UI build
8 lines
429 B
SQL
8 lines
429 B
SQL
SELECT
|
|
EXISTS(SELECT 1 FROM otel_traces
|
|
WHERE ({all_teams:UInt8}=1 OR TeamId={team:String})
|
|
AND ({key_hash:String}='' OR ApiKeyHash={key_hash:String})) AS traces,
|
|
EXISTS(SELECT 1 FROM spend_logs
|
|
WHERE ({all_teams:UInt8}=1 OR team_id={team:String})
|
|
AND ({key_hash:String}='' OR api_key={key_hash:String})
|
|
AND NOT JSONExtractBool(metadata,'litellm_lens_internal')) AS requests
|