diff --git a/internal/dom/chatmodels/cloudflare_ai_worker_api.go b/internal/dom/chatmodels/cloudflare_ai_worker_api.go index 9f3385a..6848fc3 100644 --- a/internal/dom/chatmodels/cloudflare_ai_worker_api.go +++ b/internal/dom/chatmodels/cloudflare_ai_worker_api.go @@ -6,6 +6,7 @@ import ( "encoding/json" "fmt" "io" + "log/slog" "net/http" "github.com/jackmcguire1/alexa-chatgpt/internal/pkg/utils" @@ -175,6 +176,8 @@ func (api *CloudflareApiClient) GenerateTranslation(ctx context.Context, req *Ge return "", err } + slog.Info("generated translation response: %s", string(data)) + type Result struct { TranslatedText string `json:"translated_text"` }