Litellm dev 01 10 2025 p3 (#7682)

* feat(langfuse.py): log the used prompt when prompt management used

* test: fix test

* docs(self_serve.md): add doc on restricting personal key creation on ui

* feat(s3.py): support s3 logging with team alias prefixes (if available)

New preview feature

* fix(main.py): remove old if block - simplify to just await if coroutine returned

fixes lm_studio async embedding error

* fix(langfuse.py): handle get prompt check
This commit is contained in:
Krish Dholakia 2025-01-10 21:56:42 -08:00 committed by GitHub
parent e54d23c919
commit 953c021aa7
11 changed files with 148 additions and 112 deletions

View file

@ -1114,6 +1114,7 @@ generation_params = {
def test_langfuse_prompt_type(prompt):
from litellm.integrations.langfuse.langfuse import _add_prompt_to_generation_params
from unittest.mock import patch, MagicMock, Mock
clean_metadata = {
"prompt": {
@ -1215,7 +1216,10 @@ def test_langfuse_prompt_type(prompt):
"cache_hit": False,
}
_add_prompt_to_generation_params(
generation_params=generation_params, clean_metadata=clean_metadata
generation_params=generation_params,
clean_metadata=clean_metadata,
prompt_management_metadata=None,
langfuse_client=Mock(),
)