Hello there, I've deployed the following infrastructure (WestEurope): https://github.com/FreddyAyala/AzureAIServicesLandingZone then I've deployed your application inside an Azure WebApp, deployment works and al pre requisites are good.
The particularity is that I'm using a privatelink for Azure OpenAI and the model:
deployment = {
"gpt-35-turbo" = {
name = "gpt-35-turbo2"
model_format = "OpenAI"
model_name = "gpt-35-turbo"
model_version = "0301"
scale_type = "Standard"
}
In order to use privatelink dns, I use the variable AZURE_OPENAI_BASE_PATH=https://azure-openai-582219.privatelink.openai.azure.com so it seems to be hitting the private endpoint correctly.
but it doesn't work at all, the issue is the your application expectes: gpt-35-turbo/chat/completions?api-version=2023-03-15-preview as text/stream
but my azure openai only allows: gpt-35-turbo/completions?api-version=2023-03-15-preview as application/json
Do you have any idea why it is happening?
Details of the error:
2023-08-05T10:58:27.182680497Z: [ERROR] - error Error: Network Error 2023-08-05T10:58:27.182740896Z: [ERROR] at createError (/home/site/wwwroot/.next/server/chunks/370.js:26582:19) 2023-08-05T10:58:27.182750996Z: [ERROR] at getResponse (/home/site/wwwroot/.next/server/chunks/370.js:26442:16) 2023-08-05T10:58:27.182756696Z: [ERROR] at process.processTicksAndRejections (node:internal/process/task_queues:95:5) 2023-08-05T10:58:27.182772596Z: [ERROR] at async fetchAdapter (/home/site/wwwroot/.next/server/chunks/370.js:26418:18) 2023-08-05T10:58:27.182778296Z: [ERROR] at async RetryOperation._fn (/home/site/wwwroot/.next/server/chunks/370.js:6195:25) { 2023-08-05T10:58:27.182783596Z: [ERROR] config: { 2023-08-05T10:58:27.182788596Z: [ERROR] transitional: { 2023-08-05T10:58:27.182793396Z: [ERROR] silentJSONParsing: true, 2023-08-05T10:58:27.182809996Z: [ERROR] forcedJSONParsing: true, 2023-08-05T10:58:27.182815396Z: [ERROR] clarifyTimeoutError: false 2023-08-05T10:58:27.182819896Z: [ERROR] }, 2023-08-05T10:58:27.182824595Z: [ERROR] adapter: [AsyncFunction: fetchAdapter], 2023-08-05T10:58:27.182828795Z: [ERROR] transformRequest: [ [Function: transformRequest] ], 2023-08-05T10:58:27.182833595Z: [ERROR] transformResponse: [ [Function: transformResponse] ], 2023-08-05T10:58:27.182838395Z: [ERROR] timeout: 0, 2023-08-05T10:58:27.182842995Z: [ERROR] xsrfCookieName: 'XSRF-TOKEN', 2023-08-05T10:58:27.182847295Z: [ERROR] xsrfHeaderName: 'X-XSRF-TOKEN', 2023-08-05T10:58:27.182851695Z: [ERROR] maxContentLength: -1, 2023-08-05T10:58:27.182856095Z: [ERROR] maxBodyLength: -1, 2023-08-05T10:58:27.182860495Z: [ERROR] validateStatus: [Function: validateStatus], 2023-08-05T10:58:27.182865395Z: [ERROR] headers: { 2023-08-05T10:58:27.182870195Z: [ERROR] Accept: 'application/json, text/plain, */*', 2023-08-05T10:58:27.182875195Z: [ERROR] 'Content-Type': 'application/json', 2023-08-05T10:58:27.182879695Z: [ERROR] 'User-Agent': 'OpenAI/NodeJS/3.3.0', 2023-08-05T10:58:27.182884495Z: [ERROR] Authorization: 'Bearer undefined', 2023-08-05T10:58:27.182889695Z: [ERROR] 'api-key': '45a211bee1fe4060bc644f02fe75509f' 2023-08-05T10:58:27.182894195Z: [ERROR] }, 2023-08-05T10:58:27.182899695Z: [ERROR] method: 'post', 2023-08-05T10:58:27.182904895Z: [ERROR] responseType: 'stream', 2023-08-05T10:58:27.182909995Z: [ERROR] onmessage: [Function: onmessage], 2023-08-05T10:58:27.182915095Z: [ERROR] params: { 'api-version': '2023-03-15-preview' }, 2023-08-05T10:58:27.182920895Z: [ERROR] data: '{"model":"gpt-3.5-turbo","temperature":0,"top_p":1,"frequency_penalty":0,"presence_penalty":0,"n":1,"stream":true,"messages":[{"role":"system","content":"-You are Azure ChatGPT who is a helpful AI Assistant.\\n - You will provide clear and concise queries, and you will respond with polite and professional answers.\\n - You will answer questions truthfully and accurately."},{"role":"user","content":"hello"}]}', 2023-08-05T10:58:27.182930195Z: [ERROR] url: 'https://azure-openai-582219.privatelink.openai.azure.com/gpt-35-turbo/chat/completions' 2023-08-05T10:58:27.182935395Z: [ERROR] }, 2023-08-05T10:58:27.182940695Z: [ERROR] code: 'ERR_NETWORK', 2023-08-05T10:58:27.182945995Z: [ERROR] request: Request { 2023-08-05T10:58:27.182950794Z: [ERROR] [Symbol(realm)]: { settingsObject: [Object] }, 2023-08-05T10:58:27.182961394Z: [ERROR] [Symbol(state)]: { 2023-08-05T10:58:27.182966394Z: [ERROR] method: 'POST', 2023-08-05T10:58:27.182970994Z: [ERROR] localURLsOnly: false, 2023-08-05T10:58:27.182975694Z: [ERROR] unsafeRequest: false, 2023-08-05T10:58:27.182981694Z: [ERROR] body: [Object], 2023-08-05T10:58:27.182986294Z: [ERROR] client: [Object], 2023-08-05T10:58:27.182990794Z: [ERROR] reservedClient: null, 2023-08-05T10:58:27.182995094Z: [ERROR] replacesClientId: '', 2023-08-05T10:58:27.182999594Z: [ERROR] window: 'client', 2023-08-05T10:58:27.183004094Z: [ERROR] keepalive: false, 2023-08-05T10:58:27.183008194Z: [ERROR] serviceWorkers: 'all', 2023-08-05T10:58:27.183012494Z: [ERROR] initiator: '', 2023-08-05T10:58:27.183017194Z: [ERROR] destination: '', 2023-08-05T10:58:27.183021994Z: [ERROR] priority: null, 2023-08-05T10:58:27.183026494Z: [ERROR] origin: 'client', 2023-08-05T10:58:27.183030794Z: [ERROR] policyContainer: 'client', 2023-08-05T10:58:27.183035594Z: [ERROR] referrer: 'client', 2023-08-05T10:58:27.183039894Z: [ERROR] referrerPolicy: '', 2023-08-05T10:58:27.183044294Z: [ERROR] mode: 'cors', 2023-08-05T10:58:27.183049094Z: [ERROR] useCORSPreflightFlag: false, 2023-08-05T10:58:27.183054194Z: [ERROR] credentials: 'same-origin', 2023-08-05T10:58:27.183059194Z: [ERROR] useCredentials: false, 2023-08-05T10:58:27.183063594Z: [ERROR] cache: 'default', 2023-08-05T10:58:27.183067994Z: [ERROR] redirect: 'follow', 2023-08-05T10:58:27.183072694Z: [ERROR] integrity: '', 2023-08-05T10:58:27.183077593Z: [ERROR] cryptoGraphicsNonceMetadata: '', 2023-08-05T10:58:27.183081993Z: [ERROR] parserMetadata: '', 2023-08-05T10:58:27.183086393Z: [ERROR] reloadNavigation: false, 2023-08-05T10:58:27.183090793Z: [ERROR] historyNavigation: false, 2023-08-05T10:58:27.183095293Z: [ERROR] userActivation: false, 2023-08-05T10:58:27.183099693Z: [ERROR] taintedOrigin: false, 2023-08-05T10:58:27.183103893Z: [ERROR] redirectCount: 0, 2023-08-05T10:58:27.183108293Z: [ERROR] responseTainting: 'basic', 2023-08-05T10:58:27.183112293Z: [ERROR] preventNoCacheCacheControlHeaderModification: false, 2023-08-05T10:58:27.183116293Z: [ERROR] done: false, 2023-08-05T10:58:27.183120193Z: [ERROR] timingAllowFailed: false, 2023-08-05T10:58:27.183125693Z: [ERROR] headersList: [HeadersList], 2023-08-05T10:58:27.183129593Z: [ERROR] urlList: [Array], 2023-08-05T10:58:27.183133393Z: [ERROR] url: [URL] 2023-08-05T10:58:27.183137593Z: [ERROR] }, 2023-08-05T10:58:27.183141393Z: [ERROR] [Symbol(signal)]: AbortSignal { aborted: false }, 2023-08-05T10:58:27.183151093Z: [ERROR] [Symbol(headers)]: HeadersList { 2023-08-05T10:58:27.183155793Z: [ERROR] cookies: null, 2023-08-05T10:58:27.183160693Z: [ERROR] [Symbol(headers map)]: [Map], 2023-08-05T10:58:27.183164993Z: [ERROR] [Symbol(headers map sorted)]: [Array] 2023-08-05T10:58:27.183169493Z: [ERROR] } 2023-08-05T10:58:27.183174393Z: [ERROR] }, 2023-08-05T10:58:27.183178893Z: [ERROR] response: undefined, 2023-08-05T10:58:27.183183393Z: [ERROR] isAxiosError: true, 2023-08-05T10:58:27.183187893Z: [ERROR] toJSON: [Function: toJSON], 2023-08-05T10:58:27.183192493Z: [ERROR] attemptNumber: 7, 2023-08-05T10:58:27.183196993Z: [ERROR] retriesLeft: 0 2023-08-05T10:58:27.183201293Z: [ERROR] } 2023-08-05T10:58:27.183205792Z: [ERROR] Error in handler Handler, handleChainError: Error: Network Error 2023-08-05T10:58:27.193209513Z: [ERROR] node:internal/process/promises:288 2023-08-05T10:58:27.193224213Z: [ERROR] triggerUncaughtException(err, true /* fromPromise */); 2023-08-05T10:58:27.193230213Z: [ERROR] ^ 2023-08-05T10:58:27.193234813Z: [ERROR] 2023-08-05T10:58:27.193239613Z: [ERROR] Error: Network Error 2023-08-05T10:58:27.193244013Z: [ERROR] at createError (/home/site/wwwroot/.next/server/chunks/370.js:26582:19) 2023-08-05T10:58:27.193535211Z: [ERROR] at getResponse (/home/site/wwwroot/.next/server/chunks/370.js:26442:16) 2023-08-05T10:58:27.193543811Z: [ERROR] at process.processTicksAndRejections (node:internal/process/task_queues:95:5) 2023-08-05T10:58:27.193548711Z: [ERROR] at async fetchAdapter (/home/site/wwwroot/.next/server/chunks/370.js:26418:18) 2023-08-05T10:58:27.193553510Z: [ERROR] at async RetryOperation._fn (/home/site/wwwroot/.next/server/chunks/370.js:6195:25) { 2023-08-05T10:58:27.193558110Z: [ERROR] config: { 2023-08-05T10:58:27.193562510Z: [ERROR] transitional: { 2023-08-05T10:58:27.193567010Z: [ERROR] silentJSONParsing: true, 2023-08-05T10:58:27.193571410Z: [ERROR] forcedJSONParsing: true, 2023-08-05T10:58:27.193575810Z: [ERROR] clarifyTimeoutError: false 2023-08-05T10:58:27.193580310Z: [ERROR] }, 2023-08-05T10:58:27.193584910Z: [ERROR] adapter: [AsyncFunction: fetchAdapter], 2023-08-05T10:58:27.193589610Z: [ERROR] transformRequest: [ [Function: transformRequest] ], 2023-08-05T10:58:27.193594210Z: [ERROR] transformResponse: [ [Function: transformResponse] ], 2023-08-05T10:58:27.193869408Z: [ERROR] timeout: 0, 2023-08-05T10:58:27.193880408Z: [ERROR] xsrfCookieName: 'XSRF-TOKEN', 2023-08-05T10:58:27.193890908Z: [ERROR] xsrfHeaderName: 'X-XSRF-TOKEN', 2023-08-05T10:58:27.193896608Z: [ERROR] maxContentLength: -1, 2023-08-05T10:58:27.193901408Z: [ERROR] maxBodyLength: -1, 2023-08-05T10:58:27.193905908Z: [ERROR] validateStatus: [Function: validateStatus], 2023-08-05T10:58:27.193910408Z: [ERROR] headers: { 2023-08-05T10:58:27.193921308Z: [ERROR] Accept: 'application/json, text/plain, */*', 2023-08-05T10:58:27.193926008Z: [ERROR] 'Content-Type': 'application/json', 2023-08-05T10:58:27.193930707Z: [ERROR] 'User-Agent': 'OpenAI/NodeJS/3.3.0', 2023-08-05T10:58:27.193935307Z: [ERROR] Authorization: 'Bearer undefined', 2023-08-05T10:58:27.193939807Z: [ERROR] 'api-key': '45a211bee1fe4060bc644f02fe75509f' 2023-08-05T10:58:27.193944307Z: [ERROR] }, 2023-08-05T10:58:27.193948607Z: [ERROR] method: 'post', 2023-08-05T10:58:27.193952907Z: [ERROR] responseType: 'stream', 2023-08-05T10:58:27.193957407Z: [ERROR] onmessage: [Function: onmessage], 2023-08-05T10:58:27.193961807Z: [ERROR] params: { 'api-version': '2023-03-15-preview' }, 2023-08-05T10:58:27.193967007Z: [ERROR] data: '{"model":"gpt-3.5-turbo","temperature":0,"top_p":1,"frequency_penalty":0,"presence_penalty":0,"n":1,"stream":true,"messages":[{"role":"system","content":"-You are Azure ChatGPT who is a helpful AI Assistant.\\n - You will provide clear and concise queries, and you will respond with polite and professional answers.\\n - You will answer questions truthfully and accurately."},{"role":"user","content":"hello"}]}', 2023-08-05T10:58:27.193974207Z: [ERROR] url: 'https://azure-openai-582219.privatelink.openai.azure.com/gpt-35-turbo/chat/completions' 2023-08-05T10:58:27.193978907Z: [ERROR] }, 2023-08-05T10:58:27.193983207Z: [ERROR] code: 'ERR_NETWORK', 2023-08-05T10:58:27.193987707Z: [ERROR] request: Request { 2023-08-05T10:58:27.193992007Z: [ERROR] [Symbol(realm)]: { 2023-08-05T10:58:27.193996507Z: [ERROR] settingsObject: { 2023-08-05T10:58:27.194002207Z: [ERROR] baseUrl: undefined, 2023-08-05T10:58:27.194006707Z: [ERROR] origin: [Getter], 2023-08-05T10:58:27.194011107Z: [ERROR] policyContainer: { referrerPolicy: 'strict-origin-when-cross-origin' } 2023-08-05T10:58:27.194015907Z: [ERROR] } 2023-08-05T10:58:27.194020207Z: [ERROR] }, 2023-08-05T10:58:27.194024507Z: [ERROR] [Symbol(state)]: { 2023-08-05T10:58:27.194028607Z: [ERROR] method: 'POST', 2023-08-05T10:58:27.194032707Z: [ERROR] localURLsOnly: false, 2023-08-05T10:58:27.194036907Z: [ERROR] unsafeRequest: false, 2023-08-05T10:58:27.194041207Z: [ERROR] body: { 2023-08-05T10:58:27.194045907Z: [ERROR] stream: ReadableStream { 2023-08-05T10:58:27.194050507Z: [ERROR] [Symbol(kType)]: 'ReadableStream', 2023-08-05T10:58:27.194055106Z: [ERROR] [Symbol(kState)]: { 2023-08-05T10:58:27.194059406Z: [ERROR] disturbed: true, 2023-08-05T10:58:27.194063806Z: [ERROR] reader: [ReadableStreamDefaultReader], 2023-08-05T10:58:27.194068206Z: [ERROR] state: 'closed', 2023-08-05T10:58:27.194072506Z: [ERROR] storedError: undefined, 2023-08-05T10:58:27.194077006Z: [ERROR] stream: undefined, 2023-08-05T10:58:27.194081506Z: [ERROR] transfer: [Object], 2023-08-05T10:58:27.194089606Z: [ERROR] controller: [ReadableStreamDefaultController] 2023-08-05T10:58:27.194094206Z: [ERROR] }, 2023-08-05T10:58:27.194098406Z: [ERROR] [Symbol(nodejs.webstream.isClosedPromise)]: { 2023-08-05T10:58:27.194102806Z: [ERROR] promise: [Promise], 2023-08-05T10:58:27.194107206Z: [ERROR] resolve: [Function (anonymous)], 2023-08-05T10:58:27.194111706Z: [ERROR] reject: [Function (anonymous)] 2023-08-05T10:58:27.194116306Z: [ERROR] }, 2023-08-05T10:58:27.194120606Z: [ERROR] [Symbol(nodejs.webstream.controllerErrorFunction)]: [Function: bound error] 2023-08-05T10:58:27.194125106Z: [ERROR] }, 2023-08-05T10:58:27.194129206Z: [ERROR] source: Uint8Array(419) [ 2023-08-05T10:58:27.194133506Z: [ERROR] 123, 34, 109, 111, 100, 101, 108, 34, 58, 34, 103, 112, 2023-08-05T10:58:27.194137806Z: [ERROR] 116, 45, 51, 46, 53, 45, 116, 117, 114, 98, 111, 34, 2023-08-05T10:58:27.194142406Z: [ERROR] 44, 34, 116, 101, 109, 112, 101, 114, 97, 116, 117, 114, 2023-08-05T10:58:27.194147006Z: [ERROR] 101, 34, 58, 48, 44, 34, 116, 111, 112, 95, 112, 34, 2023-08-05T10:58:27.194151806Z: [ERROR] 58, 49, 44, 34, 102, 114, 101, 113, 117, 101, 110, 99, 2023-08-05T10:58:27.194156306Z: [ERROR] 121, 95, 112, 101, 110, 97, 108, 116, 121, 34, 58, 48, 2023-08-05T10:58:27.194160806Z: [ERROR] 44, 34, 112, 114, 101, 115, 101, 110, 99, 101, 95, 112, 2023-08-05T10:58:27.194165406Z: [ERROR] 101, 110, 97, 108, 116, 121, 34, 58, 48, 44, 34, 110, 2023-08-05T10:58:27.194169906Z: [ERROR] 34, 58, 49, 44, 2023-08-05T10:58:27.194174106Z: [ERROR] ... 319 more items 2023-08-05T10:58:27.194178606Z: [ERROR] ], 2023-08-05T10:58:27.194183605Z: [ERROR] length: 419 2023-08-05T10:58:27.194188005Z: [ERROR] }, 2023-08-05T10:58:27.194192405Z: [ERROR] client: { 2023-08-05T10:58:27.194196705Z: [ERROR] baseUrl: undefined, 2023-08-05T10:58:27.194201205Z: [ERROR] origin: [Getter], 2023-08-05T10:58:27.194205605Z: [ERROR] policyContainer: { referrerPolicy: 'strict-origin-when-cross-origin' } 2023-08-05T10:58:27.194210105Z: [ERROR] }, 2023-08-05T10:58:27.194214605Z: [ERROR] reservedClient: null, 2023-08-05T10:58:27.194219105Z: [ERROR] replacesClientId: '', 2023-08-05T10:58:27.194223705Z: [ERROR] window: 'client', 2023-08-05T10:58:27.194228005Z: [ERROR] keepalive: false, 2023-08-05T10:58:27.194232405Z: [ERROR] serviceWorkers: 'all', 2023-08-05T10:58:27.194236705Z: [ERROR] initiator: '', 2023-08-05T10:58:27.194241205Z: [ERROR] destination: '', 2023-08-05T10:58:27.194245805Z: [ERROR] priority: null, 2023-08-05T10:58:27.194250105Z: [ERROR] origin: 'client', 2023-08-05T10:58:27.194254405Z: [ERROR] policyContainer: 'client', 2023-08-05T10:58:27.194262505Z: [ERROR] referrer: 'client', 2023-08-05T10:58:27.194267005Z: [ERROR] referrerPolicy: '', 2023-08-05T10:58:27.194271405Z: [ERROR] mode: 'cors', 2023-08-05T10:58:27.194275605Z: [ERROR] useCORSPreflightFlag: false, 2023-08-05T10:58:27.194280005Z: [ERROR] credentials: 'same-origin', 2023-08-05T10:58:27.194284705Z: [ERROR] useCredentials: false, 2023-08-05T10:58:27.194288905Z: [ERROR] cache: 'default', 2023-08-05T10:58:27.194293105Z: [ERROR] redirect: 'follow', 2023-08-05T10:58:27.194297605Z: [ERROR] integrity: '', 2023-08-05T10:58:27.194302005Z: [ERROR] cryptoGraphicsNonceMetadata: '', 2023-08-05T10:58:27.194306405Z: [ERROR] parserMetadata: '', 2023-08-05T10:58:27.194310604Z: [ERROR] reloadNavigation: false, 2023-08-05T10:58:27.194315304Z: [ERROR] historyNavigation: false, 2023-08-05T10:58:27.194319704Z: [ERROR] userActivation: false, 2023-08-05T10:58:27.194324204Z: [ERROR] taintedOrigin: false, 2023-08-05T10:58:27.194329604Z: [ERROR] redirectCount: 0, 2023-08-05T10:58:27.194334404Z: [ERROR] responseTainting: 'basic', 2023-08-05T10:58:27.194339204Z: [ERROR] preventNoCacheCacheControlHeaderModification: false, 2023-08-05T10:58:27.194344004Z: [ERROR] done: false, 2023-08-05T10:58:27.194348204Z: [ERROR] timingAllowFailed: false, 2023-08-05T10:58:27.194353204Z: [ERROR] headersList: HeadersList { 2023-08-05T10:58:27.194357504Z: [ERROR] cookies: null, 2023-08-05T10:58:27.194362204Z: [ERROR] [Symbol(headers map)]: Map(5) { 2023-08-05T10:58:27.194366504Z: [ERROR] 'accept' => { name: 'accept', value: 'text/event-stream' }, 2023-08-05T10:58:27.194371104Z: [ERROR] 'api-key' => { 2023-08-05T10:58:27.194375504Z: [ERROR] name: 'api-key', 2023-08-05T10:58:27.194379704Z: [ERROR] value: '45a211bee1fe4060bc644f02fe75509f' 2023-08-05T10:58:27.194384204Z: [ERROR] }, 2023-08-05T10:58:27.194388404Z: [ERROR] 'authorization' => { name: 'authorization', value: 'Bearer undefined' }, 2023-08-05T10:58:27.194392804Z: [ERROR] 'content-type' => { name: 'content-type', value: 'application/json' }, 2023-08-05T10:58:27.194397804Z: [ERROR] 'user-agent' => { name: 'user-agent', value: 'OpenAI/NodeJS/3.3.0' } 2023-08-05T10:58:27.194403004Z: [ERROR] }, 2023-08-05T10:58:27.194407704Z: [ERROR] [Symbol(headers map sorted)]: [ 2023-08-05T10:58:27.194411904Z: [ERROR] [ 'accept', 'text/event-stream' ], 2023-08-05T10:58:27.194416204Z: [ERROR] [ 'api-key', '45a211bee1fe4060bc644f02fe75509f' ], 2023-08-05T10:58:27.194420504Z: [ERROR] [ 'authorization', 'Bearer undefined' ], 2023-08-05T10:58:27.194424904Z: [ERROR] [ 'content-type', 'application/json' ], 2023-08-05T10:58:27.194429104Z: [ERROR] [ 'user-agent', 'OpenAI/NodeJS/3.3.0' ] 2023-08-05T10:58:27.194438003Z: [ERROR] ] 2023-08-05T10:58:27.194442203Z: [ERROR] }, 2023-08-05T10:58:27.194446803Z: [ERROR] urlList: [ 2023-08-05T10:58:27.194451703Z: [ERROR] <ref *1> URL { 2023-08-05T10:58:27.194457103Z: [ERROR] [Symbol(context)]: URLContext { 2023-08-05T10:58:27.194462203Z: [ERROR] href: 'https://azure-openai-582219.privatelink.openai.azure.com/gpt-35-turbo/chat/completions?api-version=2023-03-15-preview', 2023-08-05T10:58:27.194467803Z: [ERROR] origin: 'https://azure-openai-582219.privatelink.openai.azure.com', 2023-08-05T10:58:27.194473803Z: [ERROR] protocol: 'https:', 2023-08-05T10:58:27.194478803Z: [ERROR] hostname: 'azure-openai-582219.privatelink.openai.azure.com', 2023-08-05T10:58:27.194483903Z: [ERROR] pathname: '/gpt-35-turbo/chat/completions', 2023-08-05T10:58:27.194488903Z: [ERROR] search: '?api-version=2023-03-15-preview', 2023-08-05T10:58:27.194493603Z: [ERROR] username: '', 2023-08-05T10:58:27.194498203Z: [ERROR] password: '', 2023-08-05T10:58:27.194503203Z: [ERROR] port: '', 2023-08-05T10:58:27.194508603Z: [ERROR] hash: '' 2023-08-05T10:58:27.194513303Z: [ERROR] }, 2023-08-05T10:58:27.194517603Z: [ERROR] [Symbol(query)]: URLSearchParams { 2023-08-05T10:58:27.194522003Z: [ERROR] [Symbol(query)]: [Array], 2023-08-05T10:58:27.194526603Z: [ERROR] [Symbol(context)]: [Circular *1] 2023-08-05T10:58:27.194531303Z: [ERROR] } 2023-08-05T10:58:27.194535503Z: [ERROR] } 2023-08-05T10:58:27.194539903Z: [ERROR] ], 2023-08-05T10:58:27.194544203Z: [ERROR] url: <ref *1> URL { 2023-08-05T10:58:27.194548603Z: [ERROR] [Symbol(context)]: URLContext { 2023-08-05T10:58:27.194553103Z: [ERROR] href: 'https://azure-openai-582219.privatelink.openai.azure.com/gpt-35-turbo/chat/completions?api-version=2023-03-15-preview', 2023-08-05T10:58:27.194573002Z: [ERROR] origin: 'https://azure-openai-582219.privatelink.openai.azure.com', 2023-08-05T10:58:27.194580702Z: [ERROR] protocol: 'https:', 2023-08-05T10:58:27.194585302Z: [ERROR] hostname: 'azure-openai-582219.privatelink.openai.azure.com', 2023-08-05T10:58:27.194589902Z: [ERROR] pathname: '/gpt-35-turbo/chat/completions', 2023-08-05T10:58:27.194594302Z: [ERROR] search: '?api-version=2023-03-15-preview', 2023-08-05T10:58:27.194598702Z: [ERROR] username: '', 2023-08-05T10:58:27.194603202Z: [ERROR] password: '', 2023-08-05T10:58:27.194607602Z: [ERROR] port: '', 2023-08-05T10:58:27.194612102Z: [ERROR] hash: '' 2023-08-05T10:58:27.194616402Z: [ERROR] }, 2023-08-05T10:58:27.194621102Z: [ERROR] [Symbol(query)]: URLSearchParams { 2023-08-05T10:58:27.194625502Z: [ERROR] [Symbol(query)]: [ 'api-version', '2023-03-15-preview' ], 2023-08-05T10:58:27.194635102Z: [ERROR] [Symbol(context)]: [Circular *1] 2023-08-05T10:58:27.194639602Z: [ERROR] } 2023-08-05T10:58:27.194643902Z: [ERROR] } 2023-08-05T10:58:27.194648802Z: [ERROR] }, 2023-08-05T10:58:27.194654102Z: [ERROR] [Symbol(signal)]: AbortSignal { 2023-08-05T10:58:27.194658802Z: [ERROR] [Symbol(kEvents)]: SafeMap(1) [Map] { 2023-08-05T10:58:27.194663302Z: [ERROR] 'abort' => <ref *2> { 2023-08-05T10:58:27.194668102Z: [ERROR] size: 1, 2023-08-05T10:58:27.194672502Z: [ERROR] next: Listener { 2023-08-05T10:58:27.194676802Z: [ERROR] next: undefined, 2023-08-05T10:58:27.194681302Z: [ERROR] previous: [Circular *2], 2023-08-05T10:58:27.194685901Z: [ERROR] listener: [Function: abort], 2023-08-05T10:58:27.194690401Z: [ERROR] flags: 1, 2023-08-05T10:58:27.194694701Z: [ERROR] callback: [Function: abort] 2023-08-05T10:58:27.194699001Z: [ERROR] } 2023-08-05T10:58:27.194703301Z: [ERROR] } 2023-08-05T10:58:27.194707401Z: [ERROR] }, 2023-08-05T10:58:27.194711601Z: [ERROR] [Symbol(events.maxEventTargetListeners)]: 10, 2023-08-05T10:58:27.194716001Z: [ERROR] [Symbol(events.maxEventTargetListenersWarned)]: false, 2023-08-05T10:58:27.194720401Z: [ERROR] [Symbol(kAborted)]: false, 2023-08-05T10:58:27.194724901Z: [ERROR] [Symbol(kReason)]: undefined, 2023-08-05T10:58:27.194729201Z: [ERROR] [Symbol(realm)]: { 2023-08-05T10:58:27.194733601Z: [ERROR] settingsObject: { 2023-08-05T10:58:27.194738101Z: [ERROR] baseUrl: undefined, 2023-08-05T10:58:27.194742501Z: [ERROR] origin: [Getter], 2023-08-05T10:58:27.194747001Z: [ERROR] policyContainer: { referrerPolicy: 'strict-origin-when-cross-origin' } 2023-08-05T10:58:27.194751701Z: [ERROR] } 2023-08-05T10:58:27.194756901Z: [ERROR] } 2023-08-05T10:58:27.194761301Z: [ERROR] }, 2023-08-05T10:58:27.194765601Z: [ERROR] [Symbol(headers)]: Headers { 2023-08-05T10:58:27.194770201Z: [ERROR] [Symbol(headers list)]: HeadersList { 2023-08-05T10:58:27.194774601Z: [ERROR] cookies: null, 2023-08-05T10:58:27.194778901Z: [ERROR] [Symbol(headers map)]: Map(5) { 2023-08-05T10:58:27.194783201Z: [ERROR] 'accept' => { name: 'accept', value: 'text/event-stream' }, 2023-08-05T10:58:27.194787901Z: [ERROR] 'api-key' => { 2023-08-05T10:58:27.194792401Z: [ERROR] name: 'api-key', 2023-08-05T10:58:27.194796901Z: [ERROR] value: '45a211bee1fe4060bc644f02fe75509f' 2023-08-05T10:58:27.194801301Z: [ERROR] }, 2023-08-05T10:58:27.194806201Z: [ERROR] 'authorization' => { name: 'authorization', value: 'Bearer undefined' }, 2023-08-05T10:58:27.194814600Z: [ERROR] 'content-type' => { name: 'content-type', value: 'application/json' }, 2023-08-05T10:58:27.194819600Z: [ERROR] 'user-agent' => { name: 'user-agent', value: 'OpenAI/NodeJS/3.3.0' } 2023-08-05T10:58:27.194824400Z: [ERROR] }, 2023-08-05T10:58:27.194828800Z: [ERROR] [Symbol(headers map sorted)]: [ 2023-08-05T10:58:27.194833400Z: [ERROR] [ 'accept', 'text/event-stream' ], 2023-08-05T10:58:27.194837800Z: [ERROR] [ 'api-key', '45a211bee1fe4060bc644f02fe75509f' ], 2023-08-05T10:58:27.194842300Z: [ERROR] [ 'authorization', 'Bearer undefined' ], 2023-08-05T10:58:27.194846900Z: [ERROR] [ 'content-type', 'application/json' ], 2023-08-05T10:58:27.194851200Z: [ERROR] [ 'user-agent', 'OpenAI/NodeJS/3.3.0' ] 2023-08-05T10:58:27.194855900Z: [ERROR] ] 2023-08-05T10:58:27.194860400Z: [ERROR] }, 2023-08-05T10:58:27.194864900Z: [ERROR] [Symbol(guard)]: 'request', 2023-08-05T10:58:27.194869300Z: [ERROR] [Symbol(realm)]: { 2023-08-05T10:58:27.194873600Z: [ERROR] settingsObject: { 2023-08-05T10:58:27.194878100Z: [ERROR] baseUrl: undefined, 2023-08-05T10:58:27.194882500Z: [ERROR] origin: [Getter], 2023-08-05T10:58:27.194886800Z: [ERROR] policyContainer: { referrerPolicy: 'strict-origin-when-cross-origin' } 2023-08-05T10:58:27.194891400Z: [ERROR] } 2023-08-05T10:58:27.194895800Z: [ERROR] } 2023-08-05T10:58:27.194900100Z: [ERROR] } 2023-08-05T10:58:27.194904500Z: [ERROR] }, 2023-08-05T10:58:27.194908900Z: [ERROR] response: undefined, 2023-08-05T10:58:27.194913400Z: [ERROR] isAxiosError: true, 2023-08-05T10:58:27.194917700Z: [ERROR] toJSON: [Function: toJSON], 2023-08-05T10:58:27.194922100Z: [ERROR] attemptNumber: 7, 2023-08-05T10:58:27.194926400Z: [ERROR] retriesLeft: 0 2023-08-05T10:58:27.194930700Z: [ERROR] } 2023-08-05T10:58:27.194934800Z: [ERROR] 2023-08-05T10:58:27.194939299Z: [ERROR] Node.js v18.16.0 2023-08-05T10:58:27.218800110Z: [ERROR] Error: socket hang up 2023-08-05T10:58:27.218852410Z: [ERROR] at connResetException (node:internal/errors:717:14) 2023-08-05T10:58:27.218861010Z: [ERROR] at Socket.socketOnEnd (node:_http_client:526:23) 2023-08-05T10:58:27.218866110Z: [ERROR] at Socket.emit (node:events:525:35) 2023-08-05T10:58:27.218870610Z: [ERROR] at endReadableNT (node:internal/streams/readable:1359:12) 2023-08-05T10:58:27.218875510Z: [ERROR] at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { 2023-08-05T10:58:27.218880610Z: [ERROR] code: 'ECONNRESET' 2023-08-05T10:58:27.218885010Z: [ERROR] } 2023-08-05T10:58:27.222285883Z: [ERROR] Error: socket hang up 2023-08-05T10:58:27.222300783Z: [ERROR] at connResetException (node:internal/errors:717:14) 2023-08-05T10:58:27.222307083Z: [ERROR] at Socket.socketOnEnd (node:_http_client:526:23) 2023-08-05T10:58:27.222321482Z: [ERROR] at Socket.emit (node:events:525:35) 2023-08-05T10:58:27.222325982Z: [ERROR] at endReadableNT (node:internal/streams/readable:1359:12) 2023-08-05T10:58:27.222330482Z: [ERROR] at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { 2023-08-05T10:58:27.222334882Z: [ERROR] code: 'ECONNRESET' 2023-08-05T10:58:27.222339482Z: [ERROR]