yangtb24 commited on
Commit
5813597
·
verified ·
1 Parent(s): 095a61c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -20,10 +20,10 @@ time.tzset()
20
  logging.basicConfig(level=logging.INFO,
21
  format='%(asctime)s - %(levelname)s - %(message)s')
22
 
23
- API_ENDPOINT = "https://api.siliconflow.cn/v1/user/info"
24
- TEST_MODEL_ENDPOINT = "https://api.siliconflow.cn/v1/chat/completions"
25
- MODELS_ENDPOINT = "https://api.siliconflow.cn/v1/models"
26
- EMBEDDINGS_ENDPOINT = "https://api.siliconflow.cn/v1/embeddings"
27
 
28
  app = Flask(__name__)
29
 
@@ -906,7 +906,7 @@ def handsome_images_generations():
906
  try:
907
  start_time = time.time()
908
  response = requests.post(
909
- "https://api.siliconflow.cn/v1/images/generations",
910
  headers=headers,
911
  json=siliconflow_data,
912
  timeout=120
 
20
  logging.basicConfig(level=logging.INFO,
21
  format='%(asctime)s - %(levelname)s - %(message)s')
22
 
23
+ API_ENDPOINT = "https://api-st.siliconflow.cn/v1/user/info"
24
+ TEST_MODEL_ENDPOINT = "https://api-st.siliconflow.cn/v1/chat/completions"
25
+ MODELS_ENDPOINT = "https://api-st.siliconflow.cn/v1/models"
26
+ EMBEDDINGS_ENDPOINT = "https://api-st.siliconflow.cn/v1/embeddings"
27
 
28
  app = Flask(__name__)
29
 
 
906
  try:
907
  start_time = time.time()
908
  response = requests.post(
909
+ "https://api-st.siliconflow.cn/v1/images/generations",
910
  headers=headers,
911
  json=siliconflow_data,
912
  timeout=120