From 6752f750c1885a9b6a1969dadbc9cd6abaf1bdb0 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Fri, 11 Aug 2023 12:57:27 -0700 Subject: [PATCH] doc cleanup --- docs/supabase_integration.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/supabase_integration.md b/docs/supabase_integration.md index 52b6b736a..6ae4f65da 100644 --- a/docs/supabase_integration.md +++ b/docs/supabase_integration.md @@ -2,7 +2,7 @@ [Supabase](https://supabase.com/) is an open source Firebase alternative. Start your project with a Postgres database, Authentication, instant APIs, Edge Functions, Realtime subscriptions, Storage, and Vector embeddings. -## Use Supabase to see total spend across all LLM Providers (OpenAI, Azure, Anthropic, Cohere, Replicate, PaLM) +## Use Supabase to log requests and see total spend across all LLM Providers (OpenAI, Azure, Anthropic, Cohere, Replicate, PaLM) liteLLM provides `success_callbacks` and `failure_callbacks`, making it easy for you to send data to a particular provider depending on the status of your responses. In this case, we want to log requests to Supabase in both scenarios - when it succeeds and fails. @@ -43,8 +43,11 @@ Complete code from litellm import completion ## set env variables +### SUPABASE os.environ["SUPABASE_URL"] = "your-supabase-url" -os.environ["SUPABASE_key"] = "your-supabase-key" +os.environ["SUPABASE_KEY"] = "your-supabase-key" + +## LLM API KEY os.environ["OPENAI_API_KEY"] = "" # set callbacks