This commit is contained in:
2026-01-10 09:14:37 +08:00
parent f7be1abd81
commit e525d68648
10 changed files with 249 additions and 14 deletions

View File

@@ -14,7 +14,9 @@ export const jimengService = useContextKey('jimeng', new JimengService({
baseUrl: config.JIMENG_API_URL,
timeout: parseInt(config.JIMENG_TIMEOUT || '300000'),
}));
export {
getRedisConnection
}
export const ossService = useContextKey('oss', new OSSService({
accessKeyId: config.S3_ACCESS_KEY_ID,
accessKeySecret: config.S3_ACCESS_KEY_SECRET,
@@ -32,4 +34,7 @@ export const app = useContextKey('app', new App());
export const ai = useContextKey('ai', new Kevisual({
apiKey: config.KEVISUAL_NEW_API_KEY,
}));
model: 'qwen-turbo',
}));
export const sleep = (ms: number) => new Promise(resolve => setTimeout(resolve, ms));