참고소스 수정본

This commit is contained in:
LASTA_DEV01\lasta
2026-05-12 19:40:31 +09:00
parent 0f34a451fc
commit 2e9204243d
8708 changed files with 3259488 additions and 869 deletions

View File

@@ -0,0 +1,25 @@
"""Backwards compatibility module for instructor.process_response.
This module provides lazy imports to maintain backwards compatibility.
"""
import warnings
def __getattr__(name: str):
"""Lazy import to provide backward compatibility for process_response imports."""
warnings.warn(
f"Importing from 'instructor.process_response' is deprecated and will be removed in v2.0.0. "
f"Please update your imports to use 'instructor.processing.response.{name}' instead:\n"
" from instructor.processing.response import process_response",
DeprecationWarning,
stacklevel=2,
)
from .processing import response as processing_response
# Try to get the attribute from the processing.response module
if hasattr(processing_response, name):
return getattr(processing_response, name)
raise AttributeError(f"module '{__name__}' has no attribute '{name}'")