Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uses invoke() to call custom chains. Handles dict output format. #600

Merged
merged 2 commits into from
Jan 25, 2024

Conversation

JasonWeill
Copy link
Collaborator

Fixes #595. Uses the new invoke() function instead of call() to invoke custom chains in magic commands. Handles output in dict form by looking at the text key; this works for Cohere and Anthropic models. Updates commands.ipynb to remove the warning from cell output.

@JasonWeill JasonWeill added bug Something isn't working @jupyter-ai/magics labels Jan 25, 2024
@JasonWeill JasonWeill enabled auto-merge (squash) January 25, 2024 16:18
@JasonWeill JasonWeill merged commit 7043144 into jupyterlab:main Jan 25, 2024
8 checks passed
@JasonWeill
Copy link
Collaborator Author

@meeseeksdev please backport to 1.x

meeseeksmachine pushed a commit to meeseeksmachine/jupyter-ai that referenced this pull request Jan 25, 2024
JasonWeill added a commit that referenced this pull request Jan 25, 2024
…utput format. (#601)

Co-authored-by: Jason Weill <93281816+JasonWeill@users.noreply.github.com>
dbelgrod pushed a commit to dbelgrod/jupyter-ai that referenced this pull request Jun 10, 2024
…yterlab#600)

* Uses invoke() to call custom chains. Handles dict output format.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Marchlak pushed a commit to Marchlak/jupyter-ai that referenced this pull request Oct 28, 2024
…yterlab#600)

* Uses invoke() to call custom chains. Handles dict output format.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working @jupyter-ai/magics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecation warning when running custom chains in a magic command
2 participants