refactor: use a single agent model path
This commit is contained in:
@@ -119,9 +119,9 @@ class DirectDockerRegistry:
|
||||
|
||||
def parse_args() -> argparse.Namespace:
|
||||
parser = argparse.ArgumentParser(
|
||||
description="Run the real Work loop against a live provider in a disposable Docker workspace."
|
||||
description="Run the real Agent loop against a live provider in a disposable Docker workspace."
|
||||
)
|
||||
parser.add_argument("--model", default="work-extreme")
|
||||
parser.add_argument("--model", default="deepseek-v4-pro")
|
||||
parser.add_argument(
|
||||
"--prompt",
|
||||
default="写脚本对比一下几个常见排序算法,给一个报告",
|
||||
@@ -153,8 +153,6 @@ async def cleanup_workspace(execution: DockerExecutionProvider, user_id: str) ->
|
||||
async def main() -> None:
|
||||
args = parse_args()
|
||||
spec = get_model_spec(args.model)
|
||||
if spec.mode != "work":
|
||||
raise SystemExit("--model must select a Work tier")
|
||||
if spec.provider == "deepseek" and not os.getenv("DEEPSEEK_API_KEY", "").strip():
|
||||
raise SystemExit("DEEPSEEK_API_KEY is required")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user