Commits
Click on a commit to change the comparison rangecore: fix ChatPromptTemplate.save() implementation
- Replace NotImplementedError with working implementation
- Use dumpd() for proper serialization to ensure compatibility with load()
- Support both JSON and YAML formats
- Add comprehensive unit tests for save functionality
- Handle error cases (invalid extensions, partial variables)
- Ensure directory creation when saving to nested paths
Fixes #32637
Co-Authored-By: Keyu <noreply@anthropic.com>3 months ago
by keyuchen21 fix: resolve linting issues in test_chat.py
- Remove trailing whitespace
- Remove whitespace in blank lines
- Use Path.open() instead of open() for file operations3 months ago
by keyuchen21 fix: correct test cases to properly load JSON data
- Parse JSON data before passing to load() function
- Fix trailing whitespace issues
- Tests now correctly verify save/load functionality3 months ago
by keyuchen21 style: apply ruff formatting to test_chat.py
- Add blank line after import statement
- Add trailing comma in function arguments
- Consolidate single-line ChatPromptTemplate instantiations3 months ago
by keyuchen21