AbanteAI/mentat

Get KeyError given by embedder when a large file is included

jakethekoenig opened this issue · 1 comments

When a large file is added to context the embedder gives a key error. I'm not exactly sure why since every file should be added to a batch as far as I can tell and OpenAI doesn't give us any errors.
image

It was a mistake when I made it originally - on line 136 we skip it, but then we didn't check if it was missing and set to 0. Easy fix in #291.