mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-07 07:42:13 +03:00
fix: support Antigravity image generation, Add Gemini 3.5 Flash (#2423)
Merged into release/v3.8.0
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user