Skip to content

Conversation

yorinasub17
Copy link
Contributor

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

Signed-off-by: Yoriyasu Yano <430092+yorinasub17@users.noreply.github.com>
Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ This pull request was sent to the PullRequest network.


@yorinasub17 you can click here to see the review status or cancel the code review job.

Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PullRequest Breakdown

Reviewable lines of change

+ 3
- 5

100% Go (tests)

Type of change

Fix - These changes are likely to be fixing a bug or issue.

Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to update the types in the test file.

Image of David K David K


Reviewed with ❤️ by PullRequest

Copy link
Contributor

@tylermann tylermann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the fix here!

@tylermann tylermann merged commit 8e4b506 into PullRequestInc:main Mar 20, 2023
@yorinasub17 yorinasub17 deleted the bug/test-build-failure branch March 22, 2023 03:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants