ai-content-maker/.venv/Lib/site-packages/openai/cli/_api/_main.py

17 lines
451 B
Python
Raw Permalink Normal View History

2024-05-11 23:00:43 +03:00
from __future__ import annotations
from argparse import ArgumentParser
from . import chat, audio, files, image, models, completions
def register_commands(parser: ArgumentParser) -> None:
subparsers = parser.add_subparsers(help="All API subcommands")
chat.register(subparsers)
image.register(subparsers)
audio.register(subparsers)
files.register(subparsers)
models.register(subparsers)
completions.register(subparsers)