Spaces:
Sleeping
Sleeping
修改路径,加上 airs
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ app = FastAPI()
|
|
9 |
def greet_json():
|
10 |
return {"Hello": "World!"}
|
11 |
|
12 |
-
@app.post("/v1/chat/completions")
|
13 |
async def chat_completions(request:Request):
|
14 |
auth_header = request.headers['authorization']
|
15 |
api_key = auth_header.split()[1] # 分割字符串并取第二个元素
|
|
|
9 |
def greet_json():
|
10 |
return {"Hello": "World!"}
|
11 |
|
12 |
+
@app.post("/airs/v1/chat/completions")
|
13 |
async def chat_completions(request:Request):
|
14 |
auth_header = request.headers['authorization']
|
15 |
api_key = auth_header.split()[1] # 分割字符串并取第二个元素
|