Skip to content

Commit 1b8c6c6

Browse files
committed
fix(skip): do not skip auth when recording a new cassette
1 parent d999fec commit 1b8c6c6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

providertests/google_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func vertexBuilder(model string) builderFunc {
8484
provider := google.New(
8585
google.WithVertex(os.Getenv("FANTASY_VERTEX_PROJECT"), os.Getenv("FANTASY_VERTEX_LOCATION")),
8686
google.WithHTTPClient(&http.Client{Transport: r}),
87-
google.WithSkipAuth(true),
87+
google.WithSkipAuth(!r.IsRecording()),
8888
)
8989
return provider.LanguageModel(model)
9090
}

0 commit comments

Comments
 (0)