Skip to content

Commit

Permalink
fix: log
Browse files Browse the repository at this point in the history
  • Loading branch information
jackmcguire1 committed May 16, 2024
1 parent 9b33ddc commit 58f5ae0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/dom/chatmodels/cloudflare_ai_worker_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,9 @@ func (api *CloudflareApiClient) GenerateTranslation(ctx context.Context, req *Ge
return "", err
}

slog.Info("generated translation response: %s", string(data))
slog.
With("response", string(data)).
Info("generated translation response")

type Result struct {
TranslatedText string `json:"translated_text"`
Expand Down

0 comments on commit 58f5ae0

Please sign in to comment.