feat(api): support custom BYO API header override on client fetches and backend config
This commit is contained in:
@@ -42,7 +42,7 @@ export async function POST(req: Request) {
|
||||
}
|
||||
|
||||
try {
|
||||
const config = loadEngineConfig();
|
||||
const config = loadEngineConfig(req.headers);
|
||||
const result = await visionDecide(config, body);
|
||||
return NextResponse.json(result);
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user