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

Pls add the latest GPT4-model #166

Closed noudAndi closed 10 months ago

noudAndi commented 10 months ago

Is your feature request related to a problem? Please describe.


Usage: sgpt [OPTIONS] [PROMPT]
Try 'sgpt --help' for help.
╭─ Error ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Invalid value for '--model': 'gpt-4-1106-preview' is not one of 'gpt-4', 'gpt-4-32k', 'gpt-3.5-turbo', 'gpt-3.5-turbo-16k'.                                                                                                                │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯```

### Describe the solution you'd like

Pls add the latest GPT4-model `gpt-4-1106-preview` to the allowed models

### Describe alternatives you've considered

_No response_

### Search

- [X] I did search for other open and closed issues before opening this

### Project

- [X] I have verified that I am using the Go implementation of SGPT (this project) and that it is not another project

### Code of Conduct

- [X] I agree to follow this project's Code of Conduct

### Additional context

_No response_
tbckr commented 10 months ago

Hey, thanks for your request.

I have no problems using the latest models:

$ sgpt -m "gpt-4-1106-preview" "say hello world in python" In Python, you can say "Hello, World!" by using the print() function, which outputs text to the console. Here is the code to do that:

print("Hello, World!")

When you run this Python code, the output will be:

Hello, World!

To me, it seems that you are using the python implementation (https://github.com/TheR1D/shell_gpt). Please make sure, you are using the correct version of sgpt before opening an issue here.