({
headers,
}: {
headers?: Record<string, string>;
})
| 84 | } |
| 85 | |
| 86 | private buildHeaders({ |
| 87 | headers, |
| 88 | }: { |
| 89 | headers?: Record<string, string>; |
| 90 | }): Record<string, string> { |
| 91 | return { |
| 92 | 'Content-Type': 'application/json', |
| 93 | Authorization: `Bearer ${this.config.apiKey}`, |
| 94 | 'LB-LLM-Key': this.config.llmKey ?? '', |
| 95 | ...headers, |
| 96 | }; |
| 97 | } |
| 98 | |
| 99 | private async makeRequest({ |
| 100 | url, |