Skip to content

Commit

Permalink
fix: extract prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
jackmcguire1 committed May 16, 2024
1 parent 0c18f3c commit 9b33ddc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/api/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (h *Handler) DispatchIntents(ctx context.Context, req alexa.Request) (res a
prompt := req.Body.Intent.Slots["prompt"].Value
spaces := strings.Split(prompt, " ")
sourceLanguage := spaces[0]
targetLanguage := spaces[4]
targetLanguage := spaces[2]
promptToTranslate := strings.Split(prompt, targetLanguage)[1]

err = h.RequestsQueue.PushMessage(ctx, &chatmodels.Request{
Expand Down

0 comments on commit 9b33ddc

Please sign in to comment.