From 4fd34f943de4a4177cfb2aedac679fb73b08e0b6 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 24 Sep 2024 11:35:23 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=B8=80=E4=BA=9B=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 0f457b8..8e77298 100644 --- a/main.py +++ b/main.py @@ -187,7 +187,7 @@ async def extract_info( else: raise HTTPException(400, detail="Invalid file type. Please choose 'standard' or 'patent'.") r = requests.post(conf.CHAT_API, json={ - "model": "llama3.1", + "model": conf.CHAT_MODEL, "prompt": prompt, "stream": False }) @@ -195,4 +195,4 @@ async def extract_info( return JSONResponse(content=info) if __name__ == "__main__": - uvicorn.run(app="main:app", host="0.0.0.0", port=8000, reload=True, log_config=LOGGING_CONFIG) \ No newline at end of file + uvicorn.run(app="main:app", host="0.0.0.0", port=2260, reload=True, log_config=LOGGING_CONFIG, debug=False) \ No newline at end of file