From 131e3d3a7afedc2d0677c8384a91c1e51b66987a Mon Sep 17 00:00:00 2001 From: zhenghu <1831829219@qq.com> Date: Wed, 15 Apr 2026 10:11:08 +0800 Subject: [PATCH] =?UTF-8?q?fix(app):=20=E4=B8=BA=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E5=B5=8C=E5=85=A5=20API=20=E8=AF=B7=E6=B1=82=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=20Authorization=20=E8=AE=A4=E8=AF=81=E5=A4=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index bf02b26..537ed6f 100644 --- a/app.py +++ b/app.py @@ -190,7 +190,7 @@ def get_image_embedding(image_url: str, text: str = "这是什么病虫害?", try: resp = httpx.post( IMAGE_EMBEDDING_API_URL, - headers={"Content-Type": "application/json"}, + headers={"Authorization": f"Bearer {API_KEY}", "Content-Type": "application/json"}, json=payload, timeout=120, )