Skip to content

LiteLLM Minor Fixes & Improvements (10/24/2024) - #6421

Merged
15 commits merged into
mainfrom
litellm_dev_10_24_2024
Oct 25, 2024
Merged

LiteLLM Minor Fixes & Improvements (10/24/2024)#6421
15 commits merged into
mainfrom
litellm_dev_10_24_2024

Conversation

@ghost

@ghost ghost commented Oct 24, 2024

Copy link
Copy Markdown
  • fix(utils.py): support passing dynamic api base to validate_environment

Returns True if just api base is required and api base is passed

  • fix(litellm_pre_call_utils.py): feature flag sending client headers to llm api

Fixes #6410

  • fix(anthropic/chat/transformation.py): return correct error message

  • fix(http_handler.py): add error response text in places where we expect it

  • fix(factory.py): handle base case of no non-system messages to bedrock

Fixes #6411

  • feat(cohere/embed): Support cohere image embeddings

Closes #6413

  • fix(init.py): fix linting error

  • docs(supported_embedding.md): add image embedding example to docs

  • feat(cohere/embed): use cohere embedding returned usage for cost calc

  • build(model_prices_and_context_window.json): add embed-english-v3.0 details (image cost + 'supports_image_input' flag)

  • fix(cohere_transformation.py): fix linting error

  • test(test_proxy_server.py): cleanup test

  • test: cleanup test

@vercel

vercel Bot commented Oct 24, 2024

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
litellm ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 25, 2024 6:15am

…etails (image cost + 'supports_image_input' flag)
@codecov

codecov Bot commented Oct 25, 2024

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 92.23301% with 8 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
litellm/llms/cohere/embed/transformation.py 90.00% 6 Missing ⚠️
...itellm/llms/bedrock/embed/cohere_transformation.py 88.88% 1 Missing ⚠️
litellm/utils.py 87.50% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@ghost ghost changed the title Litellm dev 10 24 2024 LiteLLM Minor Fixes & Improvements (10/24/2024) Oct 25, 2024
@ghost
ghost merged commit c03e5da into main Oct 25, 2024
@ishaan-berri
ishaan-berri deleted the litellm_dev_10_24_2024 branch March 26, 2026 21:52
fzowl pushed a commit to fzowl/litellm that referenced this pull request Jun 24, 2026
* fix(utils.py): support passing dynamic api base to validate_environment

Returns True if just api base is required and api base is passed

* fix(litellm_pre_call_utils.py): feature flag sending client headers to llm api

Fixes BerriAI#6410

* fix(anthropic/chat/transformation.py): return correct error message

* fix(http_handler.py): add error response text in places where we expect it

* fix(factory.py): handle base case of no non-system messages to bedrock

Fixes BerriAI#6411

* feat(cohere/embed): Support cohere image embeddings

Closes BerriAI#6413

* fix(__init__.py): fix linting error

* docs(supported_embedding.md): add image embedding example to docs

* feat(cohere/embed): use cohere embedding returned usage for cost calc

* build(model_prices_and_context_window.json): add embed-english-v3.0 details (image cost + 'supports_image_input' flag)

* fix(cohere_transformation.py): fix linting error

* test(test_proxy_server.py): cleanup test

* test: cleanup test

* fix: fix linting errors
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

0 participants