Skip to content

Commit 1bbb701

Browse files
committed
Add ip and location to _request
1 parent 94fcaea commit 1bbb701

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

llmstack/apps/handlers/app_runnner.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,16 @@ def _get_bookkeeping_actor_config(self, processor_configs):
622622

623623
def _get_input_data(self):
624624
input = self.request.data.get("input", {})
625-
return {"input": {**input, "_request": {"request_ip": self.input_actor_request.request_ip}}}
625+
return {
626+
"input": {
627+
**input,
628+
"_request": {
629+
"ip": self.input_actor_request.request_ip,
630+
"user_agent": self.input_actor_request.request_user_agent,
631+
"location": self.input_actor_request.request_location,
632+
},
633+
}
634+
}
626635

627636
def _get_actor_configs(
628637
self,

0 commit comments

Comments
 (0)