Skip to content

Commit

Permalink
Updates commands workbook
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonWeill committed Jun 1, 2023
1 parent 738378e commit 97aeb47
Showing 1 changed file with 52 additions and 17 deletions.
69 changes: 52 additions & 17 deletions examples/commands.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -43,23 +43,58 @@
},
"outputs": [
{
"data": {
"text/markdown": [
"| Command | Description |\n",
"| ------- | ----------- |\n",
"| `help` | Display a list of supported commands|\n",
"| `list` | Display a list of models that you can use (optionally, for a single provider)|\n",
"| `error` | Explain the last error received. Takes a model, as %%ai does.|\n"
],
"text/plain": [
"help - Display a list of supported commands\n",
"list - Display a list of models that you can use (optionally, for a single provider)\n",
"error - Explain the last error received. Takes a model, as %%ai does.\n"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
"name": "stdout",
"output_type": "stream",
"text": [
"Usage: %%ai [OPTIONS] MODEL_ID\n",
"\n",
" Invokes a language model identified by MODEL_ID, with the prompt being\n",
" contained in all lines after the first. Both local model IDs and global\n",
" model IDs (with the provider ID explicitly prefixed, followed by a colon)\n",
" are accepted.\n",
"\n",
" To view available language models, please run `%ai list`.\n",
"\n",
"Options:\n",
" -f, --format [code|html|image|json|markdown|math|md|text]\n",
" IPython display to use when rendering\n",
" output. [default=\"markdown\"]\n",
" -r, --reset Clears the conversation transcript used when\n",
" interacting with an OpenAI chat model\n",
" provider. Does nothing with other providers.\n",
" --help Show this message and exit.\n",
"------------------------------------------------------------------------------\n",
"Usage: %%ai [OPTIONS] MODEL_ID\n",
"\n",
" Invokes a language model identified by MODEL_ID, with the prompt being\n",
" contained in all lines after the first. Both local model IDs and global\n",
" model IDs (with the provider ID explicitly prefixed, followed by a colon)\n",
" are accepted.\n",
"\n",
" To view available language models, please run `%ai list`.\n",
"\n",
"Options:\n",
" -f, --format [code|html|image|json|markdown|math|md|text]\n",
" IPython display to use when rendering\n",
" output. [default=\"markdown\"]\n",
" -r, --reset Clears the conversation transcript used when\n",
" interacting with an OpenAI chat model\n",
" provider. Does nothing with other providers.\n",
" --help Show this message and exit.\n",
"------------------------------------------------------------------------------\n",
"Usage: %ai [OPTIONS] COMMAND [ARGS]...\n",
"\n",
" Invokes a subcommand.\n",
"\n",
"Options:\n",
" --help Show this message and exit.\n",
"\n",
"Commands:\n",
" error Explains the most recent error.\n",
" help Show this message and exit.\n",
" list List language models. See `%ai list --help` for options.\n",
"\n"
]
}
],
"source": [
Expand Down

0 comments on commit 97aeb47

Please sign in to comment.