Skip to content

Commit

Permalink
feat: use the model name types
Browse files Browse the repository at this point in the history
  • Loading branch information
jackmcguire1 committed Dec 15, 2023
1 parent 2546130 commit e69ebd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/api/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ func (h *Handler) DispatchIntents(ctx context.Context, req alexa.Request) (res a
h.Logger.With("model", model).Info("found model to use")

switch strings.ToLower(model) {
case "gemini":
case chatmodels.CHAT_MODEL_GEMINI.String():
h.Model = chatmodels.CHAT_MODEL_GEMINI
res = alexa.NewResponse("Autocomplete", "ok", false)
return
case "gpt":
case chatmodels.CHAT_MODEL_GPT.String():
h.Model = chatmodels.CHAT_MODEL_GPT
res = alexa.NewResponse("Autocomplete", "ok", false)
return
Expand Down

0 comments on commit e69ebd0

Please sign in to comment.