Skip to content

DevChat v0.2.0

Compare
Choose a tag to compare
@basicthinker basicthinker released this 29 Jul 12:39
· 319 commits to main since this release

Highlights

  • Added database migration functionality
  • Improved response format in Assistant and Prompt
  • Added robust from_dict to OpenAIMessage class
  • Updated topic data handling in _cli.py
  • Refactored token counting and added tests

Change Log

Improvements

  • Added _migrate_db() for database migrations and checks current database version for updates (1ecafe8)
  • Added robust from_dict to OpenAIMessage class and updated tests to use new from_dict method (d95488d)
  • Updated topic data handling in _cli.py, includes topic metadata in topic list (8fa4352)
  • Improved response format in Assistant and Prompt, added _response_reasons field in Prompt to store finish reasons (348a486)
  • Added a new CLI option to allow users to specify a JSON string (de7e6ef)
  • Added utility functions for formatted response handling, refactored test_cli_prompt.py to use these new utility functions (fa67ed7)
  • Refactored token counting in openai_prompt.py and utils.py, added new tests for token counting (bc6f673)

Bug Fixes

  • Fixed response handling bugs in Assistant and Prompt, handle multiple responses in Assistant class (e76c58d)
  • Removed set_hash method from OpenAIChat class, added _check_complete method to Prompt class (8fcf9d6)

Tests

  • Updated the expected output in test_prompt_with_function_replay (1e23fe2)
  • Updated tests in test_cli_prompt.py for token counting changes (bc6f673)
  • Updated tests to reflect the changes in 'response' to 'responses' (9177cf0)