mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-11 03:38:38 +00:00
style(proxy): trim the session promotion comment to the non-obvious why
Some checks failed
LiteLLM Rust / rust-lint (push) Has been cancelled
LiteLLM Rust / rust-test (push) Has been cancelled
LiteLLM Rust / rust-wheel (push) Has been cancelled
Terraform Provider / gofmt, vet, build, test (push) Has been cancelled
Terraform Provider / Provider endpoints vs proxy OpenAPI schema (push) Has been cancelled
Some checks failed
LiteLLM Rust / rust-lint (push) Has been cancelled
LiteLLM Rust / rust-test (push) Has been cancelled
LiteLLM Rust / rust-wheel (push) Has been cancelled
Terraform Provider / gofmt, vet, build, test (push) Has been cancelled
Terraform Provider / Provider endpoints vs proxy OpenAPI schema (push) Has been cancelled
This commit is contained in:
parent
6b4e3198cf
commit
250b1a50d2
1 changed files with 2 additions and 4 deletions
|
|
@ -856,10 +856,8 @@ def apply_missing_session_id_policy(
|
|||
return
|
||||
caller_session_id: Final = _caller_trace_field(data, _metadata_variable_name, "session_id")
|
||||
if caller_session_id is not None:
|
||||
# The caller supplied a usable session id, so generate/reject must not
|
||||
# fire. Surface it on the root field as well: consumers that read
|
||||
# ``litellm_session_id`` (router fallbacks, spend logs, sandbox reuse)
|
||||
# otherwise see no session at all and mint a fresh uuid4 per request.
|
||||
# Consumers that read the root field (router fallbacks, spend logs,
|
||||
# sandbox reuse) otherwise see no session and mint a uuid4 per request.
|
||||
if not data.get("litellm_session_id"):
|
||||
data["litellm_session_id"] = caller_session_id # rebind-ok: data is an out-param
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue