()
| 8 | const chromeArgs = [`--disable-extensions-except=${pathToExtension}`, `--load-extension=${pathToExtension}`]; |
| 9 | |
| 10 | function getProxyOptions() { |
| 11 | const proxy = |
| 12 | process.env.E2E_PROXY || |
| 13 | process.env.https_proxy || |
| 14 | process.env.http_proxy || |
| 15 | process.env.HTTPS_PROXY || |
| 16 | process.env.HTTP_PROXY; |
| 17 | return proxy ? { proxy: { server: proxy } } : {}; |
| 18 | } |
| 19 | |
| 20 | /** OpenAI-compatible SSE response for plain text replies */ |
| 21 | export function makeTextSSE(content: string): string { |