From 90d7cbcc82235313b4be6a35ebca962bc3dbc92b Mon Sep 17 00:00:00 2001 From: Jason Liu Date: Tue, 14 Nov 2023 18:58:13 -0500 Subject: [PATCH] remove warn --- instructor/patch.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/instructor/patch.py b/instructor/patch.py index 6459116..776a35a 100644 --- a/instructor/patch.py +++ b/instructor/patch.py @@ -1,7 +1,6 @@ import inspect from functools import wraps from json import JSONDecodeError -from logging import warn from typing import Callable, Optional, Type, Union from openai import AsyncOpenAI, OpenAI @@ -238,10 +237,4 @@ def apatch(client: AsyncOpenAI): - `validation_context` parameter to validate the response using the pydantic model - `strict` parameter to use strict json parsing """ - - # Emit a deprecation warning - warn( - "instructor.apatch is deprecated, use instructor.patch instead", - DeprecationWarning, - ) return patch(client)