Skip to content

Commit

Permalink
chore: add openai timeout request & ai block result padding
Browse files Browse the repository at this point in the history
  • Loading branch information
Soare-Robert-Daniel committed Aug 10, 2023
1 parent 44e4afb commit 899e4c7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
1 change: 1 addition & 0 deletions inc/server/class-prompt-server.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ function ( $key ) {
'Content-Type' => 'application/json',
),
'body' => wp_json_encode( $body ),
'timeout' => 2 * MINUTE_IN_SECONDS,
)
);

Expand Down
12 changes: 9 additions & 3 deletions src/blocks/blocks/content-generator/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,15 @@
border: 1px solid #1E1E1E;
}

.prompt-result__content .wp-block-themeisle-blocks-form .wp-block-button {
display: none;
}
.prompt-result__content {
.wp-block-themeisle-blocks-form .wp-block-button {
display: none;
}

&> div:not(.prompt-input__container):last-child {
padding: 10px;
}
}

.o-actions {
display: flex;
Expand Down
4 changes: 0 additions & 4 deletions src/blocks/components/prompt/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@
align-items: center;
justify-content: center;
margin-top: 10px;

:not(:last-child) {
margin-bottom: 10px;
}

.prompt-input__input__container {
display: flex;
Expand Down

0 comments on commit 899e4c7

Please sign in to comment.