Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -166,7 +166,7 @@ def chat_completions():
|
|
| 166 |
)
|
| 167 |
else:
|
| 168 |
user_query = data.get('messages', [])[0]["content"]
|
| 169 |
-
|
| 170 |
if user_query == "ping":
|
| 171 |
text_matches = re.findall(r'0:"(.*?)"', akash_response.text)
|
| 172 |
parsed_text = "".join(text_matches)
|
|
|
|
| 166 |
)
|
| 167 |
else:
|
| 168 |
user_query = data.get('messages', [])[0]["content"]
|
| 169 |
+
# 解决用dify或者new_api添加模型时报错
|
| 170 |
if user_query == "ping":
|
| 171 |
text_matches = re.findall(r'0:"(.*?)"', akash_response.text)
|
| 172 |
parsed_text = "".join(text_matches)
|