This commit is contained in:
yumoqing 2026-03-31 15:07:21 +08:00
parent 83f7f6e65c
commit 977c214039

View File

@ -1,3 +1,7 @@
from aiohttp.web import (
json_response
)
def Error(errno='undefined error',msg='Error'): def Error(errno='undefined error',msg='Error'):
return { return {
"status":"Error", "status":"Error",
@ -81,4 +85,5 @@ def openai_400():
"code": "invalidparameters" "code": "invalidparameters"
} }
} }
return json_response(d, status=400)