Skip to content

Commit

Permalink
Honor http.wantctx
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Jun 5, 2024
1 parent ac2c645 commit 75fe371
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions r2ai/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def handle_v1_chat_completions(self, ai, obj, runline2, method):
if "messages" not in obj:
return handle_v1_completions_default(self, ai, obj, runline2, method)
codequery = obj["messages"][0]["content"]
runline2(ai, "-R")
#runline2(ai, "-R")
response = json.loads('''{
"id": "r2ai",
"object": "chat.completion.chunk",
Expand Down Expand Up @@ -143,7 +143,7 @@ def handle_v1_completions(self, ai, obj, runline2, method):
self.send_response(200)
self.end_headers()
return True
runline2(ai, "-R")
#runline2(ai, "-R")
#codequery = f"What's between `{pfx}` and `{sfx}` in `{lng}`, without including the context"
codequery = f"Complete the code between `{pfx}` and `{sfx}` in `{lng}`"
response = json.loads('''{
Expand Down

0 comments on commit 75fe371

Please sign in to comment.