Krish Dholakia
c2086300b7
Merge branch 'main' into litellm_redis_team_object
2024-07-25 19:31:52 -07:00
Krrish Dholakia
41abd51240
fix(custom_llm.py): pass input params to custom llm
2024-07-25 19:03:52 -07:00
Krrish Dholakia
060249c7e0
feat(utils.py): support async streaming for custom llm provider
2024-07-25 17:11:57 -07:00
Krrish Dholakia
b4e3a77ad0
feat(utils.py): support sync streaming for custom llm provider
2024-07-25 16:47:32 -07:00
Krrish Dholakia
9f97436308
fix(custom_llm.py): support async completion calls
2024-07-25 15:51:39 -07:00
Krrish Dholakia
6bf1b9353b
feat(custom_llm.py): initial working commit for writing your own custom LLM handler
...
Fixes https://github.com/BerriAI/litellm/issues/4675
Also Addresses https://github.com/BerriAI/litellm/discussions/4677
2024-07-25 15:33:05 -07:00
Krrish Dholakia
4e51f712f3
fix(main.py): fix calling openai gpt-3.5-turbo-instruct via /completions
...
Fixes https://github.com/BerriAI/litellm/issues/749
2024-07-25 09:57:19 -07:00
Krrish Dholakia
3cd3491920
test: cleanup testing
2024-07-24 19:47:50 -07:00
Krrish Dholakia
f35af3bf1c
test(test_completion.py): update azure extra headers
2024-07-24 18:42:50 -07:00
Krrish Dholakia
6ab2527fdc
feat(auth_check.py): support using redis cache for team objects
...
Allows team update / check logic to work across instances instantly
2024-07-24 18:14:49 -07:00
Ishaan Jaff
53dd47c5cb
Merge pull request #4862 from BerriAI/litellm_fix_unsupported_params_Error
...
[Fix-litellm python] Raise correct error for UnsupportedParams Error
2024-07-24 14:26:25 -07:00
Krrish Dholakia
65705fde25
test(test_embedding.py): add simple azure embedding ad token test
...
Addresses https://github.com/BerriAI/litellm/issues/4859#issuecomment-2248838617
2024-07-24 13:38:03 -07:00
Krrish Dholakia
77ffee4e2e
test(test_completion.py): add basic test to confirm azure ad token flow works as expected
2024-07-24 13:07:25 -07:00
Ishaan Jaff
30c27b3f92
test UnsupportedParamsError
2024-07-24 12:21:22 -07:00
Krrish Dholakia
d9539e518e
build(docker-compose.yml): add prometheus scraper to docker compose
...
persists prometheus data across restarts
2024-07-24 10:09:23 -07:00
Ishaan Jaff
ac7f6598f3
Merge pull request #4853 from BerriAI/litellm_support_tags
...
[Feat] - Support Logging tags on langsmith
2024-07-24 09:51:56 -07:00
David Manouchehri
ced03d9d7f
(test_embedding.py) - Re-enable embedding test with Azure OIDC.
2024-07-24 16:41:24 +00:00
Krish Dholakia
035d03c7f2
Merge pull request #4856 from msabramo/fix-test_prompt_factory-flake8-warning
...
Fix `test_prompt_factory` flake8 warning
2024-07-24 09:38:48 -07:00
Marc Abramowitz
a50fe3e1ca
Fix test_prompt_factory flake8 warning
...
```shell
$ poetry run flake8 litellm/tests/test_prompt_factory.py
<unknown>:215: SyntaxWarning: invalid escape sequence '\/'
litellm/tests/test_prompt_factory.py:215:21: W605 invalid escape sequence '\/'
```
Fixed by making the string a raw string, which is equivalent:
```
$ python
Python 3.11.6 (main, Oct 25 2023, 19:49:20) [Clang 14.0.0 (clang-1400.0.29.202)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> "data:image\/jpeg;base64,1234" == r"data:image\/jpeg;base64,1234"
True
```
See: https://stackoverflow.com/questions/52335970/how-to-fix-syntaxwarning-invalid-escape-sequence-in-python
2024-07-24 09:14:22 -07:00
David Manouchehri
c364a3129e
(test_secret_manager.py) - Improve and add CircleCI v1 test with Amazon.
2024-07-24 16:05:58 +00:00
David Manouchehri
4b89397136
(tests) - Skip embedding Azure AD test for now.
2024-07-24 15:42:57 +00:00
David Manouchehri
af3a900b4d
(tests) - Try azure AD auth directly.
2024-07-24 15:42:40 +00:00
Krrish Dholakia
41fda47587
test(test_embedding.py): fix base url
2024-07-24 08:04:27 -07:00
Ishaan Jaff
cea8fcc3fc
test - logging langsmith tags
2024-07-24 07:12:45 -07:00
Krish Dholakia
6c580ac8dc
Merge pull request #4845 from BerriAI/litellm_vertex_ai_llama3_1_api
...
feat(vertex_ai_llama.py): vertex ai llama3.1 api support
2024-07-23 21:51:46 -07:00
Krrish Dholakia
fb0a13c8bb
fix(anthropic.py): support openai system message being a list
2024-07-23 21:45:56 -07:00
Krrish Dholakia
7df94100e8
build(model_prices_and_context_window.json): add model pricing for vertex ai llama 3.1 api
2024-07-23 17:36:07 -07:00
Krrish Dholakia
83ef52e180
feat(vertex_ai_llama.py): vertex ai llama3.1 api support
...
Initial working commit for vertex ai llama 3.1 api support
2024-07-23 17:07:30 -07:00
Krish Dholakia
cb4c42e061
Merge pull request #4839 from Manouchehri/azure-oidc-test-1
...
Add test for Azure OIDC auth
2024-07-23 17:01:00 -07:00
Ishaan Jaff
c3d90f9aee
test_anthropic_completion_input_translation_with_metadata
2024-07-23 15:23:58 -07:00
David Manouchehri
2dcd9a5567
(test - azure): Add test for Azure OIDC auth.
2024-07-23 19:12:40 +00:00
Krrish Dholakia
f64a3309d1
fix(utils.py): support raw response headers for streaming requests
2024-07-23 11:58:58 -07:00
Krrish Dholakia
dcb974dd1e
feat(utils.py): support passing openai response headers to client, if enabled
...
Allows openai/openai-compatible provider response headers to be sent to client, if 'return_response_headers' is enabled
2024-07-23 11:30:52 -07:00
Krish Dholakia
e770ac48a2
Merge branch 'main' into litellm_braintrust_integration
2024-07-22 22:40:39 -07:00
Krish Dholakia
c4db6aa15e
Merge pull request #4810 from BerriAI/litellm_team_modify_guardrails
...
feat(auth_checks.py): Allow admin to disable team from turning on/off guardrails
2024-07-22 22:32:24 -07:00
Krrish Dholakia
1a83935aa4
fix(proxy/utils.py): add stronger typing for litellm params in failure call logging
2024-07-22 21:31:39 -07:00
Krrish Dholakia
92b1262caa
test(test_braintrust.py): add testing for braintrust integration
2024-07-22 18:05:11 -07:00
Ishaan Jaff
69e52e0a47
test - openai content policy errors
2024-07-22 16:24:03 -07:00
Ishaan Jaff
a0600a30d8
fix using arize as success callback
2024-07-22 15:32:49 -07:00
Ishaan Jaff
55f0728a7e
Merge pull request #4827 from BerriAI/litellm_use_anthropic_sdk_proxy
...
[Fix-Proxy] Allow non admin keys to access /v1/messages Anthropic Routes
2024-07-22 14:49:29 -07:00
Ishaan Jaff
9345c5de2a
add test for anthropic routes
2024-07-22 14:48:22 -07:00
Ishaan Jaff
673105c88f
update tests
2024-07-22 14:44:47 -07:00
Ishaan Jaff
cdc8b4f037
test - arize ai basic logging
2024-07-22 11:30:24 -07:00
Krish Dholakia
227f55f370
Revert "Fix: use Bedrock region from environment variables before other region definitions"
2024-07-22 07:40:24 -07:00
Ishaan Jaff
48c365976f
fix bedrock embedding test
2024-07-20 20:05:22 -07:00
Krish Dholakia
bb6b2c6872
Merge pull request #4613 from petermuller/main
...
Fix: use Bedrock region from environment variables before other region definitions
2024-07-20 19:19:05 -07:00
Ishaan Jaff
f6225623e9
Merge branch 'main' into litellm_return-response_headers
2024-07-20 19:05:56 -07:00
Krrish Dholakia
8b3c8102a7
feat(auth_checks.py): Allow admin to disable team from turning on/off guardrails.
2024-07-20 18:39:05 -07:00
Ishaan Jaff
2513b64ed4
ci/cd run tests again
2024-07-20 17:44:12 -07:00
Ishaan Jaff
5e4d291244
rename to _response_headers
2024-07-20 17:31:16 -07:00