@yrpri/api 9.0.97 → 9.0.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -14,7 +14,7 @@ const dbModels = models;
|
|
|
14
14
|
const Image = dbModels.Image;
|
|
15
15
|
const AcBackgroundJob = dbModels.AcBackgroundJob;
|
|
16
16
|
const disableFlux = false;
|
|
17
|
-
const useImagen =
|
|
17
|
+
const useImagen = false;
|
|
18
18
|
export class CollectionImageGenerator {
|
|
19
19
|
constructor() {
|
|
20
20
|
this.s3Service = new S3Service(process.env.CLOUDFLARE_API_KEY, process.env.CLOUDFLARE_ZONE_ID);
|
|
@@ -35,6 +35,7 @@ export class DalleImageGenerator {
|
|
|
35
35
|
else if (type === "icon") {
|
|
36
36
|
size = "1024x1024";
|
|
37
37
|
}
|
|
38
|
+
const modelQuality = "standard";
|
|
38
39
|
while (retrying && retryCount < this.maxRetryCount) {
|
|
39
40
|
try {
|
|
40
41
|
// If using Azure OpenAI
|
|
@@ -43,7 +44,7 @@ export class DalleImageGenerator {
|
|
|
43
44
|
prompt,
|
|
44
45
|
n: 1,
|
|
45
46
|
size,
|
|
46
|
-
quality:
|
|
47
|
+
quality: modelQuality,
|
|
47
48
|
});
|
|
48
49
|
}
|
|
49
50
|
else {
|
|
@@ -53,7 +54,7 @@ export class DalleImageGenerator {
|
|
|
53
54
|
prompt,
|
|
54
55
|
n: 1,
|
|
55
56
|
size,
|
|
56
|
-
quality:
|
|
57
|
+
quality: modelQuality,
|
|
57
58
|
});
|
|
58
59
|
}
|
|
59
60
|
if (result) {
|