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, )