📥 Content Hub
← назад
patents ⚡ Google Patents en 2026-09-02 1 min

Fixing usages of deprecated apis using large language models

Патент · EP A1

EP-4799034-A1
приоритет 2023-10-27 подача 2024-10-03 публикация 2026-09-02 семья 95485115
patents-ai
Microsoft Technology Licensing, LLC

Techniques for intelligently prompting an LLM to fix code are disclosed. A corpus of release notes for a set of libraries is accessed. The release notes include information describing deprecated or removed APIs associated with the libraries. The corpus is stored in a vector database. A code snippet is accessed. This snippet is identified as potentially using a deprecated API. The code snippet is used to identify a set of release notes from the vector database. These release notes are determined to satisfy a threshold level of similarity with the code snippet. An LLM prompt is built and is fed to the LLM. The LLM prompt instructs the LLM to update the code snippet based on the identified set of release notes. Output of the LLM is displayed. This output includes a proposed rewritten version of the code snippet.

Читать оригинал ↗

Сделать контент из этого материала