ranranrunforit commited on
Commit
50582af
·
verified ·
1 Parent(s): b7f111d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -13,8 +13,8 @@ def push(text):
13
  requests.post(
14
  "https://api.pushover.net/1/messages.json",
15
  data={
16
- "token": os.environ.get("PUSHOVER_TOKEN"),
17
- "user": os.environ.get("PUSHOVER_USER"),
18
  "message": text,
19
  }
20
  )
@@ -83,7 +83,7 @@ class Me:
83
  print("Open router API Key not set - please head to the troubleshooting guide in the setup folder")
84
  self.client = OpenAI(
85
  base_url="https://openrouter.ai/api/v1",
86
- api_key=open_router_api_key
87
  )
88
  self.name = "Chaoran Zhou"
89
  reader = PdfReader("me/linkedin.pdf")
 
13
  requests.post(
14
  "https://api.pushover.net/1/messages.json",
15
  data={
16
+ "token": os.getenv("PUSHOVER_TOKEN"),
17
+ "user": os.getenv("PUSHOVER_USER"),
18
  "message": text,
19
  }
20
  )
 
83
  print("Open router API Key not set - please head to the troubleshooting guide in the setup folder")
84
  self.client = OpenAI(
85
  base_url="https://openrouter.ai/api/v1",
86
+ api_key=os.getenv('OPEN_ROUTER_API_KEY')
87
  )
88
  self.name = "Chaoran Zhou"
89
  reader = PdfReader("me/linkedin.pdf")