(apiKey: string)
| 526 | } |
| 527 | |
| 528 | function buildPromptContext(apiKey: string) { |
| 529 | return { |
| 530 | apiKey, |
| 531 | runId: `admin-relabel-${Date.now()}`, |
| 532 | clientSessionId: STATIC_SESSION_ID, |
| 533 | fingerprintId: STATIC_SESSION_ID, |
| 534 | userInputId: STATIC_SESSION_ID, |
| 535 | userId: TEST_USER_ID, |
| 536 | sendAction: async () => {}, |
| 537 | trackEvent: async () => {}, |
| 538 | logger, |
| 539 | signal: new AbortController().signal, |
| 540 | } |
| 541 | } |
| 542 | |
| 543 | /** |
| 544 | * Extract API key from Authorization header (Bearer token) |