Skip to content

Fix/response error#32

Open
janb-random wants to merge 3 commits intoRossAscends:mainfrom
janb-random:fix/ResponseError
Open

Fix/response error#32
janb-random wants to merge 3 commits intoRossAscends:mainfrom
janb-random:fix/ResponseError

Conversation

@janb-random
Copy link
Copy Markdown

Fixes error in response

[INFO] api - [processResponse] Processing response..
file:///.../STMP/src/stream.js:189
if (!isPrefillDisabled && !haveInsertedPrefillForDisplayYet && !shouldContinue && liveConfig.promptConfig.responsePrefill.length > 0) {
^

TypeError: Cannot read properties of undefined (reading 'length')
at EventEmitter. (file:///.../STMP/src/stream.js:189:131)
at EventEmitter.emit (node:events:518:28)
at Readable. (file:///.../STMP/src/stream.js:401:29)
at Readable.emit (node:events:530:35)
at addChunk (node:internal/streams/readable:561:12)
at readableAddChunkPushObjectMode (node:internal/streams/readable:538:3)
at Readable.push (node:internal/streams/readable:393:5)
at nextAsync (node:internal/streams/from:194:22)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)

Node.js v22.18.0
Drücken Sie eine beliebige Taste . . .

janb-random and others added 3 commits April 2, 2026 20:46
- Ensure `getAPIDefaults` is awaited before API calls in `getAIResponse`
- Add error handling for missing default parameters in `getAIResponse`
- Add input guard in `replaceMacros` for non-string values

fixes RossAscends#30
- responsePrefill length check with array coercion
- Append prefill as String to output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant