mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
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:
parent
d0c5639912
commit
91ed05df29
6 changed files with 83 additions and 11 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue