|
28 | 28 | from together.lib.cli.utils._completion import install_completion |
29 | 29 | from together.lib.cli.utils._help_examples import ( |
30 | 30 | EVALS_HELP_EXAMPLES, |
| 31 | + FILES_HELP_EXAMPLES, |
31 | 32 | MODELS_HELP_EXAMPLES, |
32 | 33 | ENDPOINTS_HELP_EXAMPLES, |
33 | 34 | TOP_LEVEL_HELP_EXAMPLES, |
34 | 35 | FINE_TUNING_HELP_EXAMPLES, |
35 | 36 | EVALS_CREATE_HELP_EXAMPLES, |
| 37 | + FILES_UPLOAD_HELP_EXAMPLES, |
36 | 38 | MODELS_UPLOAD_HELP_EXAMPLES, |
37 | 39 | ENDPOINTS_CREATE_HELP_EXAMPLES, |
38 | 40 | ENDPOINTS_UPDATE_HELP_EXAMPLES, |
39 | 41 | ENDPOINTS_HARDWARE_HELP_EXAMPLES, |
40 | 42 | FINE_TUNING_CREATE_HELP_EXAMPLES, |
41 | 43 | FINE_TUNING_DOWNLOAD_HELP_EXAMPLES, |
| 44 | + FILES_RETRIEVE_CONTENT_HELP_EXAMPLES, |
42 | 45 | ) |
43 | 46 | from together.lib.cli.utils._help_formatter import help_formatter |
44 | 47 | from together.lib.cli.utils._preparse_tokens import preparse_tokens |
@@ -308,11 +311,21 @@ async def run_command() -> None: |
308 | 311 | _CLI = "together.lib.cli.api" |
309 | 312 |
|
310 | 313 | ## Files API commands |
311 | | -files_app = app.command(App(name="files", help="Upload and manage files")) |
312 | | -files_app.command(f"{_CLI}.files.upload:upload", help="Upload a file for fine-tuning, evals, or inference") |
| 314 | +files_app = app.command(App(name="files", help="Upload and manage files", help_epilogue=FILES_HELP_EXAMPLES)) |
| 315 | +files_app.command( |
| 316 | + f"{_CLI}.files.upload:upload", |
| 317 | + help="Upload a file for fine-tuning, evals, or inference", |
| 318 | + help_epilogue=FILES_UPLOAD_HELP_EXAMPLES, |
| 319 | +) |
313 | 320 | files_app.command(f"{_CLI}.files.list:list", alias="ls", help="List your files") |
314 | 321 | files_app.command(f"{_CLI}.files.retrieve:retrieve", help="Get file details") |
315 | | -files_app.command(f"{_CLI}.files.retrieve_content:retrieve_content", help="Download file contents") |
| 322 | +files_app.command(f"{_CLI}.files.retrieve_content:retrieve_content", help="Download file contents", show=False) |
| 323 | +files_app.command( |
| 324 | + f"{_CLI}.files.retrieve_content:retrieve_content", |
| 325 | + name="download", |
| 326 | + help="Download file contents", |
| 327 | + help_epilogue=FILES_RETRIEVE_CONTENT_HELP_EXAMPLES, |
| 328 | +) |
316 | 329 | files_app.command(f"{_CLI}.files.delete:delete", alias="-d", help="Delete a file") |
317 | 330 | files_app.command(f"{_CLI}.files.check:check", help="Check a local file for issues") |
318 | 331 |
|
|
0 commit comments