Commit graph

958 commits

Author SHA1 Message Date
Krish Dholakia
9ce29295af
Merge pull request #2017 from sorokine/main 2024-02-17 07:07:56 -08:00
Krrish Dholakia
2a4a6995ac feat(llama_guard.py): add llama guard support for content moderation + new async_moderation_hook endpoint 2024-02-16 18:45:25 -08:00
Krrish Dholakia
f57483ea70 fix(utils.py): support image gen logging to langfuse 2024-02-16 16:12:52 -08:00
Alexandre Sorokine
3c919cbbe7 fix for importllib compatibility issue for python 3.8
was tested for python versions 3.8, 3.9, 3.10, 3.11, 3.12
2024-02-16 15:52:39 -05:00
Krish Dholakia
999fab82f7
Merge branch 'main' into litellm_moderations_improvements 2024-02-15 23:08:25 -08:00
Krish Dholakia
9b60ef9a3c
Merge pull request #1916 from RenaLu/main
Add support for Vertex AI custom models deployed on private endpoint
2024-02-15 22:47:36 -08:00
Krrish Dholakia
c37aad50ea fix(utils.py): add more exception mapping for huggingface 2024-02-15 21:26:22 -08:00
Krish Dholakia
1e238614c8
Merge pull request #1989 from BerriAI/litellm_redis_url_fix
fix(redis.py): fix instantiating redis client from url
2024-02-15 21:23:17 -08:00
Krrish Dholakia
eb45df16f1 fix(test_streaming.py): handle hf tgi zephyr not loading for streaming issue 2024-02-15 19:24:02 -08:00
ishaan-jaff
daa61cfdb6 (fix) merge conflicts 2024-02-15 18:34:53 -08:00
Ishaan Jaff
41302ed903
Merge branch 'main' into litellm_allow_users_use_generic_api_logger 2024-02-15 18:27:25 -08:00
ishaan-jaff
ec16b536a1 (fix) merge conflict 2024-02-15 18:25:19 -08:00
Krrish Dholakia
aa78f55dff fix(utils.py): add try-except around the tiktoken local import 2024-02-15 17:57:31 -08:00
ishaan-jaff
56fba95b4a (fix) importing enterprise features 2024-02-15 17:24:27 -08:00
ishaan-jaff
07afefea34 (chore) debug sys path docker error 2024-02-15 17:23:07 -08:00
Krrish Dholakia
3a5d40f4b9 fix(utils.py): fix local tiktoken package import 2024-02-15 16:18:54 -08:00
ishaan-jaff
47b8715d25 (feat) fix api callback imports 2024-02-15 16:15:36 -08:00
ishaan-jaff
4e8a94b916 (feat) log with generic logger 2024-02-15 13:43:16 -08:00
Krish Dholakia
78bff46d4a
Merge pull request #1947 from sorokine/main
Update utils.py: switched from pkg_resources to importlib.resources for `filename` stored in the `os.environ(TIKTOKEN_CACHE_DIR)`
2024-02-14 22:02:35 -08:00
Krish Dholakia
57654f4533
Merge branch 'main' into litellm_aioboto3_sagemaker 2024-02-14 21:46:58 -08:00
Rena Lu
9c45bfdb70 handle optional params 2024-02-14 23:27:16 +00:00
ishaan-jaff
693efc8e84 (feat) add moderation on router 2024-02-14 11:00:09 -08:00
Krrish Dholakia
afad40b4f8 fix(utils.py): fix streaming rule calling 2024-02-12 22:36:32 -08:00
Krrish Dholakia
7600c8f41d feat(utils.py): enable post call rules for streaming 2024-02-12 22:08:04 -08:00
Krrish Dholakia
b1bc30ee16 feat(sagemaker.py): aioboto3 streaming support 2024-02-12 21:18:34 -08:00
Alexandre Sorokine
36360c62ac Update utils.py: switched from pkg_resources to importlib.resources for filename stored in the os/environ(TIKTOKEN_CACHE_DIR) 2024-02-12 16:28:38 -05:00
ishaan-jaff
e36f1af389 (feat) fix litellm verbose logger 2024-02-09 19:01:21 -08:00
ishaan-jaff
6dc7ded1a6 (bedrock) raise timeout error 2024-02-09 14:37:34 -08:00
Krrish Dholakia
b9393fb769 fix(test_parallel_request_limiter.py): use mock responses for streaming 2024-02-08 21:45:38 -08:00
Ishaan Jaff
59465bd612
Merge pull request #1892 from BerriAI/litellm_speed_up_s3_logging
[FEAT] 76 % Faster s3 logging Proxy / litellm.acompletion / router.acompletion 🚀
2024-02-08 11:48:36 -08:00
ishaan-jaff
ac4d9a7542 (feat) speed up s3 logging 2024-02-08 10:59:54 -08:00
ishaan-jaff
9a23317461 (feat) fix s3 cache 2024-02-08 10:01:56 -08:00
ishaan-jaff
6969b25946 (fix) azure cost calc 2024-02-07 17:33:10 -08:00
ishaan-jaff
bb469278c6 (fix) cost tracking 2024-02-07 17:06:05 -08:00
ishaan-jaff
0764af4392 (feat) use base_model for azure response_cost 2024-02-07 16:33:07 -08:00
Krrish Dholakia
655fcd4d79 fix(utils.py): fix ollama stop sequence mapping 2024-02-07 13:14:03 -08:00
ishaan-jaff
ef32a5da1b (feat) redis-semantic cache 2024-02-06 13:30:55 -08:00
Krrish Dholakia
67dce555ec fix(utils.py): round max tokens to be int always 2024-02-06 13:17:26 -08:00
Krrish Dholakia
3afa5230d6 fix(utils.py): return finish reason for last vertex ai chunk 2024-02-06 09:21:03 -08:00
Krrish Dholakia
c2a523b954 fix(utils.py): use print_verbose for statements, so debug can be seen when running sdk 2024-02-06 07:30:26 -08:00
Krrish Dholakia
2e3748e6eb fix(ollama_chat.py): fix ollama chat completion token counting 2024-02-06 07:30:26 -08:00
Krrish Dholakia
a1bbb16ab2 fix(langfuse.py): support logging failed llm api calls to langfuse 2024-02-05 16:16:15 -08:00
Krrish Dholakia
77fe71ee08 fix(utils.py): support together ai function calling 2024-02-05 15:30:44 -08:00
Krrish Dholakia
1bdb332454 fix(utils.py): handle count response tokens false case token counting 2024-02-05 08:47:10 -08:00
Krish Dholakia
640572647a
Merge pull request #1805 from BerriAI/litellm_cost_tracking_image_gen
feat(utils.py): support cost tracking for openai/azure image gen models
2024-02-03 22:23:22 -08:00
Krrish Dholakia
25a0e15727 fix(utils.py): support time based pricing for openai-compatible together ai 2024-02-03 19:59:32 -08:00
Krrish Dholakia
efb6123d28 fix(utils.py): support get_secret("TOGETHER_AI_TOKEN") 2024-02-03 19:35:09 -08:00
Krrish Dholakia
c49c88c8e5 fix(utils.py): route together ai calls to openai client
together ai is now openai-compatible

n
2024-02-03 19:22:48 -08:00
Krrish Dholakia
c2f674ebe0 fix(utils.py): fix conditional check 2024-02-03 18:58:58 -08:00
Krish Dholakia
9ab59045a3
Merge branch 'main' into litellm_embedding_caching_updates 2024-02-03 18:08:47 -08:00