Code generation using latest version of third party libs

// Lots of time when using Claude and GPT models to generate code using libraries and frameworks, code seems to be
// generated using older version of library. Please suggest a way to get latest version of library while generating code.
// In my opinion, one way to fix it would be to download latest version of library and add it to current workspace
// and then use embeddings to generate context sent to model. Another solution would be to use API docs to generate conetxt.

4 Likes

I’m surprised this doesn’t have a ton of likes! This is hugely important. Tons of time is wasted generating version after version of obsolete library integrations.

BTW, I believe the current best solution (that works in Cursor today) is use @ to reference the latest documentation on a subject: GitHub - getcursor/crawler: Easily show documentation to Cursor's coding AI