Merge pull request #35 from manmohan659/fix/stream-body-format

fix(frontend): type fix for proxyUpstream
This commit is contained in:
Manmohan 2026-04-16 17:53:02 -04:00 committed by GitHub
commit 2dd914a69d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -18,7 +18,8 @@ function sseEvent(data: Record<string, unknown>) {
return encoder.encode(`data: ${JSON.stringify(data)}\n\n`);
}
async function proxyUpstream(body: Record<string, unknown>, upstreamUrl: string, authHeader: string | null) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
async function proxyUpstream(body: any, upstreamUrl: string, authHeader: string | null) {
const headers: Record<string, string> = { 'Content-Type': 'application/json' };
if (authHeader) headers['Authorization'] = authHeader;