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
210 stars 23 forks source link

fix: set missing role of received message #216

Closed tbckr closed 6 months ago

tbckr commented 6 months ago

this seems to be a bug in the OpenAI API or library (?) as the role is missing in the returned assistant message.

this is a workaround.

codecov[bot] commented 6 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (f495945) 75.66% compared to head (56b0fc2) 75.72%. Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #216 +/- ## ========================================== + Coverage 75.66% 75.72% +0.05% ========================================== Files 19 19 Lines 1278 1281 +3 ========================================== + Hits 967 970 +3 Misses 223 223 Partials 88 88 ```

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