MyLife-Services / mylife-maht

MyLife Member Services Repository
https://humanremembranceproject.org
MIT License
1 stars 1 forks source link

Biographer Thread Lost #201

Closed Mookse closed 1 month ago

Mookse commented 1 month ago

Thread is getting lost (new one created) every exchange at local dev - might have to do with save or if, correct asap

Mookse commented 1 month ago
Mookse commented 1 month ago
Mookse commented 1 month ago
async function chat(ctx){
    const message = ctx.request.body?.message
        ?? false /* body has all the nodes sent by fe */
    if(!message?.length)
            ctx.throw(400, 'missing `message` content')
    const response = await ctx.state.avatar.chatRequest(message)
    ctx.body = response
}
Mookse commented 1 month ago

See file alterations in branch for fix. Entire handshake was broken between frontend (sending null) to backend not pre-creating conversations it knew it could undertake from thread ids found in bots.