ai-content-maker/.venv/Lib/site-packages/openai/_extras/_common.py

22 lines
364 B
Python
Raw Normal View History

2024-05-11 23:00:43 +03:00
from .._exceptions import OpenAIError
INSTRUCTIONS = """
OpenAI error:
missing `{library}`
This feature requires additional dependencies:
$ pip install openai[{extra}]
"""
def format_instructions(*, library: str, extra: str) -> str:
return INSTRUCTIONS.format(library=library, extra=extra)
class MissingDependencyError(OpenAIError):
pass