add image gen api

This commit is contained in:
2023-11-10 22:10:16 +08:00
parent 35f1e9f052
commit adeadd3586
4 changed files with 345 additions and 137 deletions

View File

@@ -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">