settings: move image gen api button
This commit is contained in:
@@ -578,6 +578,19 @@ export default (props: {
|
|||||||
))}
|
))}
|
||||||
</select>
|
</select>
|
||||||
</Help>
|
</Help>
|
||||||
|
|
||||||
|
<div className="relative border-slate-300 border rounded">
|
||||||
|
<div className="flex justify-between">
|
||||||
|
<strong className="p-1 m-1">Image Gen API</strong>
|
||||||
|
<SetAPIsTemplate
|
||||||
|
label="Image Gen API"
|
||||||
|
endpoint={props.chatStore.image_gen_api}
|
||||||
|
APIkey={props.chatStore.image_gen_key}
|
||||||
|
tmps={props.templateAPIsImageGen}
|
||||||
|
setTmps={props.setTemplateAPIsImageGen}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<hr />
|
||||||
<Input
|
<Input
|
||||||
field="image_gen_key"
|
field="image_gen_key"
|
||||||
help="image generation service api key"
|
help="image generation service api key"
|
||||||
@@ -588,6 +601,7 @@ export default (props: {
|
|||||||
help="DALL image gen key, eg. https://api.openai.com/v1/images/generations"
|
help="DALL image gen key, eg. https://api.openai.com/v1/images/generations"
|
||||||
{...props}
|
{...props}
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div className="flex justify-between">
|
<div className="flex justify-between">
|
||||||
<p className="m-2 p-2">
|
<p className="m-2 p-2">
|
||||||
@@ -604,16 +618,6 @@ export default (props: {
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex justify-evenly flex-wrap">
|
<div className="flex justify-evenly flex-wrap">
|
||||||
{props.chatStore.image_gen_api && props.chatStore.image_gen_key && (
|
|
||||||
<SetAPIsTemplate
|
|
||||||
label="Image Gen API"
|
|
||||||
endpoint={props.chatStore.image_gen_api}
|
|
||||||
APIkey={props.chatStore.image_gen_key}
|
|
||||||
tmps={props.templateAPIsImageGen}
|
|
||||||
setTmps={props.setTemplateAPIsImageGen}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
|
|
||||||
{props.chatStore.toolsString.trim() && (
|
{props.chatStore.toolsString.trim() && (
|
||||||
<button
|
<button
|
||||||
className="p-2 m-2 rounded bg-blue-300"
|
className="p-2 m-2 rounded bg-blue-300"
|
||||||
|
|||||||
Reference in New Issue
Block a user