-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reduce number of arguments in openai_completion and openai_completion
Several functions passes trough six argument verbatim to OpenAI client creation. It causes to very long argument lists and increases technological debt. Pass OpenAI client object instead of those six arguments to reduce duplicated code and increase repeatability. TODO: perform the same optimization with generate_data and cli too. Signed-off-by: Costa Shulyupin <[email protected]>
- Loading branch information
Showing
2 changed files
with
17 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters