arrow
Return

Two Steps to Precision: Enhancing Reliable API Invocation in Code Generation

delete2026-01-01
delete0
PRE
AI
Y
Yanming Li
Z
Ziye Tang
W
Wang, Siyi
G
Guilin Qi *
DOI:10.1007/978-981-95-3346-6_33delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Automatic code generation is crucial in modern software development, yet large language models struggle with real-world challenges like code versioning and multi-API invocation. Existing approaches, including direct generation and retrieval-augmented methods, often fail to ensure precise API usage. This paper introduces a simple yet effective two-step framework: rough code generation or retrieval followed by fine code editing. Experiments on VersiCode and BigCodeBench show significant performance gains in version-specific code completion and function-level programming. These results demonstrate the framework's practicality in enhancing LLM-based code generation systems.
Keywords:
code generation
API invocation
code editing
large language models
version-specific completion

Journal

N
NATURAL LANGUAGE PROCESSING AND CHINESE COMPUTING, NLPCC 2025, PT II
IF:
0
Papers:
29
Citations:
0

Organization

S
southeast university - china
Scholars:
5.3W
Papers: 4.9W
Citations: 57
Cited Papers

Cited Papers

DevEval: A Manually-Annotated Code Generation Benchmark Aligned with Real-World Code Repositories
err2024-01-01
err0
PREAI
errJia Li; Ge Li; Yunfei Zhao; Yongmin Li; Huanyu Liu; Hao Zhu; Lecheng Wang; Kaibo Liu; Zheng Fang; Lanshen Wang; Jiazheng Ding; Xuanming Zhang; Yuqi Zhu; Yihong Dong; Zhi Jin; Binhua Li; Fei Huang; Yongbin Li; Bin Gu; Mengfei Yang
errShare
errSave
Retrieval-Based Neural Code Generation
err2018-01-01
err0
errOAAI
errShirley Anugrah Hayati; Raphael Olivier; Pravalika Avvaru; Pengcheng Yin; Anthony Tomasic; Graham Neubig
errShare
errSave