Skip to content

Commit

Permalink
wip stash
Browse files Browse the repository at this point in the history
  • Loading branch information
wenzhe-log10 committed Feb 21, 2024
1 parent 80323fa commit b3d2447
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions log10/_httpx_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,15 @@ async def log_request(request: Request):
completion_id = request.headers.get("x-log10_completion_id", "")
if not completion_id:
return

log_row = {
"status": "started",
"request": ,
"orig_module": , # could fake
"orig_qualname": "ChatCompletion.create" if "chat" in request.url else "Completion.create",
"request": request.content,
"session_id": sessionID,
"tags": global_tags,
}



0 comments on commit b3d2447

Please sign in to comment.