tanbushi commited on
Commit
ec3714b
·
1 Parent(s): a4fda78

修改路径,加上 airs

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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] # 分割字符串并取第二个元素