File tree Expand file tree Collapse file tree 3 files changed +0
-10
lines changed
Expand file tree Collapse file tree 3 files changed +0
-10
lines changed Original file line number Diff line number Diff line change 1515 with :
1616 fetch-depth : 0 # Changelog γζ£γγεδ½γγγγγγ«εΏ
θ¦
1717
18- - name : Install GoReleaser and mockgen
19- run : |
20- wget https://github.com/goreleaser/goreleaser/releases/latest/download/goreleaser_amd64 -O /tmp/goreleaser
21- chmod +x /tmp/goreleaser
22- sudo mv /tmp/goreleaser /usr/local/bin/goreleaser
23- go get github.com/golang/mock/mockgen
24- env :
25- GO111MODULE : on
2618 # Go γγ»γγγ’γγ
2719 - uses : actions/setup-go@v3
2820 with :
Original file line number Diff line number Diff line change 11.PHONY : test
22
33test :
4- go generate ./...
54 go test -v ./internal/service
Original file line number Diff line number Diff line change 88 "github.com/sashabaranov/go-openai"
99)
1010
11- //go:generate mockgen -source=openai.go -destination=../../mock/openai.go
1211type OpenAIGateway interface {
1312 GetAnswerFromPrompt (prompt string , variability float32 ) (string , error )
1413 AsyncGetAnswerFromPrompt (prompt string , variability float32 ) <- chan string
You canβt perform that action at this time.
0 commit comments