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

Comment at end of %%ai command causes error #203

Closed
JasonWeill opened this issue May 31, 2023 · 2 comments · Fixed by #213
Closed

Comment at end of %%ai command causes error #203

JasonWeill opened this issue May 31, 2023 · 2 comments · Fixed by #213
Labels
bug Something isn't working

Comments

@JasonWeill
Copy link
Collaborator

Description

Remove comments from %%ai commands in the sample files.

Reproduce

In examples/magics.ipynb, the cell:

%%ai j2-jumbo-instruct # infers AI21 provider
Write some JavaScript code that prints "hello world" to the console.

now results in the error:

UsageError: Got unexpected extra arguments (# infers AI21 provider)

Expected behavior

Should call the model in question.

@JasonWeill JasonWeill added the bug Something isn't working label May 31, 2023
@krassowski
Copy link
Member

This is a related IPython issue: ipython/ipython#13012

@JasonWeill
Copy link
Collaborator Author

This is likely a byproduct of us switching to click for arg parsing (#188).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants