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 gpt-4-vison #184

Closed tbckr closed 9 months ago

tbckr commented 9 months ago

This PR adds support for the gpt-4-vision model enabling the user to ask questions about provided images.

Note: we will wait until the openai library has released a stable version for access to the model - right now the master version is used.

codecov[bot] commented 9 months ago

Codecov Report

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

Comparison is base (5d1c773) 75.59% compared to head (caa0bbc) 75.66%. Report is 4 commits behind head on main.

Files Patch % Lines
pkg/api/api.go 83.33% 15 Missing and 6 partials :warning:
pkg/fs/fs.go 66.66% 6 Missing and 3 partials :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #184 +/- ## ========================================== + Coverage 75.59% 75.66% +0.06% ========================================== Files 19 19 Lines 1176 1278 +102 ========================================== + Hits 889 967 +78 - Misses 207 223 +16 - Partials 80 88 +8 ```

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