mirror of
https://github.com/iruletheworldmo/strawberry.git
synced 2024-08-13 23:12:55 -05:00
Update strawberry.py
Implement dotenv for better secrets management
This commit is contained in:
parent
841f575807
commit
f7e632551b
1 changed files with 4 additions and 1 deletions
|
@ -1,8 +1,11 @@
|
|||
import os
|
||||
from openai import OpenAI
|
||||
from dotenv import load_dotenv
|
||||
|
||||
load_dotenv()
|
||||
|
||||
beta_headers = {
|
||||
"authorization": f"Bearer {os.environ['OPENAI_BETA_KEY']}",
|
||||
"authorization": f"Bearer {os.environ['OPENAI_API_KEY']}",
|
||||
"openai-beta": "early-access-strawberry"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue