Commit graph

229 commits

Author SHA1 Message Date
Marc Abramowitz
b7452cb383 Rename request header 2024-06-21 21:52:55 -07:00
Marc Abramowitz
91e2b661ca Turn on message logging via request header 2024-06-21 20:21:19 -07:00
Krrish Dholakia
2584120012 refactor(litellm_logging.py): refactors how slack_alerting generates langfuse trace url
gets the url from logging object
2024-06-21 16:12:25 -07:00
Krrish Dholakia
e5e81ca3b7 fix(litellm_logging.py): reset langfuse logger correctly 2024-06-19 22:09:38 -07:00
Ishaan Jaff
ca0b404299 fix test_langfuse_dynamic_logging 2024-06-19 20:53:58 -07:00
Krish Dholakia
71716bec48
Merge pull request #4295 from BerriAI/litellm_gemini_pricing_2
Vertex AI - character based cost calculation
2024-06-19 19:17:09 -07:00
Krrish Dholakia
682ec33aa0 fix(litellm_logging.py): initialize global variables
Fixes https://github.com/BerriAI/litellm/issues/4281
2024-06-19 18:39:45 -07:00
Krrish Dholakia
16da21e839 feat(llm_cost_calc/google.py): do character based cost calculation for vertex ai
Calculate cost for vertex ai responses using characters in query/response

 Closes https://github.com/BerriAI/litellm/issues/4165
2024-06-19 17:18:42 -07:00
David Manouchehri
c04680d54b
fix(litellm_logging.py): Add missing import statement. 2024-06-19 05:48:46 +00:00
Krish Dholakia
0c2c02ba8d
Merge pull request #4266 from BerriAI/litellm_gemini_image_url
Support 'image url' to vertex ai / google ai studio gemini models
2024-06-18 20:39:25 -07:00
Ishaan Jaff
f3ac3f85cd fix llm_request_utils 2024-06-18 20:06:58 -07:00
Ishaan Jaff
a26a023ff8 fix - log langfuse prompt 2024-06-18 19:25:51 -07:00
Krrish Dholakia
3f7252c422 fix(support-passing-image-url-to-gemini-via-vertex-ai): Closes https://github.com/BerriAI/litellm/issues/4262 2024-06-18 10:55:58 -07:00
Krrish Dholakia
84285b9dbb fix(litellm_logging.py): fix error logging 2024-06-17 20:28:55 -07:00
Ishaan Jaff
e37092aab6 use older logfire logging 2024-06-17 19:45:22 -07:00
Ishaan Jaff
c93463b535 fix maintain older usage of logfire 2024-06-17 19:42:39 -07:00
Ishaan Jaff
61ff712a08 fix deps 2024-06-17 19:33:10 -07:00
Ishaan Jaff
4a75e57b6f fix logfire 2024-06-17 19:21:35 -07:00
Ishaan Jaff
18f1a42c5a fix - refactor logfire 2024-06-17 17:21:43 -07:00
Krrish Dholakia
f597aa432b feat(cost_calculator.py): add cost calculating for dynamic context window (vertex ai / google ai studio) 2024-06-17 12:38:10 -07:00
Krrish Dholakia
2623bb260f fix(litellm_logging.py): fix lago callback logic 2024-06-17 09:10:19 -07:00
Krrish Dholakia
af88e55d46 fix(utils.py): move 'set_callbacks' to litellm_logging.py 2024-06-15 12:02:30 -07:00
Krrish Dholakia
c08e3b62dc fix(litellm_logging.py): fix import 2024-06-15 11:17:39 -07:00
Krrish Dholakia
4f91205530 refactor(utils.py): refactor Logging to it's own class. Cut down utils.py to <10k lines.
Easier debugging

 Reference: https://github.com/BerriAI/litellm/issues/4206
2024-06-15 10:57:20 -07:00
Ishaan Jaff
cb7521b11f fix - result 2024-06-14 21:15:49 -07:00
Ishaan Jaff
b6fee33307 fix redact_message_input_output_from_logging 2024-06-14 20:23:10 -07:00
Ishaan Jaff
d274cfeb3f test test_redact_msgs_from_logs 2024-06-13 13:49:23 -07:00
Ishaan Jaff
b154a4a8ad fix - redacting messages 2024-06-13 11:59:18 -07:00
Ishaan Jaff
9cb582307a fix - fix redacting messages litellm 2024-06-13 11:52:20 -07:00