feat: support gpt-3.5-turbo-instruct model (#1195)

This commit is contained in:
takatost 2023-09-19 02:05:04 +08:00 • committed by GitHub
commit ae3f1ac0a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 25 additions and 9 deletions

View file

@ -14,6 +14,9 @@ class EnhanceOpenAI(OpenAI):
max_retries: int = 1
"""Maximum number of retries to make when generating."""
def __new__(cls, **data: Any): # type: ignore
return super(EnhanceOpenAI, cls).__new__(cls)
@root_validator()
def validate_environment(cls, values: Dict) -> Dict:
"""Validate that api key and python package exists in environment."""