Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -47,7 +47,7 @@ async def chat_completions(request: Request):
|
|
| 47 |
async def generate():
|
| 48 |
# 设置 120 秒超时,防止长文本生成失败
|
| 49 |
async with httpx.AsyncClient(timeout=120.0) as client:
|
| 50 |
-
url = f"https://
|
| 51 |
|
| 52 |
try:
|
| 53 |
response = await client.post(url, headers=headers, json=payload)
|
|
|
|
| 47 |
async def generate():
|
| 48 |
# 设置 120 秒超时,防止长文本生成失败
|
| 49 |
async with httpx.AsyncClient(timeout=120.0) as client:
|
| 50 |
+
url = f"https://app.airops.com/public_api/airops_apps/{AIROPS_APP_ID}/execute"
|
| 51 |
|
| 52 |
try:
|
| 53 |
response = await client.post(url, headers=headers, json=payload)
|