Spaces:
Runtime error
Runtime error
update
Browse files
app.py
CHANGED
|
@@ -81,12 +81,12 @@ async def proxy(request: Request, protocol: ProtocolType, host:str, path: str, p
|
|
| 81 |
body_json = json.loads(client_body)
|
| 82 |
# print('body_json', body_json)
|
| 83 |
model_from_body = body_json.get("model")
|
| 84 |
-
print('model_from_body', model_from_body)
|
| 85 |
except json.JSONDecodeError:
|
| 86 |
# 如果请求体不是JSON,则忽略
|
| 87 |
pass
|
| 88 |
|
| 89 |
-
print('
|
| 90 |
|
| 91 |
# 获取 api_key
|
| 92 |
api_key = await get_api_key(model_from_body if model_from_body else 'glm-4-flash')
|
|
|
|
| 81 |
body_json = json.loads(client_body)
|
| 82 |
# print('body_json', body_json)
|
| 83 |
model_from_body = body_json.get("model")
|
| 84 |
+
# print('model_from_body', model_from_body)
|
| 85 |
except json.JSONDecodeError:
|
| 86 |
# 如果请求体不是JSON,则忽略
|
| 87 |
pass
|
| 88 |
|
| 89 |
+
print('model', model_from_body)
|
| 90 |
|
| 91 |
# 获取 api_key
|
| 92 |
api_key = await get_api_key(model_from_body if model_from_body else 'glm-4-flash')
|