add image gen api
This commit is contained in:
@@ -87,7 +87,9 @@ const Input = (props: {
|
||||
| "whisper_api"
|
||||
| "whisper_key"
|
||||
| "tts_api"
|
||||
| "tts_key";
|
||||
| "tts_key"
|
||||
| "image_gen_api"
|
||||
| "image_gen_key";
|
||||
help: string;
|
||||
}) => {
|
||||
const [hideInput, setHideInput] = useState(true);
|
||||
@@ -492,6 +494,16 @@ export default (props: {
|
||||
help={"TTS Speed"}
|
||||
{...props}
|
||||
/>
|
||||
<Input
|
||||
field="image_gen_api"
|
||||
help="DALL image gen key, eg. https://api.openai.com/v1/images/generations"
|
||||
{...props}
|
||||
/>
|
||||
<Input
|
||||
field="image_gen_key"
|
||||
help="image generation service api key"
|
||||
{...props}
|
||||
/>
|
||||
|
||||
<div className="flex justify-between">
|
||||
<p className="m-2 p-2">
|
||||
|
||||
Reference in New Issue
Block a user