Skip to content

Commit

Permalink
Fixed magics
Browse files Browse the repository at this point in the history
  • Loading branch information
3coins committed Oct 5, 2023
1 parent 971c2e5 commit 5f62aee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jupyter-ai-magics/jupyter_ai_magics/magics.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ def run_ai_cell(self, args: CellArgs, prompt: str):
ip = get_ipython()
prompt = prompt.format_map(FormatDict(ip.user_ns))

if provider.is_chat_provider(provider):
if provider.is_chat_provider:
result = provider.generate([[HumanMessage(content=prompt)]])
else:
# generate output from model via provider
Expand Down

0 comments on commit 5f62aee

Please sign in to comment.