-
- {!imageList.length && (
+ {
-
-
-
-
- {intl.formatMessage({ id: 'playground.params.empty.tips' })}
-
+ {renderImageEditor}
- )}
+ }
>
- {tokenResult && (
-
+
+
+
+
+ {intl.formatMessage({ id: 'playground.parameters' })}
+
+
+ }
+ onClick={handleToggleParamsStyle}
+ >
+ {isOpenaiCompatible
+ ? intl.formatMessage({
+ id: 'playground.image.params.custom'
+ })
+ : intl.formatMessage({
+ id: 'playground.image.params.openai'
+ })}
+
+
+
+ }
+ setParams={setParams}
+ paramsConfig={paramsConfig}
+ initialValues={initialValues}
+ params={parameters}
+ selectedModel={selectModel}
+ modelList={modelList}
+ extra={[renderCustomSize, ...renderExtra, ...renderAdvanced]}
+ />
- )}
-
+
+
{intl.formatMessage({ id: 'playground.image.prompt' })}
}
loading={loading}
- disabled={!parameters.model}
+ disabled={!parameters.model || mask === ''}
isEmpty={!imageList.length}
handleSubmit={handleSendMessage}
handleAbortFetch={handleStopConversation}
@@ -560,52 +769,6 @@ const GroundImages: React.FC = forwardRef((props, ref) => {
/>
-
-
-
-
- {intl.formatMessage({ id: 'playground.parameters' })}
-
-
- }
- onClick={handleToggleParamsStyle}
- >
- {isOpenaiCompatible
- ? intl.formatMessage({
- id: 'playground.image.params.custom'
- })
- : intl.formatMessage({
- id: 'playground.image.params.openai'
- })}
-
-
-
- }
- setParams={setParams}
- paramsConfig={paramsConfig}
- initialValues={initialValues}
- params={parameters}
- selectedModel={selectModel}
- modelList={modelList}
- extra={[renderCustomSize, ...renderExtra, ...renderAdvanced]}
- />
-
-