Skip to content

Commit

Permalink
remove default style parameter from jetpack-ai-image requests (#39494)
Browse files Browse the repository at this point in the history
  • Loading branch information
CGastrell authored Sep 23, 2024
1 parent 71992bd commit 469ba8e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: changed

AI Client: don't send a default style to jetpack-ai-image endpoint, default is handled in backend and we need to not send it until we're ready for it to be a user option
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ const useImageGenerator = () => {
prompt,
feature,
model: 'stable-diffusion',
style: 'photographic',
};

const data: ImageGenerationResponse = await executeImageGeneration( parameters );
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: other

Jetpack AI: remove style parameter from image generation requests until we mean it
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ export default function useAiImage( {
feature,
size: '1792x1024', // the size, when the generation happens with DALL-E-3
responseFormat: 'b64_json', // the response format, when the generation happens with DALL-E-3
style: 'photographic', // the style of the image, when the generation happens with Stable Diffusion
messages: [
{
role: 'jetpack-ai',
Expand Down

0 comments on commit 469ba8e

Please sign in to comment.