shideqin commited on
Commit
f586052
1 Parent(s): 0496418

Update chat_func.py

Browse files
Files changed (1) hide show
  1. chat_func.py +1 -3
chat_func.py CHANGED
@@ -29,9 +29,7 @@ if TYPE_CHECKING:
29
 
30
 
31
  initial_prompt = "You are a helpful assistant."
32
-
33
- OPENAI_API = os.getenv("OPENAI_API","api.openai.com")
34
- API_URL = "https://"+OPENAI_API+"/v1/chat/completions"
35
  HISTORY_DIR = "history"
36
  TEMPLATES_DIR = "templates"
37
 
 
29
 
30
 
31
  initial_prompt = "You are a helpful assistant."
32
+ API_URL = os.getenv("OPENAI_API","https://api.openai.com/v1")+"/chat/completions"
 
 
33
  HISTORY_DIR = "history"
34
  TEMPLATES_DIR = "templates"
35