mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
Merge pull request #3559 from Intellegam/main
Langfuse integration support for `parent_observation_id` parameter
This commit is contained in:
commit
056913fd70
2 changed files with 9 additions and 3 deletions
|
@ -528,6 +528,10 @@ class LangFuseLogger:
|
|||
"version": clean_metadata.pop("version", None),
|
||||
}
|
||||
|
||||
parent_observation_id = metadata.get("parent_observation_id", None)
|
||||
if parent_observation_id is not None:
|
||||
generation_params["parent_observation_id"] = parent_observation_id
|
||||
|
||||
if supports_prompt:
|
||||
user_prompt = clean_metadata.pop("prompt", None)
|
||||
if user_prompt is None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue