Litellm dev contributor prs 01 31 2025 (#8168)

* Add O3-Mini for Azure and Remove Vision Support (#8161)

* Azure Released O3-mini at the same time as OAI, so i've added support here. Confirmed to work with Sweden Central.

* [FIX] replace cgi for python 3.13 with email.Message as suggested in PEP 594 (#8160)

* Update model_prices_and_context_window.json (#8120)

codestral2501 pricing on vertex_ai

* Fix/db view names (#8119)

* Fix to case sensitive DB Views name

* Fix to case sensitive DB View names

* Added quotes to check query as well

* Added quotes to create view query

* test: handle server error  for flaky test

vertex ai has unstable endpoints

---------

Co-authored-by: Wanis Elabbar <70503629+elabbarw@users.noreply.github.com>
Co-authored-by: Honghua Dong <dhh1995@163.com>
Co-authored-by: superpoussin22 <vincent.nadal@orange.fr>
Co-authored-by: Miguel Armenta <37154380+ma-armenta@users.noreply.github.com>
This commit is contained in:
Krish Dholakia 2025-02-01 09:05:20 -08:00 committed by GitHub
parent d0c5639912
commit 91ed05df29
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 83 additions and 11 deletions

View file

@ -2153,7 +2153,7 @@ def stringify_json_tool_call_content(messages: List) -> List:
import base64
import mimetypes
from cgi import parse_header
from email.message import Message
import httpx
@ -2174,8 +2174,9 @@ from litellm.types.llms.bedrock import ToolUseBlock as BedrockToolUseBlock
def _parse_content_type(content_type: str) -> str:
main_type, _ = parse_header(content_type)
return main_type
m = Message()
m['content-type'] = content_type
return m.get_content_type()
class BedrockImageProcessor: