Skip to content

Commit

Permalink
upgrade to GPT-4
Browse files Browse the repository at this point in the history
  • Loading branch information
changkun authored Mar 15, 2023
1 parent d705b13 commit df50406
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/openai/openai_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func TestEdit(t *testing.T) {

func TestChat(t *testing.T) {
respCh, errCh := openai.Chat(context.Background(), &openai.ChatRequest{
Model: "gpt-3.5-turbo-0301",
Model: "gpt-4",
Stream: false,
Message: []openai.ChatMessage{
{
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func main() {
session = append(session, userMsg)

respCh, errCh := openai.Chat(context.Background(), &openai.ChatRequest{
Model: "gpt-3.5-turbo-0301",
Model: "gpt-4",
Stream: true,
Message: session,
})
Expand Down

0 comments on commit df50406

Please sign in to comment.