Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reduce number of arguments in openai_completion and openai_completion #37

Closed
wants to merge 1 commit into from

Conversation

makelinux
Copy link
Contributor

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]

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]>
@markmc
Copy link
Contributor

markmc commented Jul 3, 2024

Thanks for your contribution. However, I think now that #46 has merged, this code is no longer present?

@makelinux makelinux closed this Jul 3, 2024
@makelinux makelinux deleted the OpenAI-args branch August 22, 2024 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants