Skip to content

Commit 9250ee1

Browse files
author
{cocoide}
committed
chore
1 parent 62f9014 commit 9250ee1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/suggest.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ func NewSuggestModel() *suggestModel {
129129
if err != nil {
130130
log.Fatalf("設定ファイルの読み込みができませんでした")
131131
}
132-
nlp := gateway.NewOpenAIGateway(context.Background())
133132
switch config.WithGptRequestLocation() {
134133
case entity.Local:
134+
nlp := gateway.NewOpenAIGateway(context.Background())
135135
commitMessageService = gateway.NewLocalMessageService(nlp)
136136
case entity.Server:
137137
commitMessageService = gateway.NewGrpcServerGateway()

0 commit comments

Comments
 (0)