Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bug fix] Change isinstance to issubclass for response_format check
Update the condition in Prompt class to use issubclass instead of isinstance when checking self.response_format against BaseModel. This allows for proper handling of subclasses of BaseModel. - Modified condition in two locations within prompt_base.py - Updated version number in pyproject.toml from 0.2.0 to 0.2.1 Notes: The user clarified that self.response_format can be a subclass of BaseModel, not just an instance. This change ensures that the code correctly identifies and processes response formats that inherit from BaseModel.
- Loading branch information