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

Improve functionality and performance #13

Merged
merged 26 commits into from
Sep 5, 2024

Conversation

ktevfik
Copy link
Contributor

@ktevfik ktevfik commented Aug 22, 2024

Hello,

I have implemented some improvements to make the application more efficient and seamless. This is my first pull request in Python, and I look forward to your valuable feedback.

Best regards.

…fig.py

Signed-off-by: Mustafa Tevfik Kadan <mtevfik41@gmail.com>
Signed-off-by: Mustafa Tevfik Kadan <mtevfik41@gmail.com>
Signed-off-by: Mustafa Tevfik Kadan <mtevfik41@gmail.com>
…ngs in tox.ini

Signed-off-by: Mustafa Tevfik Kadan <mtevfik41@gmail.com>
…tialize_openai_client functions

Signed-off-by: Mustafa Tevfik Kadan <mtevfik41@gmail.com>
…ponse generation logic.

Signed-off-by: Mustafa Tevfik Kadan <mtevfik41@gmail.com>
Signed-off-by: Mustafa Tevfik Kadan <mtevfik41@gmail.com>
… and click.

Signed-off-by: Mustafa Tevfik Kadan <mtevfik41@gmail.com>
Signed-off-by: Mustafa Tevfik Kadan <mtevfik41@gmail.com>
…nhancements

Signed-off-by: Mustafa Tevfik Kadan <mtevfik41@gmail.com>
Signed-off-by: Mustafa Tevfik Kadan <mtevfik41@gmail.com>
…en handling, update completion and repl commands.

Signed-off-by: Mustafa Tevfik Kadan <mtevfik41@gmail.com>
@peterdemin
Copy link
Owner

Thanks, I'll take a look on the weekend

src/openai_cli/cli.py Outdated Show resolved Hide resolved
@peterdemin
Copy link
Owner

Overall, the code looks pretty good for the first time 😉 I find this style of unit tests shallow and does not provide a good safety net, but I won't block the PR on it.
Unfortunately, OpenAI rejects my credit card, and I ran out of credits, so I can't check the new version manually... And I haven't been using it for some time, because I kinda abandoned another project that relied on this. Which makes you the primary user and developer on the project 😆 I'll merge the changes and release the new major version once you're happy with it.

@ktevfik
Copy link
Contributor Author

ktevfik commented Aug 25, 2024

thanks for your reviews. i am going to do corrections asap.

Signed-off-by: Mustafa Tevfik Kadan <mtevfik41@gmail.com>
Signed-off-by: Mustafa Tevfik Kadan <mtevfik41@gmail.com>
Signed-off-by: Mustafa Tevfik Kadan <mtevfik41@gmail.com>
Signed-off-by: Mustafa Tevfik Kadan <mtevfik41@gmail.com>
…history and error handling

Signed-off-by: Mustafa Tevfik Kadan <mtevfik41@gmail.com>
…ling

Signed-off-by: Mustafa Tevfik Kadan <mtevfik41@gmail.com>
Signed-off-by: Mustafa Tevfik Kadan <mtevfik41@gmail.com>
… base URL

Signed-off-by: Mustafa Tevfik Kadan <mtevfik41@gmail.com>
Signed-off-by: Mustafa Tevfik Kadan <mtevfik41@gmail.com>
@ktevfik
Copy link
Contributor Author

ktevfik commented Aug 28, 2024

Hi again, could you please review this when you're available? If it's okay, I'll update the README.md as well. @peterdemin

… history assertions

Signed-off-by: Mustafa Tevfik Kadan <mtevfik41@gmail.com>
…error handling

Signed-off-by: Mustafa Tevfik Kadan <mtevfik41@gmail.com>
@peterdemin
Copy link
Owner

Thanks! This is great!

@peterdemin peterdemin merged commit 2a6156e into peterdemin:main Sep 5, 2024
1 of 9 checks passed
@peterdemin
Copy link
Owner

Released 1.0.0: https://pypi.org/project/openai-cli/1.0.0/

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