Skip to content

Commit

Permalink
fix: add translation log
Browse files Browse the repository at this point in the history
  • Loading branch information
jackmcguire1 committed May 16, 2024
1 parent 89fa593 commit fdb1b51
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/dom/chatmodels/cloudflare_ai_worker_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"encoding/json"
"fmt"
"io"
"log/slog"
"net/http"

"github.com/jackmcguire1/alexa-chatgpt/internal/pkg/utils"
Expand Down Expand Up @@ -175,6 +176,8 @@ func (api *CloudflareApiClient) GenerateTranslation(ctx context.Context, req *Ge
return "", err
}

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

Check failure on line 179 in internal/dom/chatmodels/cloudflare_ai_worker_api.go

View workflow job for this annotation

GitHub Actions / build-deploy

call to slog.Info missing a final value

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

0 comments on commit fdb1b51

Please sign in to comment.