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
|
import subprocess
|
||||||
|
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
from typing import Callable, TypeVar
|
from typing import Callable, List, TypeVar
|
||||||
|
|
||||||
from gpt_engineer.ai import AI
|
from gpt_engineer.ai import AI
|
||||||
from gpt_engineer.chat_to_files import to_files
|
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):
|
def simple_gen(ai: AI, dbs: DBs):
|
||||||
|
|||||||
@@ -6,13 +6,13 @@ import subprocess
|
|||||||
|
|
||||||
from itertools import islice
|
from itertools import islice
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Iterable
|
from typing import Iterable, Union
|
||||||
|
|
||||||
from typer import run
|
from typer import run
|
||||||
|
|
||||||
|
|
||||||
def main(
|
def main(
|
||||||
n_benchmarks: int | None = None,
|
n_benchmarks: Union[int, None] = None,
|
||||||
):
|
):
|
||||||
path = Path("benchmark")
|
path = Path("benchmark")
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
import json
|
import json
|
||||||
import pathlib
|
import pathlib
|
||||||
|
|
||||||
|
from typing import Union
|
||||||
|
|
||||||
import typer
|
import typer
|
||||||
|
|
||||||
from gpt_engineer.ai import AI
|
from gpt_engineer.ai import AI
|
||||||
@@ -12,7 +14,7 @@ app = typer.Typer()
|
|||||||
@app.command()
|
@app.command()
|
||||||
def main(
|
def main(
|
||||||
messages_path: str,
|
messages_path: str,
|
||||||
out_path: str | None = None,
|
out_path: Union[str, None] = None,
|
||||||
model: str = "gpt-4",
|
model: str = "gpt-4",
|
||||||
temperature: float = 0.1,
|
temperature: float = 0.1,
|
||||||
):
|
):
|
||||||
|
|||||||
Reference in New Issue
Block a user