From cd5fa6cbf03fa8c9f962a639ac0e65ca882e658e Mon Sep 17 00:00:00 2001 From: glorenzo972 Date: Mon, 20 May 2024 16:35:38 +0200 Subject: [PATCH] added PINECONE_TYPE --- tilellm/__main__.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tilellm/__main__.py b/tilellm/__main__.py index 0a73413..9bda386 100644 --- a/tilellm/__main__.py +++ b/tilellm/__main__.py @@ -324,14 +324,14 @@ async def create_scrape_item_single(item: ItemSingle, redis_client: aioredis.cli logger.error(f"Error {add_to_queue}") import traceback - if webhook: - res = PineconeIndexingResult(id=item.id, status=400, error=repr(e)) - async with aiohttp.ClientSession() as session: - response = await session.post(webhook, json=res.model_dump(exclude_none=True), - headers={"Content-Type": "application/json", "X-Auth-Token": token}) - logger.error(response) - logger.error(f"{await response.json()}") - logger.error(f"Error {e}, webhook: {webhook}") + # if webhook: + # res = PineconeIndexingResult(id=item.id, status=400, error=repr(e)) + # async with aiohttp.ClientSession() as session: + # response = await session.post(webhook, json=res.model_dump(exclude_none=True), + # headers={"Content-Type": "application/json", "X-Auth-Token": token}) + # logger.error(response) + # logger.error(f"{await response.json()}") + # logger.error(f"Error {e}, webhook: {webhook}") traceback.print_exc() logger.error(e) raise HTTPException(status_code=400, detail=repr(e))