Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions instructor/processing/function_calls.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,7 @@ def _validate_model_from_json(
raise ValueError(f"Failed to parse JSON: {e}") from e
except Exception as e:
logger.debug(f"Model validation error: {e}")
# Re-raise with more context
from ..core.exceptions import ValidationError as InstructorValidationError

raise InstructorValidationError(
f"Failed to validate model {cls.__name__}: {str(e)}"
) from e
raise


class OpenAISchema(BaseModel):
Expand Down