feat: generate images

This commit is contained in:
jialin
2024-11-22 10:00:34 +08:00
parent 84e0c46711
commit f24aef300b
18 changed files with 725 additions and 114 deletions
@@ -33,6 +33,12 @@ interface MessageProps {
ref?: any;
}
const initialValues = {
voice: 'Alloy',
response_format: 'mp3',
speed: 1
};
const GroundLeft: React.FC<MessageProps> = forwardRef((props, ref) => {
const { modelList } = props;
const messageId = useRef<number>(0);
@@ -57,12 +63,6 @@ const GroundLeft: React.FC<MessageProps> = forwardRef((props, ref) => {
const { initialize, updateScrollerPosition } = useOverlayScroller();
const { initialize: innitializeParams } = useOverlayScroller();
const initialValues = {
voice: 'Alloy',
response_format: 'mp3',
speed: 1
};
useImperativeHandle(ref, () => {
return {
viewCode() {