forked from phoenix/litellm-mirror
LiteLLM Minor Fixes & Improvements (11/19/2024) (#6820)
* fix(anthropic/chat/transformation.py): add json schema as values: json_schema fixes passing pydantic obj to anthropic Fixes https://github.com/BerriAI/litellm/issues/6766 * (feat): Add timestamp_granularities parameter to transcription API (#6457) * Add timestamp_granularities parameter to transcription API * add param to the local test * fix(databricks/chat.py): handle max_retries optional param handling for openai-like calls Fixes issue with calling finetuned vertex ai models via databricks route * build(ui/): add team admins via proxy ui * fix: fix linting error * test: fix test * docs(vertex.md): refactor docs * test: handle overloaded anthropic model error * test: remove duplicate test * test: fix test * test: update test to handle model overloaded error --------- Co-authored-by: Show <35062952+BrunooShow@users.noreply.github.com>
This commit is contained in:
parent
7d0e1f05ac
commit
b0be5bf3a1
15 changed files with 200 additions and 193 deletions
|
@ -923,7 +923,6 @@ def test_watsonx_text_top_k():
|
|||
assert optional_params["top_k"] == 10
|
||||
|
||||
|
||||
|
||||
def test_together_ai_model_params():
|
||||
optional_params = get_optional_params(
|
||||
model="together_ai", custom_llm_provider="together_ai", logprobs=1
|
||||
|
@ -931,6 +930,7 @@ def test_together_ai_model_params():
|
|||
print(optional_params)
|
||||
assert optional_params["logprobs"] == 1
|
||||
|
||||
|
||||
def test_forward_user_param():
|
||||
from litellm.utils import get_supported_openai_params, get_optional_params
|
||||
|
||||
|
@ -943,6 +943,7 @@ def test_forward_user_param():
|
|||
|
||||
assert optional_params["metadata"]["user_id"] == "test_user"
|
||||
|
||||
|
||||
def test_lm_studio_embedding_params():
|
||||
optional_params = get_optional_params_embeddings(
|
||||
model="lm_studio/gemma2-9b-it",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue