Skip to content

Commit

Permalink
change headers to optional
Browse files Browse the repository at this point in the history
  • Loading branch information
cmpxchg16 committed Mar 26, 2024
1 parent 10e5e7b commit 92bb3a3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ def _parse_headers(self, llm_interaction, document):
llm_interaction["llm.user"] = document.get("llm.user")
headers_dict = safe_loads_dictionary_string(document.get("llm.headers"))
# parse all meaningful headers here
llm_interaction["session-id"] = headers_dict.get("x-session-id")
if headers_dict:
llm_interaction["session-id"] = headers_dict.get("x-session-id")
return llm_interaction

def _parse_trace_request(self, export_trace_service_request):
Expand Down

0 comments on commit 92bb3a3

Please sign in to comment.