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

18 lines
467 B
Python
Raw Normal View History

2024-05-11 23:00:43 +03:00
from __future__ import annotations
from typing import TYPE_CHECKING
from argparse import ArgumentParser
from . import migrate, fine_tunes
if TYPE_CHECKING:
from argparse import _SubParsersAction
def register_commands(parser: ArgumentParser, subparser: _SubParsersAction[ArgumentParser]) -> None:
migrate.register(subparser)
namespaced = parser.add_subparsers(title="Tools", help="Convenience client side tools")
fine_tunes.register(namespaced)