Skip to content

Commit

Permalink
Changed typing to fit python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Nitaym committed Jun 23, 2023
1 parent 9bde354 commit 102e44e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gpt_engineer/ai.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import logging

from typing import Dict, List

import openai

logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -39,7 +41,7 @@ def fuser(self, msg):
def fassistant(self, msg):
return {"role": "assistant", "content": msg}

def next(self, messages: list[dict[str, str]], prompt=None):
def next(self, messages: List[Dict[str, str]], prompt=None):
if prompt:
messages += [{"role": "user", "content": prompt}]

Expand Down

0 comments on commit 102e44e

Please sign in to comment.