What if GPT could help you notebook?
BSD-3-CLAUSE License
Bot releases are hidden (Show)
pyproject.toml
by @SauravMaheshkar in https://github.com/noteable-io/genai/pull/76
Full Changelog: https://github.com/noteable-io/genai/compare/v2.0.0...v2.1.0
Published by rgbkrk over 1 year ago
genai
@ 2.0.0
Generative AI Tooling for IPythonic Platforms.
Install genai
in your notebook environment now!
๐ฆพ Get GPT help with code, SQL queries, DataFrames, Exceptions, and more in IPython.
๐ Supports all Jupyter environments, including IPython, JupyterLab, Jupyter Notebook, and Noteable.
%pip install genai
%load_ext genai
%%assist
(#66)Markdown
instead of creating new cells (#66)--model
flag for %%assist
(#65)GenaiMarkdown
โ a dynamic Markdown display (#61)%%prompt
magic for setting the default prompts for assistance and exceptions (#71, #69)๐งช Craft a more ipythonic context manager (#62, #66)
Context
class: capture IPython history and make it ChatCompletion-friendlyget_historical_context
, hello build_context
: context construction using the new Context class๐ฏ Type annotations step in! (#59)
craft_message
, repr_genai_pandas
, and repr_genai
for more organized and readable codetokens.py
featuring num_tokens_from_messages
and trim_messages_to_fit_token_limit
to help you stay within model limitations and budget%%assist
no longer generates new code cells. It now creates Markdown output instead (#66)
in-place
is no longer an option since we do not change the cellscraft_user_message
now relies on the new craft_message
functioncraft_output_message
has been upgraded to use the new repr_genai
functionget_historical_context
now sports an additional model
parameter and utilizes tokens.trim_messages_to_fit_token_limit
ignore_tokens
list now uses the term "first line" instead of "start"tokens.py