tbckr / sgpt

SGPT is a command-line tool that provides a convenient way to interact with OpenAI models, enabling users to run queries, generate shell commands and produce code directly from the terminal.
MIT License
232 stars 24 forks source link

feat: adds support for stream mode #183

Closed tbckr closed 9 months ago

tbckr commented 9 months ago

Add support for stream mode.

Additionally, refactoring was done to implement this feature. The directory layout was restructured to the go pkg format.

codecov[bot] commented 9 months ago

Codecov Report

Attention: 25 lines in your changes are missing coverage. Please review.

Comparison is base (b90605c) 75.40% compared to head (d5a48cc) 75.59%. Report is 1 commits behind head on main.

Files Patch % Lines
pkg/api/api.go 73.97% 13 Missing and 6 partials :warning:
pkg/cli/root.go 64.70% 4 Missing and 2 partials :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #183 +/- ## ========================================== + Coverage 75.40% 75.59% +0.19% ========================================== Files 16 19 +3 Lines 1053 1176 +123 ========================================== + Hits 794 889 +95 - Misses 184 207 +23 - Partials 75 80 +5 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.