Skip to content

Commit

Permalink
Incoming
Browse files Browse the repository at this point in the history
  • Loading branch information
KillianLucas committed Nov 9, 2024
1 parent 4b72690 commit 2121316
Show file tree
Hide file tree
Showing 49 changed files with 1,157 additions and 10,333 deletions.
File renamed without changes.
6 changes: 3 additions & 3 deletions computer_use/main.py → archive/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class APIProvider(StrEnum):
</IMPORTANT>"""


async def sampling_loop(
async def respond(
*,
model: str = "claude-3-5-sonnet-20241022",
provider: APIProvider,
Expand Down Expand Up @@ -788,7 +788,7 @@ async def async_main(args):
)

try:
async for chunk in sampling_loop(
async for chunk in respond(
model=args["model"],
provider=args.get("provider"),
messages=messages,
Expand All @@ -811,7 +811,7 @@ async def async_main(args):
# The thread will automatically terminate when the main program exits


def main(args):
def run(args):
if "--server" in sys.argv:
# Start uvicorn server directly without asyncio.run()
app = asyncio.run(async_main(args))
Expand Down
124 changes: 0 additions & 124 deletions computer_use/cli.py

This file was deleted.

Empty file removed computer_use/tests/__init__.py
Empty file.
201 changes: 0 additions & 201 deletions computer_use/tests/test_computer.py

This file was deleted.

Loading

0 comments on commit 2121316

Please sign in to comment.