(record: Record<string, unknown>, keys: readonly string[])
| 1196 | const CODEX_API_KEY_KEYS = ['api_key', 'OPENAI_API_KEY'] as const; |
| 1197 | |
| 1198 | function hasNonEmptyStringField(record: Record<string, unknown>, keys: readonly string[]): boolean { |
| 1199 | return keys.some((key) => typeof record[key] === 'string' && record[key]); |
| 1200 | } |
| 1201 | |
| 1202 | function getNestedTokens(record: Record<string, unknown>): Record<string, unknown> | null { |
| 1203 | const tokens = record[CODEX_TOKENS_KEY]; |
no outgoing calls
no test coverage detected