add check_valid_key helper function

This commit is contained in:
Krrish Dholakia 2023-09-08 20:36:39 -07:00
parent c556a51139
commit 679a4f318d

View file

@ -232,7 +232,8 @@ from .utils import (
completion_with_split_tests,
get_max_tokens,
register_prompt_template,
validate_environment
validate_environment,
check_valid_key
)
from .main import * # type: ignore
from .integrations import *
@ -242,5 +243,6 @@ from .exceptions import (
RateLimitError,
ServiceUnavailableError,
OpenAIError,
ContextWindowExceededError
ContextWindowExceededError,
)