Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/ChatGPTNextWeb/NextChat
/ getAuthHeader
Function
getAuthHeader
app/client/api.ts:320–328 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
318
}
319
320
function
getAuthHeader(): string {
321
return
isAzure
322
?
"api-key"
323
: isAnthropic
324
?
"x-api-key"
325
: isGoogle
326
?
"x-goog-api-key"
327
:
"Authorization"
;
328
}
329
330
const
{
331
isGoogle,
Callers
1
getHeaders
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected