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
parent 269a465fc4
commit ae3f1ac0a9
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."""