Skip to content

Commit

Permalink
don't validate openai key in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mmz-001 committed Sep 11, 2023
1 parent 249679a commit 54bb4c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions knowledge_gpt/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
MODEL = "openai"

# For testing
# EMBEDDING, VECTOR_STORE, MODEL = ["debug"] * 3
EMBEDDING, VECTOR_STORE, MODEL = ["debug"] * 3

st.set_page_config(page_title="KnowledgeGPT", page_icon="📖", layout="wide")
st.header("📖KnowledgeGPT")
Expand Down Expand Up @@ -61,7 +61,7 @@
if not is_file_valid(file):
st.stop()

if not is_open_ai_key_valid(openai_api_key):
if MODEL != "debug" and not is_open_ai_key_valid(openai_api_key):
st.stop()


Expand Down

0 comments on commit 54bb4c7

Please sign in to comment.