update mj history

This commit is contained in:
AceDataCloud committed 2023-12-17 22:31:58 +08:00
1 parent d4e406feab
commit 443375fbed
22 files changed
+780 -99

No files matched your search

+4 -3
View File
@@ -1,3 +1,4 @@
import i18n from '@/i18n';
import { IMidjourneyChannel } from './models';
export const MIDJOURNEY_CHANNEL_NAME_FAST = 'fast';
@@ -12,19 +13,19 @@ export const MIDJOURNEY_CHANNEL_FAST: IMidjourneyChannel = {
icon: 'fa-solid fa-wind',
apiId: API_ID_MIDJOURNEY_FAST,
name: MIDJOURNEY_CHANNEL_NAME_FAST,
displayName: 'Fast'
displayName: i18n.global.t('midjourney.button.fast')
};
export const MIDJOURNEY_CHANNEL_RELAX: IMidjourneyChannel = {
icon: 'fa-solid fa-mug-saucer',
apiId: API_ID_MIDJOURNEY_RELAX,
name: MIDJOURNEY_CHANNEL_NAME_RELAX,
displayName: 'Relax'
displayName: i18n.global.t('midjourney.button.relax')
};
export const MIDJOURNEY_CHANNEL_TURBO: IMidjourneyChannel = {
icon: 'fa-solid fa-bolt',
apiId: API_ID_MIDJOURNEY_TURBO,
name: MIDJOURNEY_CHANNEL_NAME_TURBO,
displayName: 'Turbo'
displayName: i18n.global.t('midjourney.button.turbo')
};
+4
View File
@@ -57,6 +57,8 @@ export interface IMidjourneyImagineRequest {
prompt?: string;
image_id?: string;
translation?: boolean;
callback_url?: string;
application_id?: string;
}
export interface IMidjourneyImagineResponse {
@@ -72,6 +74,8 @@ export interface IMidjourneyImagineResponse {
}
export interface IMidjourneyImagineTask {
id: string;
created_at?: string;
request?: IMidjourneyImagineRequest;
response?: IMidjourneyImagineResponse;
state?: MidjourneyImagineState;
+1 -1
View File
@@ -40,7 +40,7 @@ class MidjourneyOperator {
async imagine(
data: IMidjourneyImagineRequest,
options: {
stream: (response: IMidjourneyImagineResponse) => void;
stream?: (response: IMidjourneyImagineResponse) => void;
token: string;
endpoint: string;
path: string;