Skip to content

Releases: devchat-ai/devchat

DevChat Core v0.2.9

11 Oct 04:58
Compare
Choose a tag to compare

(Since v0.2.6)

Highlights

  • Added devchat log --insert to insert a prompt to the log
  • Added setters of Prompt attributes
  • Removed anthropic and litellm packages
  • Refactored OpenAI API call logic

Change Log

Improvements

  • Supported inserting an outside prompt to DevChat log (d6a1765)
  • Tested CLI log insert. Added assert result.exit_code == 0 checks (cbaa3e7)
  • Added setters for Prompt attributes (f0c8aff)
  • Directly count tokens of other models using cl100k_base (ad67bbc, 38b9769)

Bug Fixes

  • Fixed the usage of an f-string in CLI log test (ed7c538)
  • Ensured timestamp difference in CLI topic test (3d9aeb7)

Package Removals

  • Removed anthropic package (28a89fc)
  • Removed litellm import and usage (fdabd85)

Documentation

DevChat Core v0.2.6

25 Sep 09:43
Compare
Choose a tag to compare

(Since v0.2.0)

Highlights

  • Introduced ConfigManager for handling chat model configurations.
  • Upgraded the chat provider configuration and added support for other chat providers and their parameters.
  • Deprecated old JSON configs in favor of new YAML format.
  • Added recursive prompting support via RecursivePrompter class.
  • Improved error handling in the CLI commands.
  • Enhanced Assistant and OpenAIChat classes for better response handling.
  • Provided protection against tiktoken counting errors.
  • Improved handling of namespaces in the engine.

Change Log

Improvements

  • Implemented ConfigManager for chat models, with creation, loading, validation, and updating of configs. (3d7c49b)
  • Added support for converting old JSON config to new YAML format, support for other chat providers and their parameters, and refactored the config manager. (003ad46)
  • Added RecursivePrompter class to handle recursive prompting. (f4b558e)
  • Refactored error handling in the CLI commands. (e3b7511, 20e0e7d)
  • Updated Assistant and OpenAIChat classes for better response handling. (64f4ba4)
  • Added a fall-back token counting function. (5cb9e7c)
  • Enhanced Namespace class with additional functionality. (4019c42, 9bab5a7)

Bug Fixes

  • Fixed a bug relating to incorrect role checks in the OpenAIPrompt class, ensuring that messages with the "function" role are correctly processed. (5d25ccd)
  • Fixed a bug that would allow directories starting with '.' to be added as commands. (7109068)

Prompts

  • Updated instruct.txt to clarify instructions about response language request. (b4ea449)

DevChat v0.2.0

29 Jul 12:39
Compare
Choose a tag to compare

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)

DevChat v0.1.15

22 Jul 01:04
Compare
Choose a tag to compare

Highlights

  • Added delete option to log command in CLI, allowing deletion of a leaf prompt.
  • Replaced deprecated pkg_resources with importlib.metadata for better compatibility and performance.
  • Added --version option to CLI to print the version of the devchat package.
  • Migrated to Poetry for dependency management, improving project setup and dependency resolution.
  • Added function call tests in CLI prompt, improving the robustness of the software.
  • Added git_diff and git_log commands to workflow, enhancing the functionality of the software.

Change Log

Improvements

  • Added delete option to log command in CLI, allowing deletion of a leaf prompt (e9e337d).
  • Replaced deprecated pkg_resources with importlib.metadata (9deb481).
  • Added --version option to CLI (8aa0f4d).
  • Migrated to Poetry for dependency management (bb6b7ff).
  • Added function call tests in CLI prompt (f266d4c).
  • Added git_diff and git_log commands to workflow (9e5a1af).

Bug Fixes

Refactors

  • Refactored test code to use response string template (1ade1ae).
  • Refactored test_store.py to use pytest fixture (4566ee3).
  • Refactored unix_to_local_datetime function (2a06fb3).
  • Refactored function handling in Assistant and OpenAIChat classes (7cdcc38).
  • Refactored function call condition in OpenAIChat (79a69cf).
  • Improved code readability in _cli.py (a5e74e3).

Documentation

DevChat v0.1.10-beta

06 Jun 16:38
Compare
Choose a tag to compare

Highlights

  • Support for both Git and SVN repositories
  • Improved topic management and added topic command
  • Added topic filtering to log command
  • Increased request timeout for OpenAI API

Change Log

Improvements

  • Support both Git and SVN repositories (38a9f2d)
  • Improved topic management and added topic command (041b972)
  • Added topic filtering to log command (8299aef)
  • Increased request timeout for OpenAI API (2090a06)
  • Suppress the output of internal call to git or svn (6548ebb)

Bug Fixes

  • Fixed KeyError issue in _update_topics_table() (0dec1fb)
  • Avoid modifying .gitignore in Git root (00f595e)

Documentation

Tests and Refactoring

  • Refactor test_cli_prompt.py and add conftest.py (abdb108)
  • Update test cases for topic and prompt selection (0d53c92)
  • Simplify topic management in Store class (d96528f)
  • Rename select_recent to select_prompts of Store (16a7244)
  • Fix _update_topics_table() and add new tests (0dec1fb)
  • Add topic filtering to select_recent method (ae3bb1d)
  • Add topic management to Store class (8e0d40a)

Other Changes

DevChat v0.1.8-beta

26 May 13:07
061388f
Compare
Choose a tag to compare

Highlights

  • Implemented deep load function for OpenAIPrompt in OpenAIChat
  • Enhanced error handling and logging
  • Improved data storage and prompt handling

Changelog

  • Implement deep load function for OpenAIPrompt in OpenAIChat (d294743)
  • Improve error handling, logging, and output (ebb7987, 52bb5d7, 134319b, 18dcf94)
  • Refactor data storage and prompt handling
  • Replace dict with list for storing responses (9fa4e31)
  • Calculate hash using sha256 (fe29e5c)
  • Replace shelve store with TinyDB (f14188b)
  • Refactor Store and Chat for loading prompts (d7bda72)
  • Make prompts dataclasses (49e578c)
  • Fix minor bugs and configuration issues (2660cb4, 4613b8a)

DevChat v0.1.7-beta

21 May 12:01
Compare
Choose a tag to compare

Highlights

Key highlights since v0.1.4-beta include:

  • Replaced video with gifs in README.md
  • Fixed a bug in the order of storing prompts
  • Added parent to prompt shorlog
  • Optimized the order of messages
  • Limited token number for Assistant to make prompt
  • Added token counting utils
  • Added commitmsg as code type for commit messages

Change Log

Improvements

  • Changed default temperature of GPT to 0 (c9fcf60)
  • Added parent to prompt shorlog (e3b2064)
  • Optimized the order of messages (1e6e130)
  • Added test cases for tokens-per-prompt (afefe48)
  • Limited token number for Assistant to make prompt (342fbfe)
  • Added token counting utils (f51f55c)
  • Added commitmsg as code type for commit messages (f49fd6d)

Bug Fixes

  • Fixed a bug in the order of storing prompts (2488009)
  • Fixed a bug of overwriting request token number (604ea31)

Documentation

DevChat v0.1.4-beta

08 May 09:24
Compare
Choose a tag to compare
  • Fixed limit of 20 messages in memory.
  • Optimized message priority and order in memory.

Full Changelog: v0.1.4-alpha...v0.1.4-beta

Support context and storage of prompts

05 May 16:07
Compare
Choose a tag to compare
Pre-release
  • CLI supports options --instruct and --context.
  • Prompt relations are managed in a NetworkX graph store.
  • Prompt objects are managed in a shelve database.
  • Refactored code to decouple Assistant from OpenAI implementation.

Support OpenAI Chat APIs

23 Apr 14:05
Compare
Choose a tag to compare
Pre-release
  • Focus on OpenAI chat APIs.
  • Support here-doc for inputting long text as a prompt.
  • Support streaming response.
  • Support multiple choices in response.
  • No prompt storage yet.
  • No prompt history management yet.