remove warn

This commit is contained in:
Jason Liu
2023-11-14 18:58:13 -05:00
parent 4de58fd157
commit 90d7cbcc82
-7
View File
@@ -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)