MJannik commited on
Commit
df09131
·
verified ·
1 Parent(s): 24d947d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -3,15 +3,13 @@ import json
3
  import uuid
4
  from langfuse import Langfuse
5
  import os
6
- # Langfuse decorator
7
  from langfuse.decorators import observe, langfuse_context
8
- # Optional: automated instrumentation via OpenAI SDK integration
9
- # See note above regarding alternative implementations
10
  from langfuse.openai import openai, OpenAI
11
 
12
- os.environ["LANGFUSE_PUBLIC_KEY"] = os.getenv('LANGFUSE_PUBLIC_KEY')
13
- os.environ["LANGFUSE_SECRET_KEY"] = os.getenv('LANGFUSE_SECRET_KEY')
14
- os.environ["LANGFUSE_HOST"] = os.getenv('LANGFUSE_HOST')
 
15
 
16
  # initialize the client but point it to TGI
17
  client = OpenAI(
 
3
  import uuid
4
  from langfuse import Langfuse
5
  import os
 
6
  from langfuse.decorators import observe, langfuse_context
 
 
7
  from langfuse.openai import openai, OpenAI
8
 
9
+ # set Langfuse api keys and host address
10
+ "LANGFUSE_PUBLIC_KEY" = os.getenv('LANGFUSE_PUBLIC_KEY')
11
+ "LANGFUSE_SECRET_KEY" = os.getenv('LANGFUSE_SECRET_KEY')
12
+ "LANGFUSE_HOST" = os.getenv('LANGFUSE_HOST')
13
 
14
  # initialize the client but point it to TGI
15
  client = OpenAI(