We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0df0c57 commit 6de98acCopy full SHA for 6de98ac
pkg/waveai/googlebackend.go
@@ -18,13 +18,13 @@ var _ AIBackend = GoogleBackend{}
18
func (GoogleBackend) StreamCompletion(ctx context.Context, request wshrpc.WaveAIStreamRequest) chan wshrpc.RespOrErrorUnion[wshrpc.WaveAIPacketType] {
19
client, err := genai.NewClient(ctx, option.WithAPIKey(request.Opts.APIToken))
20
if err != nil {
21
- log.Fatalf("failed to create client: %v", err)
+ log.Printf("failed to create client: %v", err)
22
return nil
23
}
24
25
model := client.GenerativeModel(request.Opts.Model)
26
if model == nil {
27
- log.Fatal("model not found")
+ log.Println("model not found")
28
client.Close()
29
30
0 commit comments