Skip to content

Commit 2121316

Browse files
committedNov 9, 2024·
Incoming
1 parent 4b72690 commit 2121316

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1157
-10333
lines changed
 
File renamed without changes.

‎computer_use/main.py ‎archive/main.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class APIProvider(StrEnum):
109109
</IMPORTANT>"""
110110

111111

112-
async def sampling_loop(
112+
async def respond(
113113
*,
114114
model: str = "claude-3-5-sonnet-20241022",
115115
provider: APIProvider,
@@ -788,7 +788,7 @@ async def async_main(args):
788788
)
789789

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

813813

814-
def main(args):
814+
def run(args):
815815
if "--server" in sys.argv:
816816
# Start uvicorn server directly without asyncio.run()
817817
app = asyncio.run(async_main(args))

0 commit comments

Comments
 (0)
Please sign in to comment.