mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
LiteLLM Minor Fixes & Improvements (09/20/2024) (#5807)
* fix(vertex_llm_base.py): Handle api_base = "" Fixes https://github.com/BerriAI/litellm/issues/5798 * fix(o1_transformation.py): handle stream_options not being supported https://github.com/BerriAI/litellm/issues/5803 * docs(routing.md): fix docs Closes https://github.com/BerriAI/litellm/issues/5808 * perf(internal_user_endpoints.py): reduce db calls for getting team_alias for a key Use the list gotten earlier in `/user/info` endpoint Reduces ui keys tab load time to 800ms (prev. 28s+) * feat(proxy_server.py): support CONFIG_FILE_PATH as env var Closes https://github.com/BerriAI/litellm/issues/5744 * feat(get_llm_provider_logic.py): add `litellm_proxy/` as a known openai-compatible route simplifies calling litellm proxy Reduces confusion when calling models on litellm proxy from litellm sdk * docs(litellm_proxy.md): cleanup docs * fix(internal_user_endpoints.py): fix pydantic obj * test(test_key_generate_prisma.py): fix test
This commit is contained in:
parent
0c488cf4ca
commit
d6ca7fed18
14 changed files with 204 additions and 84 deletions
|
@ -256,7 +256,7 @@ def test_generate_and_call_with_valid_key(prisma_client, api_route):
|
|||
|
||||
# check /user/info to verify user_role was set correctly
|
||||
new_user_info = await user_info(user_id=user_id)
|
||||
new_user_info = new_user_info["user_info"]
|
||||
new_user_info = new_user_info.user_info
|
||||
print("new_user_info=", new_user_info)
|
||||
assert new_user_info.user_role == LitellmUserRoles.INTERNAL_USER
|
||||
assert new_user_info.user_id == user_id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue