Skip to content

Commit

Permalink
Merge pull request #144 from rgbkrk/changelog
Browse files Browse the repository at this point in the history
update changelog for 2.1.0 release
  • Loading branch information
rgbkrk authored Mar 4, 2024
2 parents c493e12 + 1ab38dc commit 15ff17d
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 1 deletion.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,21 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.1.0]

### Added
- New `tools` namespace to replace the `builtins` namespace.
- Simplified `Palette` class in `colors.py` for displaying color palettes, now leveraging Pydantic for validation.

### Changed
- Default model in `Chat` class constructor now uses the `GPT_3_5_TURBO` enum.
- Migrated `run_cell` to `run_python` to avoid naming confusion and deprecated `run_cell`.
- Updated documentation and examples to reflect the new `tools` namespace and usage patterns.
- Removed `__required__` from `extract_model_from_function` in `registry.py` to suppress Pydantic warnings.

### Fixed
- Ensured the final tool call result properly updates the UI to reflect the outcome of tool execution.

## [2.0.0]

- Support parallel tool calling by default in `Chat`.
Expand Down
3 changes: 2 additions & 1 deletion chatlab/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from . import models
from ._version import __version__
from .chat import Chat
from .decorators import ChatlabMetadata, expose_exception_to_llm
from .decorators import ChatlabMetadata, expose_exception_to_llm, incremental_display
from .messaging import (
ai,
assistant,
Expand All @@ -45,6 +45,7 @@
"user",
"assistant",
"assistant_function_call",
"incremental_display",
"function_result",
"tool_result",
"models",
Expand Down
1 change: 1 addition & 0 deletions chatlab/views/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ class ToolCalled(ToolArguments):
arguments: str = ""
verbage: str = "Called"
result: str = ""
finished: bool = True

def render(self):
if self.custom_render is not None:
Expand Down
2 changes: 2 additions & 0 deletions tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,7 @@ def test_assistant_function_call_view_get():
"arguments": "you can do it",
"result": "3.14159",
"verbage": "Called",
"custom_render": None,
"finished": True
}

0 comments on commit 15ff17d

Please sign in to comment.