Spaces:
Runtime error
Runtime error
update together api link
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ from text_generation import Client, InferenceAPIClient
|
|
7 |
#Streaming endpoint for OPENAI ChatGPT
|
8 |
API_URL = "https://api.openai.com/v1/chat/completions"
|
9 |
#Streaming endpoint for OPENCHATKIT
|
10 |
-
API_URL_TGTHR = os.getenv
|
11 |
|
12 |
#Predict function for CHATGPT
|
13 |
def predict_chatgpt(inputs, top_p_chatgpt, temperature_chatgpt, openai_api_key, chat_counter_chatgpt, chatbot_chatgpt=[], history=[]):
|
|
|
7 |
#Streaming endpoint for OPENAI ChatGPT
|
8 |
API_URL = "https://api.openai.com/v1/chat/completions"
|
9 |
#Streaming endpoint for OPENCHATKIT
|
10 |
+
API_URL_TGTHR = os.getenv('API_URL_TGTHR')
|
11 |
|
12 |
#Predict function for CHATGPT
|
13 |
def predict_chatgpt(inputs, top_p_chatgpt, temperature_chatgpt, openai_api_key, chat_counter_chatgpt, chatbot_chatgpt=[], history=[]):
|