feat: support dalle api

This commit is contained in:
ikechan8370 2023-02-25 11:38:34 +08:00
parent 47976f2325
commit 8c9c098e25
5 changed files with 81 additions and 1 deletions

View file

@ -20,7 +20,7 @@ export function escapeHtml (str) {
return str.replace(/[&<>"'/]/g, (match) => htmlEntities[match])
}
export function randomString(length = 5) {
export function randomString (length = 5) {
let str = ''
for (let i = 0; i < length; i++) {
str += lodash.random(36).toString(36)