Cursor Tab is very hit or miss

I’ve been using Tab for a while now and I find it pretty good for certain tasks like completing code according to some pattern (like a bunch of if statements or match cases). It also works well enough with libraries like torch, tensorflow, and numpy. However, lately I’ve noticed it hallucinates functions and parameter names. I’ve been working on a small project with MoviePy 2.2 and stable-ts. Tab complete will make up function names as well as imports even though all the function definitions and docs are available (though I’m not sure what information it’s able to access).

Is there something I’m doing wrong or is this a known issue with Tab?