Fix typo's (#2735)

Co-authored-by: lengweiping <lengweiping@vinotar.com>
This commit is contained in:
lengweiping1983
2023-04-21 12:09:17 +08:00
committed by GitHub
parent ec27d5729c
commit 63c2182870
3 changed files with 10 additions and 9 deletions

View File

@@ -17,14 +17,14 @@ def improve_code(suggestions: list[str], code: str) -> str:
chat completion api call.
Parameters:
suggestions (List): A list of suggestions around what needs to be improved.
suggestions (list): A list of suggestions around what needs to be improved.
code (str): Code to be improved.
Returns:
A result string from create chat completion. Improved code in response.
"""
function_string = (
"def generate_improved_code(suggestions: List[str], code: str) -> str:"
"def generate_improved_code(suggestions: list[str], code: str) -> str:"
)
args = [json.dumps(suggestions), code]
description_string = (