fix: support Antigravity image generation, Add Gemini 3.5 Flash (#2423)

Merged into release/v3.8.0
This commit is contained in:
backryun
2026-05-20 20:35:40 +09:00
committed by GitHub
parent 50f5d95a2f
commit b654a1ebe7
3 changed files with 3 additions and 3 deletions

View File

@@ -24,7 +24,7 @@ export async function GET(request: NextRequest) {
const token = authHeader.slice(7);
const tokenHash = crypto
.pbkdf2Sync(token, "omniroute-federation-salt", 1000, 32, "sha256")
.pbkdf2Sync(token, "omniroute-federation-salt", 120000, 32, "sha256")
.toString("hex");
const { getDbInstance } = await import("@/lib/db/core");
const db = getDbInstance();

View File

@@ -22,7 +22,7 @@ export async function POST(request: NextRequest) {
const token = authHeader.slice(7);
const tokenHash = crypto
.pbkdf2Sync(token, "omniroute-federation-salt", 1000, 32, "sha256")
.pbkdf2Sync(token, "omniroute-federation-salt", 120000, 32, "sha256")
.toString("hex");
const { getDbInstance } = await import("@/lib/db/core");
const db = getDbInstance();

View File

@@ -25,7 +25,7 @@ export async function connectServer(
): Promise<ServerConnection> {
const id = crypto.randomUUID();
const apiKeyHash = crypto
.pbkdf2Sync(apiKey, "omniroute-federation-salt", 1000, 32, "sha256")
.pbkdf2Sync(apiKey, "omniroute-federation-salt", 120000, 32, "sha256")
.toString("hex");
const { connectServer: dbConnect } = await import("../db/gamification");