Skip to content

Commit

Permalink
fix: image model handling in sqs handler
Browse files Browse the repository at this point in the history
  • Loading branch information
jackmcguire1 committed Nov 10, 2024
1 parent 72a1e92 commit e5d67a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/sqs/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (handler *SqsHandler) ProcessChatGPTRequest(ctx context.Context, req *chatm

if req.ImageModel != nil {
switch *req.ImageModel {
case chatmodels.IMAGE_MODEL_STABLE_DIFFUSION, chatmodels.IMAGE_MODEL_DALL_E_2:
case chatmodels.IMAGE_MODEL_STABLE_DIFFUSION, chatmodels.IMAGE_MODEL_DALL_E_2, chatmodels.IMAGE_MODEL_DALL_E_3:
imageBody, err := handler.ChatModelSvc.GenerateImage(ctx, req.Prompt, *req.ImageModel)
if err != nil {
handler.Logger.
Expand Down

0 comments on commit e5d67a9

Please sign in to comment.