mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-12 19:05:18 +00:00
feat: Enhance YAML parsing with additional fallbacks and key customization in load_yaml and try_fix_yaml functions
This commit is contained in:
parent
553dad0bee
commit
2b23700aec
1 changed files with 1 additions and 1 deletions
|
|
@ -326,7 +326,7 @@ def load_yaml(response_text: str, keys_fix_yaml: List[str] = []) -> dict:
|
|||
return data
|
||||
|
||||
|
||||
def try_fix_yaml(response_text: str, keys_fix_yaml: List[str]) -> dict:
|
||||
def try_fix_yaml(response_text: str, keys_fix_yaml: List[str] = []) -> dict:
|
||||
response_text_lines = response_text.split('\n')
|
||||
|
||||
keys = ['relevant line:', 'suggestion content:', 'relevant file:', 'existing code:', 'improved code:']
|
||||
|
|
|
|||
Loading…
Reference in a new issue