mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-01 09:04:03 +00:00
fix(core): exclude api_key from tracing metadata (#32184)
(standard param)
This commit is contained in:
parent
e41e6ec6aa
commit
ebf2e11bcb
@ -230,6 +230,7 @@ def ensure_config(config: Optional[RunnableConfig] = None) -> RunnableConfig:
|
||||
not key.startswith("__")
|
||||
and isinstance(value, (str, int, float, bool))
|
||||
and key not in empty["metadata"]
|
||||
and key != "api_key"
|
||||
):
|
||||
empty["metadata"][key] = value
|
||||
return empty
|
||||
|
Loading…
Reference in New Issue
Block a user