mirror of
https://github.com/karpathy/nanochat.git
synced 2026-05-31 03:58:09 +00:00
fix(frontend): use any type for proxyUpstream body param
This commit is contained in:
parent
fe34250900
commit
7ecd8a928c
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user