Repository navigation
v1.0.0-alpha.27
Added
-
π Documentation now available at chatlab.dev
-
π Pre-release Documentation now available at pre.chatlab.dev
-
ποΈ New option
replace_hallucinated_pythonto replace any hallucinated python function with a custom one. This allows you to create notebook cells, run IPython, or even shell out to a regular python interpreter. -
πͺ Introduced
make_magicon aChatso that you can use a current chat as a cell magic in IPython and Jupyter notebooks -
β© Accept async functions as chat functions
-
ππ» You MUST now call
await chat()instead of justchat()now that chat is async -
π New experimental builtin: Noteable. Create notebooks on Noteable like you can via ChatGPT Plugins with even more flexibility.
-
π§© Accept collections of functions to
ChatandFunctionRegistryto register multiple functions at once -
π§© Enhanced type support in the registry, including handling of
Union,List,Dict,Literal, andEnumtypes. -
π¨ Added a decorator for registering functions with a schema, allowing more flexible function registration.
-
π Added
registry.get_schemamethod to retrieve a function schema by name. -
[Builtins] π Chat File functions:
list_files: List all files in a directory.get_file_size: Get the size of a file.is_file: Check if a path points to a file.is_directory: Check if a path points to a directory.write_file: Write content to a file.read_file: Read content from a file.
-
[Builtins] π Chat Shell Functions:
run_shell_command: Run a shell command and return the output.
Changed
- π
chatlab.Chatis nowchatlab.Conversationto improve readability β οΈ Deprecatedchatlab.Conversation- π
submitis now an async function to allow registering functions - π Improved UI: Scrollbars for function inputs and outputs now only appear on the x-axis when content is too large
- ππ Enhanced error handling: Python interpreter traceback is no longer displayed in the notebook when it is included in the ChatLab output pane.
- π The python builtin's name has been changed to
run_python - π§Ή Refactored
generate_function_schemaandregistermethods in the registry to simplify and enhance functionality. - π¨ Updated error handling and messages related to type annotations.
Deprecated
β οΈ Bothchatlab.Sessionandchatlab.Conversationare now deprecated in favor ofchatlab.Chat