Closed kgilpin closed 1 month ago
I am using Code 1.93.1 in Copilot mode.
The AppMap RPC process is being launched with a token limit of 19827.
19827
16042 [Stdout] spawned node /Users/kgilpin/source/appland/appmap-js/packages/cli/built/cli.js index --watch --appmap-dir tmp/appmap with options {"retryTimes":3,"retryThreshold":180000,"id":"index","modulePath":"/Users/kgilpin/source/appland/appmap-js/packages/cli/built/cli.js","binPath":"/Users/kgilpin/.appmap/bin/appmap","log":{"name":"AppMap: Services"},"args":["index","--watch","--appmap-dir","tmp/appmap"],"cwd":"/Users/kgilpin/source/appland/appmap-js/packages/cli/tmp/applandinc.github.io","env":{"APPMAP_API_URL":"https://api.getappmap.com/","APPMAP_API_KEY":"***","OPENAI_API_KEY":"***","OPENAI_BASE_URL":"http://localhost:50048/vscode/copilot","APPMAP_NAVIE_TOKEN_LIMIT":"19827","APPMAP_NAVIE_MODEL":"gpt-4o"}}
Later in my session, I do get a token overflow error:
15756 [Stderr] Handling exception: UnprocessableEntityError: 422 Message exceeds token limit. 15756 [Stderr] at APIError.generate (/Users/kgilpin/source/appland/appmap-js/node_modules/openai/error.js:60:20) 15756 [Stderr] at OpenAI.makeStatusError (/Users/kgilpin/source/appland/appmap-js/node_modules/openai/core.js:275:33) 15756 [Stderr] at OpenAI.makeRequest (/Users/kgilpin/source/appland/appmap-js/node_modules/openai/core.js:318:30) 15756 [Stderr] at process.processTicksAndRejections (node:internal/process/task_queues:95:5) 15756 [Stderr] at async /Users/kgilpin/source/appland/appmap-js/node_modules/@langchain/openai/dist/chat_models.cjs:1306:29 15756 [Stderr] at async RetryOperation._fn (/Users/kgilpin/source/appland/appmap-js/node_modules/p-retry/index.js:50:12) { 15756 [Stderr] status: 422, 15756 [Stderr] headers: { 15756 [Stderr] connection: 'keep-alive', 15756 [Stderr] date: 'Thu, 03 Oct 2024 13:04:51 GMT', 15756 [Stderr] 'keep-alive': 'timeout=5', 15756 [Stderr] 'transfer-encoding': 'chunked' 15756 [Stderr] }, 15756 [Stderr] request_id: undefined, 15756 [Stderr] error: undefined, 15756 [Stderr] code: undefined, 15756 [Stderr] param: undefined, 15756 [Stderr] type: undefined, 15756 [Stderr] attemptNumber: 1, 15756 [Stderr] retriesLeft: 6 15756 [Stderr] } 15756 [Stderr] Stack trace: Error: 422 Message exceeds token limit. 15756 [Stderr] at APIError.generate (/Users/kgilpin/source/appland/appmap-js/node_modules/openai/error.js:60:20) 15756 [Stderr] at OpenAI.makeStatusError (/Users/kgilpin/source/appland/appmap-js/node_modules/openai/core.js:275:33) 15756 [Stderr] at OpenAI.makeRequest (/Users/kgilpin/source/appland/appmap-js/node_modules/openai/core.js:318:30) 15756 [Stderr] at process.processTicksAndRejections (node:internal/process/task_queues:95:5) 15756 [Stderr] at async /Users/kgilpin/source/appland/appmap-js/node_modules/@langchain/openai/dist/chat_models.cjs:1306:29 15756 [Stderr] at async RetryOperation._fn (/Users/kgilpin/source/appland/appmap-js/node_modules/p-retry/index.js:50:12)
Version: 1.93.1 (Universal) Commit: 38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40 Date: 2024-09-11T17:20:05.685Z Electron: 30.4.0 ElectronBuildId: 10073054 Chromium: 124.0.6367.243 Node.js: 20.15.1 V8: 12.4.254.20-electron.0 OS: Darwin arm64 21.6.0
:tada: This issue has been resolved in version 0.130.0 :tada:
The release is available on:
v0.130.0
Your semantic-release bot :package::rocket:
I am using Code 1.93.1 in Copilot mode.
The AppMap RPC process is being launched with a token limit of
19827
.Later in my session, I do get a token overflow error: