mirror of
https://github.com/aljazceru/gpt-engineer.git
synced 2025-12-17 12:45:26 +01:00
edit on some typing (#341)
This commit is contained in:
committed by
GitHub
parent
529c747f72
commit
9bde354940
@@ -3,7 +3,7 @@ import re
|
||||
import subprocess
|
||||
|
||||
from enum import Enum
|
||||
from typing import Callable, TypeVar
|
||||
from typing import Callable, List, TypeVar
|
||||
|
||||
from gpt_engineer.ai import AI
|
||||
from gpt_engineer.chat_to_files import to_files
|
||||
@@ -16,7 +16,7 @@ def setup_sys_prompt(dbs):
|
||||
)
|
||||
|
||||
|
||||
Step = TypeVar("Step", bound=Callable[[AI, DBs], list[dict]])
|
||||
Step = TypeVar("Step", bound=Callable[[AI, DBs], List[dict]])
|
||||
|
||||
|
||||
def simple_gen(ai: AI, dbs: DBs):
|
||||
|
||||
@@ -6,13 +6,13 @@ import subprocess
|
||||
|
||||
from itertools import islice
|
||||
from pathlib import Path
|
||||
from typing import Iterable
|
||||
from typing import Iterable, Union
|
||||
|
||||
from typer import run
|
||||
|
||||
|
||||
def main(
|
||||
n_benchmarks: int | None = None,
|
||||
n_benchmarks: Union[int, None] = None,
|
||||
):
|
||||
path = Path("benchmark")
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
import json
|
||||
import pathlib
|
||||
|
||||
from typing import Union
|
||||
|
||||
import typer
|
||||
|
||||
from gpt_engineer.ai import AI
|
||||
@@ -12,7 +14,7 @@ app = typer.Typer()
|
||||
@app.command()
|
||||
def main(
|
||||
messages_path: str,
|
||||
out_path: str | None = None,
|
||||
out_path: Union[str, None] = None,
|
||||
model: str = "gpt-4",
|
||||
temperature: float = 0.1,
|
||||
):
|
||||
|
||||
Reference in New Issue
Block a user