Ishaan Jaff
383c928d59
Merge pull request #3750 from BerriAI/litellm_raise_exception_when_deleting_updating_team
...
[Fix] - raise Exception when trying to update/delete a non-existent team
2024-05-20 18:42:27 -07:00
Krish Dholakia
f3a47e4b1a
Merge branch 'main' into litellm_webhook_support
2024-05-20 18:41:58 -07:00
Ishaan Jaff
f1dd893e83
Merge pull request #3749 from BerriAI/litellm_raise_404_when_team_not_exist
...
[Fix] - raise 404 from `/team/info` when team does not exist
2024-05-20 17:52:43 -07:00
Krish Dholakia
db77e41833
Merge pull request #3740 from BerriAI/litellm_return_rejected_response
...
feat(proxy_server.py): allow admin to return rejected response as string to user
2024-05-20 17:48:21 -07:00
Krrish Dholakia
c6b4ad247b
fix(proxy_server.py): fix error string
2024-05-20 17:37:41 -07:00
Ishaan Jaff
df89da8573
fix - raise Exception when trying to update/delete a non-existtent team
2024-05-20 17:36:08 -07:00
Ishaan Jaff
f94349297c
fix - raise 404 when team does not exist
2024-05-20 17:14:03 -07:00
Krrish Dholakia
fd13a830ab
fix(slack_alerting.py): cleanup webhook event
2024-05-20 16:55:01 -07:00
Ishaan Jaff
508bff13ab
fix - revert check_request_disconnection
2024-05-20 15:43:29 -07:00
Krrish Dholakia
c0d5e83570
feat(slack_alerting.py): support webhook for budget alerts
...
Closes https://github.com/BerriAI/litellm/issues/3743
2024-05-20 15:30:56 -07:00
Ishaan Jaff
4f3a90bb2e
Merge pull request #3742 from BerriAI/litellm_enforce_sso
...
[Feat] Enforce user has a valid license when using SSO on LiteLLM Proxy
2024-05-20 14:07:23 -07:00
Ishaan Jaff
9d2f60079d
fix error on enforce sso
2024-05-20 13:02:56 -07:00
Ishaan Jaff
77ac6d9b74
feat - enforce sso on Admin UI
2024-05-20 12:54:08 -07:00
Ishaan Jaff
44c998293d
only run check_request_disconnection logic for 10 mins
2024-05-20 12:39:03 -07:00
Krrish Dholakia
d4d4550bb6
fix(proxy_server.py): fixes for making rejected responses work with streaming
2024-05-20 12:32:19 -07:00
Ishaan Jaff
df4e6b6576
docs - update openapi swagger docs
2024-05-20 12:26:42 -07:00
Krrish Dholakia
8fb8d068fb
feat(proxy_server.py): refactor returning rejected message, to work with error logging
...
log the rejected request as a failed call to langfuse/slack alerting
2024-05-20 11:14:36 -07:00
Krrish Dholakia
45fedb83c6
feat(proxy_server.py): allow admin to return rejected response as string to user
...
Closes https://github.com/BerriAI/litellm/issues/3671
2024-05-20 10:30:23 -07:00
Krrish Dholakia
0016477d3b
feat(proxy_server.py): new 'supported_openai_params' endpoint
...
get supported openai params for a given model
2024-05-20 08:39:50 -07:00
Krish Dholakia
90e9bf7769
Merge branch 'main' into litellm_model_id_fix
2024-05-17 22:36:17 -07:00
Ishaan Jaff
455bae52ae
Merge pull request #3713 from BerriAI/litellm_ui_infer_azure_prefix
...
[Feat] Admin UI - use `base_model` for Slack Alerts
2024-05-17 21:55:23 -07:00
Krrish Dholakia
1ccc604953
fix(slack_alerting.py): show langfuse traces on error messages
2024-05-17 18:42:30 -07:00
Krish Dholakia
60615f46c4
Merge branch 'main' into litellm_bedrock_anthropic_fix
2024-05-17 17:47:32 -07:00
Krrish Dholakia
45b7106951
fix(proxy_server.py): fix setting model id for db models
...
get model_id and use that as it's id in router, this enables `/model/delete` to work with the given id from `/model/info`
2024-05-17 17:45:05 -07:00
Ishaan Jaff
f92dd0ec9b
fix - show correct base_model in slack alerts
2024-05-17 16:07:02 -07:00
Krrish Dholakia
9ab2389b7e
feat(proxy_server.py): enable custom branding + routes on openapi docs
...
Allows user to add their branding + show only openai routes on docs
2024-05-17 15:21:29 -07:00
Krrish Dholakia
118fc4ffac
fix(bedrock_httpx.py): move anthropic bedrock calls to httpx
...
Fixing https://github.com/BerriAI/litellm/issues/2921
2024-05-16 21:51:55 -07:00
Krrish Dholakia
b639e9598b
fix(proxy_server.py): fix invalid header string
2024-05-16 21:05:40 -07:00
Krish Dholakia
854d173423
Merge pull request #3701 from paneru-rajan/Issue-3675-remove-empty-valued-header
...
Exclude custom headers from response if the value is None or empty string
2024-05-16 17:42:07 -07:00
Rajan Paneru
98d8f1d100
use default empty str if the allowed_model_region attribute is not present
2024-05-17 10:05:18 +09:30
Rajan Paneru
29e5ec1112
handle exception and logged it
2024-05-17 09:55:13 +09:30
Ishaan Jaff
70194f7ba2
fix - allow users to opt into specific alert types
2024-05-16 16:52:44 -07:00
Rajan Paneru
fa38c592b1
Exclude custom headers from response if the value is None or empty string
...
This will return clean header, sending a header with empty value is not standard which
is being avoided from this fix.
2024-05-17 09:06:58 +09:30
Krrish Dholakia
b9c7abf574
fix(proxy_server.py): fix code
2024-05-16 15:02:39 -07:00
Krish Dholakia
ae89240714
Merge branch 'main' into litellm_end_user_obj
2024-05-16 14:16:09 -07:00
Ishaan Jaff
3a52073b48
Merge pull request #3682 from BerriAI/litellm_token_counter_endpoint
...
[Feat] `token_counter` endpoint
2024-05-16 13:39:23 -07:00
Ishaan Jaff
11794f5fc5
test - token count response
2024-05-16 13:20:01 -07:00
Krish Dholakia
4c8b620352
Merge pull request #3685 from BerriAI/litellm_lago_integration
...
feat(lago.py): Enable Usage-based billing with lago
2024-05-16 13:09:48 -07:00
Ishaan Jaff
5ba4f5b4f1
feat - include model name in cool down alerts
2024-05-16 12:52:15 -07:00
Ishaan Jaff
bccc38acad
Merge pull request #3686 from msabramo/msabramo/fix-datetime-utcnow-deprecation-warnings
...
Fix `datetime.datetime.utcnow` `DeprecationWarning`
2024-05-16 12:19:06 -07:00
Krish Dholakia
fe270c6c36
Merge pull request #3663 from msabramo/msabramo/allow-non-admins-to-use-openai-routes
...
Allow non-admins to use `/engines/{model}/chat/completions`
2024-05-16 12:17:50 -07:00
Marc Abramowitz
263a24d8eb
Fix datetime.datetime.utcnow DeprecationWarning
...
Eliminates these warning when running tests:
```
$ cd litellm/tests
pytest test_key_generate_prisma.py -x -vv
...
====================================================================== warnings summary =======================================================================
...
test_key_generate_prisma.py::test_generate_and_call_with_expired_key
test_key_generate_prisma.py::test_key_with_no_permissions
/Users/abramowi/Code/OpenSource/litellm/litellm/proxy/proxy_server.py:2934: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
expires = datetime.utcnow() + timedelta(seconds=duration_s)
...
```
2024-05-16 11:56:02 -07:00
Ishaan Jaff
a3763c8608
feat - try using hf tokenizer
2024-05-16 10:59:29 -07:00
Krrish Dholakia
d167a9ea99
feat(lago.py): adding support for usage-based billing with lago
...
Closes https://github.com/BerriAI/litellm/issues/3639
2024-05-16 10:54:18 -07:00
Ishaan Jaff
ee907443e7
fix token counter endpoint
2024-05-16 10:03:21 -07:00
Ishaan Jaff
47c5210518
fix make token counter a /utils/token_counter
2024-05-16 10:00:34 -07:00
Ishaan Jaff
5efaf2bccc
working token counter endpoint
2024-05-16 09:58:22 -07:00
Ishaan Jaff
006964fd8e
dev - token_counter endpoint
2024-05-16 09:47:07 -07:00
Ishaan Jaff
f22581bf93
fix - flush langfuse logs on proxy shutdown
2024-05-16 09:21:48 -07:00
Krish Dholakia
07a1cf39e8
Merge branch 'main' into litellm_end_user_cost_tracking
2024-05-15 22:27:04 -07:00