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 14f426e commit f1c50e3
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 @@ -556,7 +556,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 f1c50e3

Please sign in to comment.