You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/user-guides/cli.md
+79Lines changed: 79 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -146,3 +146,82 @@ Options:
146
146
--use-active-decorator --no-use-active-decorator If the migration should use the active decorator. [default: use-active-decorator]
147
147
--help Show this message and exit.
148
148
```
149
+
### providers
150
+
151
+
```bash
152
+
> nemoguardrails providers --help
153
+
154
+
Usage: nemoguardrails providers [OPTIONS]
155
+
156
+
Interactive provider selection.
157
+
158
+
This command provides an interactive interface to selectbetween text completion
159
+
and chat completion providers. It will guide you through selecting the type of
160
+
provider (text completion or chat completion) and then show you the available
161
+
providers for that type.
162
+
163
+
Options:
164
+
--list, -l Just list all available providers without interactive selection
165
+
--help Show this message and exit.
166
+
```
167
+
168
+
### Providers Command
169
+
170
+
The `providers`command provides an interactive interface to explore and selectLLM providers. It supports both text completion and chat completion providers.
171
+
172
+
```bash
173
+
nemoguardrails providers [--list]
174
+
```
175
+
176
+
### Options
177
+
178
+
- `--list`, `-l`: Just list all available providers without interactive selection
179
+
180
+
### Interactive Mode
181
+
182
+
When run without the `--list` option, the command provides an interactive interface:
183
+
184
+
1. First, you'll be prompted to select a provider type:
185
+
- Type to filter between "text completion" and "chat completion"
186
+
- Use arrow keys to navigate through matches
187
+
- Press Tab to autocomplete
188
+
- Press Enter to select
189
+
190
+
2. Then, you'll be prompted to selecta specific provider:
191
+
- Type to filter through available providers
192
+
- Use arrow keys to navigate through matches
193
+
- Press Tab to autocomplete
194
+
- Press Enter to select
195
+
- The selected provider name is automatically copied to your clipboard
196
+
197
+
### Example Usage
198
+
199
+
```bash
200
+
# List all available providers
201
+
nemoguardrails providers --list
202
+
203
+
# Interactive provider selection
204
+
nemoguardrails providers
205
+
```
206
+
207
+
### Example Output
208
+
209
+
```
210
+
Available Provider Types: (type to filter, use arrows to select)
211
+
• text completion
212
+
• chat completion
213
+
214
+
Select provider type: text
215
+
216
+
Available text completion providers: (type to filter, use arrows to select)
0 commit comments