PullRequestInc / go-gpt3

An OpenAI GPT-3 API client enabling Go/Golang programs to interact with the gpt3 APIs.
MIT License
393 stars 65 forks source link

Fix compile error in test #34

Closed yorinasub17 closed 1 year ago

yorinasub17 commented 1 year ago

This fixes a compile error in the test code. I was getting the following error when I ran go test on the main branch:

%~> go test -v -run TestFoo .
# github.com/PullRequestInc/go-gpt3_test [github.com/PullRequestInc/go-gpt3.test]
./gpt3_test.go:201:16: cannot use []gpt3.ChatCompletionResponseMessage{…} (value of type []gpt3.ChatCompletionResponseMessage) as type gpt3.ChatCompletionResponseMessage in struct literal
FAIL    github.com/PullRequestInc/go-gpt3 [build failed]
FAIL