Skip to content

Commit b604e19

Browse files
author
Alan Colón
committed
feat: hide URL parameter
1 parent 970887c commit b604e19

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

docs/features/chat-features/url-params.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ The following table lists the available URL parameters, their function, and exam
2222
| `temporary-chat` | Marks the chat as temporary if set to `true`, for one-time sessions. | `/?temporary-chat=true` |
2323
| `code-interpreter` | Enables the code interpreter feature if set to `true`. | `/?code-interpreter=true` |
2424
| `image-generation` | Enables the image generation feature if set to `true`. | `/?image-generation=true` |
25+
| `hide` | Hides parts of the UI, specified as a comma-separated list. Supported values: `nav`, `sidebar`. | `/?hide=nav,sidebar` |
2526

2627
### 1. **Models and Model Selection**
2728

@@ -95,6 +96,18 @@ The following table lists the available URL parameters, their function, and exam
9596
- **Example**: `/?image-generation=true`
9697
- **Behavior**: Activates the image generation button to generate an image.
9798

99+
### 11. **Hide UI Elements**
100+
101+
- **Description**: The `hide` parameter allows you to hide parts of the UI to create a clean focused chat interface.
102+
- **How to Set**: Provide a comma-separated list of UI elements to hide. Supported values are:
103+
- `nav` - Hides the navigation bar on the top
104+
- `sidebar` - Hides the sidebar
105+
- **Example**:
106+
- `/?hide=nav` - Hides only the navigation bar
107+
- `/?hide=sidebar` - Hides only the sidebar
108+
- `/?hide=nav,sidebar` - Hides both the navigation bar and sidebar
109+
- **Behavior**: The specified UI elements are hidden.
110+
98111
<!-- markdownlint-disable-next-line MD033 -->
99112
<details>
100113
<!-- markdownlint-disable-next-line MD033 -->
@@ -113,7 +126,7 @@ Suppose a user wants to initiate a quick chat session without saving the history
113126
These URL parameters can be combined to create highly customized chat sessions. For example:
114127

115128
```bash
116-
/?models=model1,model2&youtube=VIDEO_ID&web-search=true&tools=tool1,tool2&call=true&q=Hello%20there&temporary-chat=true
129+
/?models=model1,model2&youtube=VIDEO_ID&web-search=true&tools=tool1,tool2&call=true&q=Hello%20there&temporary-chat=true&hide=nav,sidebar
117130
```
118131

119132
This URL will:
@@ -123,3 +136,4 @@ This URL will:
123136
- Display a call overlay.
124137
- Set an initial prompt of "Hello there."
125138
- Mark the chat as temporary, avoiding any history saving.
139+
- Hide the navigation bar and sidebar for a cleaner interface.

0 commit comments

Comments
 (0)