MCPcopy Create free account
hub / github.com/Noumena-Network/code / getRequestId

Function getRequestId

src/services/api/openAICompatInferenceClient.ts:247–254  ·  view source on GitHub ↗
(response: Response, fallback?: string)

Source from the content-addressed store, hash-verified

245}
246
247function getRequestId(response: Response, fallback?: string): string | null {
248 return (
249 response.headers.get('request-id') ??
250 response.headers.get('x-request-id') ??
251 fallback ??
252 null
253 )
254}
255
256function createBaseUsage() {
257 return {

Calls 1

getMethod · 0.45

Tested by

no test coverage detected