I received this error:
Error - Request failed with status code 400
{“error”:{“message”:“Cannot specify both model and engine”,“type”:“invalid_request_error”,“param”:null,“code”:null}}
DETAILS
at null.createError (/tmp/__pdg__/dist/code/169aaff5681bf2ac5a95cb9dbc868f9b800ef9a05f40819a96bca94858a2d369/node_modules/.pnpm/axios@0.21.4/node_modules/axios/lib/core/createError.js:16:15)
at null.settle (/tmp/__pdg__/dist/code/169aaff5681bf2ac5a95cb9dbc868f9b800ef9a05f40819a96bca94858a2d369/node_modules/.pnpm/axios@0.21.4/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd (/tmp/__pdg__/dist/code/169aaff5681bf2ac5a95cb9dbc868f9b800ef9a05f40819a96bca94858a2d369/node_modules/.pnpm/axios@0.21.4/node_modules/axios/lib/adapters/http.js:269:11)
at IncomingMessage.emit (node:events:525:35)
at null.endReadableNT (node:internal/streams/readable:1359:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
8/22/2023, 7:58:50 AM
export: debug - { “status”: 400, “statusText”: “Bad Request”, “headers”: { “date”: “Tue, 22 Aug 2023 13:58:49 GMT”, “content-type”: “application/json; charset=utf-8”, “content-length”: “169”, “connection”: “close”, “vary”: “Origin”, “x-request-id”: “38b3a076f65901ca51d639bd9861730b”, “strict-transport-security”: “max-age=15724800; includeSubDomains”, “cf-cache-status”: “DYNAMIC”, “server”: “cloudflare”, “cf-ray”: “7faba1fe1d5982f3-IAD”, “alt-svc”: “h3=":443"; ma=86400” }, “config”: { “url”: "
https://api.openai.com/v1/engines/davinci-codex/completions
“, “method”: “post”, “data”: “{"model":"gpt-4","prompt":"\n {{steps.chunking_script.$return_value}}\n Please analyze the above document to look for the below items. // rest of prompt\n ","temperature":0.2,"max_tokens":600}”, “headers”: { “Accept”: “application/json, text/plain, /”, “Content-Type”: “application/json”, “Authorization”: “Bearer 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”, “User-Agent”: “axios/0.21.4”, “Content-Length”: 211 }, “transformRequest”: [ null ], “transformResponse”: [ null ], “timeout”: 0, “xsrfCookieName”: “XSRF-TOKEN”, “xsrfHeaderName”: “X-XSRF-TOKEN”, “maxContentLength”: -1, “maxBodyLength”: -1, “transitional”: { “silentJSONParsing”: true, “forcedJSONParsing”: true, “clarifyTimeoutError”: false } }, “data”: { “error”: { “message”: “Cannot specify both model and engine”, “type”: “invalid_request_error”, “param”: null, “code”: null } } }
8/22/2023, 7:58:50 AM
Error: at null.createError (/tmp/pdg/dist/code/169aaff5681bf2ac5a95cb9dbc868f9b800ef9a05f40819a96bca94858a2d369/node_modules/.pnpm/axios@0.21.4/node_modules/axios/lib/core/createError.js:16:15) at null.settle (/tmp/pdg/dist/code/169aaff5681bf2ac5a95cb9dbc868f9b800ef9a05f40819a96bca94858a2d369/node_modules/.pnpm/axios@0.21.4/node_modules/axios/lib/core/settle.js:17:12) at IncomingMessage.handleStreamEnd (/tmp/pdg/dist/code/169aaff5681bf2ac5a95cb9dbc868f9b800ef9a05f40819a96bca94858a2d369/node_modules/.pnpm/axios@0.21.4/node_modules/axios/lib/adapters/http.js:269:11) at IncomingMessage.emit (node:events:525:35) at null.endReadableNT (node:internal/streams/readable:1359:12) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { config: { url: ’
https://api.openai.com/v1/engines/davinci-codex/completions
', method: ‘post’, data: '{“model”:“gpt-4”,“prompt”:”\n {{steps.chunking_script.$return_value}}\n Please analyze the above document to look for the below items. // rest of prompt\n “,“temperature”:0.2,“max_tokens”:600}', headers: { Accept: ‘application/json, text/plain, /’, ‘Content-Type’: ‘application/json’, Authorization: ‘Bearer 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’, ‘User-Agent’: ‘axios/0.21.4’, ‘Content-Length’: 211 }, transformRequest: [ [Function: transformRequest] ], transformResponse: [ [Function: transformResponse] ], timeout: 0, adapter: [Function: httpAdapter], xsrfCookieName: ‘XSRF-TOKEN’, xsrfHeaderName: ‘X-XSRF-TOKEN’, maxContentLength: -1, maxBodyLength: -1, validateStatus: [Function: validateStatus], transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false } }, request: <ref **1> ClientRequest { _events: [Object: null prototype] { abort: [Function (anonymous)], aborted: [Function (anonymous)], connect: [Function (anonymous)], error: [Function (anonymous)], socket: [Function (anonymous)], timeout: [Function (anonymous)], finish: [Function: requestOnFinish] }, _eventsCount: 7, _maxListeners: undefined, outputData: [], outputSize: 0, writable: true, destroyed: false, _last: true, chunkedEncoding: false, shouldKeepAlive: false, maxRequestsOnConnectionReached: false, _defaultKeepAlive: true, useChunkedEncodingByDefault: true, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, strictContentLength: false, _contentLength: 211, _hasBody: true, _trailer: ‘’, finished: true, _headerSent: true, _closed: false, socket: TLSSocket { _tlsOptions: [Object], _secureEstablished: true, _securePending: false, _newSessionPending: false, _controlReleased: true, secureConnecting: false, _SNICallback: null, servername: ‘api.openai.com’, alpnProtocol: false, authorized: true, authorizationError: null, encrypted: true, _events: [Object: null prototype], _eventsCount: 10, connecting: false, _hadError: false, _parent: null, _host: ‘api.openai.com’, _closeAfterHandlingError: false, _readableState: [ReadableState], _maxListeners: undefined, _writableState: [WritableState], allowHalfOpen: false, _sockname: null, _pendingData: null, _pendingEncoding: ‘’, server: undefined, _server: null, ssl: [TLSWrap], _requestCert: true, _rejectUnauthorized: true, parser: null, _httpMessage: [Circular **1], [Symbol(res)]: [TLSWrap], [Symbol(verified)]: true, [Symbol(pendingSession)]: null, [Symbol(async_id_symbol)]: 19, [Symbol(kHandle)]: [TLSWrap], [Symbol(lastWriteQueueSize)]: 0, [Symbol(timeout)]: null, [Symbol(kBuffer)]: null, [Symbol(kBufferCb)]: null, [Symbol(kBufferGen)]: null, [Symbol(kCapture)]: false, [Symbol(kSetNoDelay)]: false, [Symbol(kSetKeepAlive)]: false, [Symbol(kSetKeepAliveInitialDelay)]: 0, [Symbol(kBytesRead)]: 0, [Symbol(kBytesWritten)]: 0, [Symbol(connect-options)]: [Object] }, _header: ‘POST /v1/engines/davinci-codex/completions HTTP/1.1\r\n’ + ‘Accept: application/json, text/plain, /\r\n’ + ‘Content-Type: application/json\r\n’ + ‘Authorization: Bearer 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\r\n’ + ‘User-Agent: axios/0.21.4\r\n’ + ‘Content-Length: 211\r\n’ + ‘Host: api.openai.com\r\n’ + ‘Connection: close\r\n’ + ‘\r\n’, _keepAliveTimeout: 0, _onPendingData: [Function: nop], agent: Agent { _events: [Object: null prototype], _eventsCount: 2, _maxListeners: undefined, defaultPort: 443, protocol: ‘https:’, options: [Object: null prototype], requests: [Object: null prototype] {}, sockets: [Object: null prototype], freeSockets: [Object: null prototype] {}, keepAliveMsecs: 1000, keepAlive: false, maxSockets: Infinity, maxFreeSockets: 256, scheduling: ‘lifo’, maxTotalSockets: Infinity, totalSocketCount: 1, maxCachedSessions: 100, _sessionCache: [Object], [Symbol(kCapture)]: false }, socketPath: undefined, method: ‘POST’, maxHeaderSize: undefined, insecureHTTPParser: undefined, joinDuplicateHeaders: undefined, path: ‘/v1/engines/davinci-codex/completions’, _ended: true, res: IncomingMessage { _readableState: [ReadableState], _events: [Object: null prototype], _eventsCount: 3, _maxListeners: undefined, socket: [TLSSocket], httpVersionMajor: 1, httpVersionMinor: 1, httpVersion: ‘1.1’, complete: true, rawHeaders: [Array], rawTrailers: [], joinDuplicateHeaders: undefined, aborted: false, upgrade: false, url: ‘’, method: null, statusCode: 400, statusMessage: ‘Bad Request’, client: [TLSSocket], _consuming: false, _dumped: false, req: [Circular **1], responseUrl: ‘https://api.openai.com/v1/engines/davinci-codex/completions’, redirects: [], [Symbol(kCapture)]: false, [Symbol(kHeaders)]: [Object], [Symbol(kHeadersCount)]: 22, [Symbol(kTrailers)]: null, [Symbol(kTrailersCount)]: 0 }, aborted: false, timeoutCb: null, upgradeOrConnect: false, parser: null, maxHeadersCount: null, reusedSocket: false, host: ‘api.openai.com’, protocol: ‘https:’, _redirectable: Writable { _writableState: [WritableState], _events: [Object: null prototype], _eventsCount: 2, _maxListeners: undefined, _options: [Object], _ended: true, _ending: true, _redirectCount: 0, _redirects: [], _requestBodyLength: 211, _requestBodyBuffers: [], _onNativeResponse: [Function (anonymous)], _currentRequest: [Circular **1], _currentUrl: ‘https://api.openai.com/v1/engines/davinci-codex/completions’, [Symbol(kCapture)]: false }, [Symbol(kCapture)]: false, [Symbol(kBytesWritten)]: 0, [Symbol(kNeedDrain)]: false, [Symbol(corked)]: 0, [Symbol(kOutHeaders)]: [Object: null prototype] { accept: [Array], ‘content-type’: [Array], authorization: [Array], ‘user-agent’: [Array], ‘content-length’: [Array], host: [Array] }, [Symbol(errored)]: null, [Symbol(kUniqueHeaders)]: null }, response: { status: 400, statusText: ‘Bad Request’, headers: { date: ‘Tue, 22 Aug 2023 13:58:49 GMT’, ‘content-type’: ‘application/json; charset=utf-8’, ‘content-length’: ‘169’, connection: ‘close’, vary: ‘Origin’, ‘x-request-id’: ‘38b3a076f65901ca51d639bd9861730b’, ‘strict-transport-security’: ‘max-age=15724800; includeSubDomains’, ‘cf-cache-status’: ‘DYNAMIC’, server: ‘cloudflare’, ‘cf-ray’: ‘7faba1fe1d5982f3-IAD’, ‘alt-svc’: 'h3=”:443"; ma=86400’ }, config: { url: ‘https://api.openai.com/v1/engines/davinci-codex/completions’, method: ‘post’, data: ‘{“model”:“gpt-4”,“prompt”:"\n {{steps.chunking_script.$return_value}}\n Please analyze the above document to look for the below items. // rest of prompt\n ",“temperature”:0.2,“max_tokens”:600}’, headers: [Object], transformRequest: [Array], transformResponse: [Array], timeout: 0, adapter: [Function: httpAdapter], xsrfCookieName: ‘XSRF-TOKEN’, xsrfHeaderName: ‘X-XSRF-TOKEN’, maxContentLength: -1, maxBodyLength: -1, validateStatus: [Function: validateStatus], transitional: [Object] }, data: { error: [Object] } }, isAxiosError: true, toJSON: [Function: toJSON], name: ‘Error - Request failed with status code 400’ }
chat_1
CONFIGURE
RESULTS
parsing_script
CODE
add_row
CONFIGURE