Skip to content

Commit 16e7ea2

Browse files
committed
Update documentations.
1 parent 5648e8b commit 16e7ea2

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

docs/guides/advanced-terminal-usage.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ Magic commands can be used to control the interpreter's behavior in interactive
1313
- `%tokens [prompt]`: EXPERIMENTAL: Calculate the tokens used by the next request based on the current conversation's messages and estimate the cost of that request; optionally provide a prompt to also calculate the tokens used by that prompt and the total amount of tokens that will be sent with the next request.
1414
- `%info`: Show system and interpreter information.
1515
- `%help`: Show this help message.
16-
- `%jupyter`: Export the current session to a Jupyter notebook file (.ipynb) to the Downloads folder.
16+
- `%jupyter`: Export the current session to a Jupyter notebook file (.ipynb) to the Downloads folder.
17+
- `%markdown [path]`: Export the conversation to a specified Markdown path. If no path is provided, it will be saved to the Downloads folder with a generated conversation name.

docs/usage/terminal/magic-commands.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ Magic commands can be used to control the interpreter's behavior in interactive
1313
- `%tokens [prompt]`: EXPERIMENTAL: Calculate the tokens used by the next request based on the current conversation's messages and estimate the cost of that request; optionally provide a prompt to also calculate the tokens used by that prompt and the total amount of tokens that will be sent with the next request.
1414
- `%info`: Show system and interpreter information.
1515
- `%help`: Show this help message.
16+
- `%markdown [path]`: Export the conversation to a specified Markdown path. If no path is provided, it will be saved to the Downloads folder with a generated conversation name.

interpreter/terminal_interface/magic_commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def handle_help(self, arguments):
5959
"%help": "Show this help message.",
6060
"%info": "Show system and interpreter information",
6161
"%jupyter": "Export the conversation to a Jupyter notebook file",
62-
"%markdown": "Export the conversation to a Markdown file",
62+
"%markdown [path]": "Export the conversation to a specified Markdown path. If no path is provided, it will be saved to the Downloads folder with a generated conversation name.",
6363
}
6464

6565
base_message = ["> **Available Commands:**\n\n"]

0 commit comments

Comments
 (0)