3 ms·
Is user auth (and tracking token spend) within scope of this or is that better handled at a layer in front of this?
by deet 3y ago
Is user auth (and tracking token spend) within scope of this or is that better handled at a layer in front of this?
- detente18 3y agoHi @deet - Yes it is! This automatically stores the cost per query to the Supabase table - here's how: https://github.com/BerriAI/litellm/blob/80d77fed7123af22201158528feadb83ab9a95bc/litellm/integrations/supabase.py#L74 https://github.com/BerriAI/litellm/blob/80d77fed7123af222011... If you have ideas for improvement - we'd love a ticket/PR!