za3karia commited on
Commit
9cb3ce0
·
verified ·
1 Parent(s): 9678025

Update functions.py

Browse files
Files changed (1) hide show
  1. functions.py +1 -1
functions.py CHANGED
@@ -16,7 +16,7 @@ from streamlit import secrets
16
  GITHUB_API = "https://api.github.com"
17
  # No default TOKEN assignment here, we will handle it dynamically
18
  # Replace with your actual OpenAI API key
19
- openai.api_key = secrets['GITHUB_API_TOKEN']
20
  # Function to update headers with a new token
21
  def get_headers(updated_token=None):
22
  # Use the provided token or fallback to the existing secret token
 
16
  GITHUB_API = "https://api.github.com"
17
  # No default TOKEN assignment here, we will handle it dynamically
18
  # Replace with your actual OpenAI API key
19
+ openai.api_key = secrets['OPEN_AI_TOKEN']
20
  # Function to update headers with a new token
21
  def get_headers(updated_token=None):
22
  # Use the provided token or fallback to the existing secret token