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 f8a0ab2 commit e4bb7e4
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 e4bb7e4

Please sign in to comment.