Skip to content

Commit

Permalink
fix: dall-e parameters & default image model
Browse files Browse the repository at this point in the history
  • Loading branch information
jackmcguire1 committed Nov 10, 2024
1 parent e5d67a9 commit c5a5461
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions cmd/alexa/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func main() {
PollDelay: pollDelay,
Logger: logger,
Model: chatmodels.CHAT_MODEL_GPT,
ImageModel: chatmodels.IMAGE_MODEL_STABLE_DIFFUSION,
}
lambda.Start(h.Invoke)
}
3 changes: 2 additions & 1 deletion internal/dom/chatmodels/gpt_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ func (api *OpenAIApiClient) GenerateImage(ctx context.Context, prompt string, mo
req := openai.ImageRequest{
Model: model,
Prompt: prompt,
Size: openai.CreateImageSize256x256,
Size: openai.CreateImageSize1024x1024,
ResponseFormat: openai.CreateImageResponseFormatB64JSON,
Quality: "standard",
N: 1,
}

Expand Down

0 comments on commit c5a5461

Please sign in to comment.