Skip to content

Commit

Permalink
load API kay from .env
Browse files Browse the repository at this point in the history
  • Loading branch information
hkiyomaru committed Nov 28, 2023
1 parent 402c241 commit 4c28013
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions llm_judge/gen_gpt3.5_answer.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@

from typing import List

from dotenv import load_dotenv

load_dotenv()

openai.api_key = os.getenv("OPENAI_API_KEY")
openai.organization = os.getenv("OPENAI_ORGANIZATION")


class GPT3_Demo(object):
def __init__(
Expand Down

0 comments on commit 4c28013

Please sign in to comment.