mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
fix(langfuse.py): fix langfuse environ check
This commit is contained in:
parent
157099dd9e
commit
cbcb3318f4
9 changed files with 44 additions and 1 deletions
|
@ -38,9 +38,9 @@ class LangFuseLogger:
|
|||
# this is used by Alerting to link to the correct project
|
||||
try:
|
||||
project_id = self.Langfuse.client.projects.get().data[0].id
|
||||
os.environ["LANGFUSE_PROJECT_ID"] = project_id
|
||||
except:
|
||||
project_id = None
|
||||
os.environ["LANGFUSE_PROJECT_ID"] = project_id
|
||||
|
||||
if os.getenv("UPSTREAM_LANGFUSE_SECRET_KEY") is not None:
|
||||
self.upstream_langfuse_secret_key = os.getenv(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue