Skip to content

Commit

Permalink
fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
RageAgainstTheMachine101 committed Oct 23, 2023
1 parent 3eda7c3 commit 3fa0355
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions slack_bot/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@ def process_conversation_history(

if cleaned_message == AN_COMMAND:
conversation_history["messages"].pop(0)
system = prompts["clarification"].replace("{template}", templates["yt_issue"])
system = prompts["clarification"].replace( # type: ignore[union-attr]
"{template}", templates["yt_issue"] # type: ignore[arg-type]
)
messages.append({"role": "system", "content": system})

for message in conversation_history["messages"][:-1]:
Expand All @@ -177,7 +179,7 @@ def get_conversation_history(


def submit_issue(messages: list[dict[str, str]], openai: Any) -> str:
funcs = [json.loads(functions["create_issue"])]
funcs = [json.loads(functions["create_issue"])] # type: ignore[arg-type]
openai_response = openai.ChatCompletion.create(
model=MODEL,
messages=messages,
Expand Down

0 comments on commit 3fa0355

Please sign in to comment.