acecalisto3 commited on
Commit
f89dbaa
·
verified ·
1 Parent(s): 6e13745

Update appaaa.py

Browse files
Files changed (1) hide show
  1. appaaa.py +1 -3
appaaa.py CHANGED
@@ -139,7 +139,7 @@ def find_related_issues(issue_text: str, issues: list) -> list:
139
 
140
 
141
  ### Function to handle chat responsesasync
142
- def respond(
143
  command: str,
144
  history: List[Tuple[str, str]],
145
  system_message: str,
@@ -154,8 +154,6 @@ def find_related_issues(issue_text: str, issues: list) -> list:
154
  programming_language: str,
155
  *args
156
  ) -> str:
157
- # Removed global keyword and instead used local variables
158
- # This is a good practice to avoid polluting the global namespace
159
  github_api_token_local = github_api_token
160
  issues_local = []
161
  github_client_local = None
 
139
 
140
 
141
  ### Function to handle chat responsesasync
142
+ async def respond(
143
  command: str,
144
  history: List[Tuple[str, str]],
145
  system_message: str,
 
154
  programming_language: str,
155
  *args
156
  ) -> str:
 
 
157
  github_api_token_local = github_api_token
158
  issues_local = []
159
  github_client_local = None