Eliminate xAIGen and LTX; AIGen is the only studio.
Drop the studio split, backup-to-xAIGen link, and LTX engine option. Show all LoRAs on AIGen and remove the Photos show/hide inputs toggle so slots stay visible. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { createHash, timingSafeEqual } from 'node:crypto'
|
||||
import type { H3Event } from 'h3'
|
||||
import { isXaigenStudio } from '~/utils/videoModels'
|
||||
import { passwordAuthEnabled, privateInstanceId } from '~/server/utils/localAuth'
|
||||
|
||||
function configuredApiKey() {
|
||||
@@ -30,7 +29,6 @@ export function aigenApiKeyConfigured() {
|
||||
}
|
||||
|
||||
export function aigenBearerAuthorized(event: H3Event) {
|
||||
if (isXaigenStudio()) return false
|
||||
const expected = configuredApiKey()
|
||||
if (!expected) return false
|
||||
const header = String(getHeader(event, 'authorization') || '')
|
||||
@@ -46,7 +44,5 @@ export function aigenApiPathAllowed(path: string, method: string) {
|
||||
}
|
||||
|
||||
export function assertAigenFeature() {
|
||||
if (isXaigenStudio()) {
|
||||
throw createError({ statusCode: 404, statusMessage: 'Not found' })
|
||||
}
|
||||
/* AIGen API is always available on the single studio deployment. */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user