( obj: Record<string, unknown> )
| 4 | value !== null && typeof value === "object" && !Array.isArray(value); |
| 5 | |
| 6 | const collectStringEntries = ( |
| 7 | obj: Record<string, unknown> |
| 8 | ): Record<string, string> => { |
| 9 | const out: Record<string, string> = {}; |
| 10 | |
| 11 | for (const [key, value] of Object.entries(obj)) { |
| 12 | if (typeof value === "string") { |
| 13 | out[key] = value; |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | return out; |
| 18 | }; |
| 19 | |
| 20 | const warnInvalid = (reason: string): void => { |
| 21 | logger.warn(`OPENAI_DEFAULT_HEADERS ${reason} — ignoring`, { |
no outgoing calls
no test coverage detected