Krish Dholakia
2b50b43ae2
Support passing prompt_label to langfuse ( #11018 )
...
* fix: add prompt label support to prompt management hook
* feat: support 'prompt_label' parameter for langfuse prompt management
Closes https://github.com/BerriAI/litellm/discussions/9003#discussioncomment-13221555
* fix(litellm_logging.py): deep copy optional params to avoid mutation while logging
* fix(log-consistent-optional-param-values-across-providers): ensures params can be used for finetuning from providers
* fix: fix linting error
* test: update test
* test: update langfuse tests
* fix(litellm_logging.py): avoid deepcopying optional params
might contain thread object
2025-05-21 22:27:36 -07:00
Ishaan Jaff
b535c9bdc0
(Bug Fix - Langfuse) - fix for when model response has choices=[] ( #8339 )
...
* refactor _get_langfuse_input_output_content
* test_langfuse_logging_completion_with_malformed_llm_response
* fix _get_langfuse_input_output_content
* fixes for langfuse linting
* unit testing for get chat/text content for langfuse
* fix _should_raise_content_policy_error
2025-02-06 18:02:26 -08:00
Ishaan Jaff
53a3ea3d06
(Refactor) Langfuse - remove prepare_metadata, langfuse python SDK now handles non-json serializable objects ( #7925 )
...
* test_langfuse_logging_completion_with_langfuse_metadata
* fix litellm - remove prepare metadata
* test_langfuse_logging_with_non_serializable_metadata
* detailed e2e langfuse metadata tests
* clean up langfuse logging
* fix langfuse
* remove unused imports
* fix code qa checks
* fix _prepare_metadata
2025-01-22 22:11:40 -08:00
Ishaan Jaff
1f4ea88228
(Testing) - Add e2e testing for langfuse logging with tags ( #7922 )
...
* move langfuse tests
* fix test
* fix completion.json
* working test
* test completion with tags
* langfuse testing fixes
* faster logging testing
* pytest-xdist in testing
* fix langfuse testing flow
* fix testing flow
* fix config for logging tests
* fix langfuse completion with tags stream
* fix _verify_langfuse_call
2025-01-22 09:09:25 -08:00