mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-19 00:01:29 +00:00
Merge remote-tracking branch 'origin/litellm_e2e_cost_calculation_scripted_provider' into litellm_e2e_cost_calculation_scripted_provider
This commit is contained in:
commit
d68e20e586
1 changed files with 5 additions and 5 deletions
|
|
@ -8,7 +8,7 @@ from __future__ import annotations
|
|||
|
||||
from collections.abc import Sequence
|
||||
from datetime import datetime
|
||||
from typing import Final, Literal
|
||||
from typing import Final, Literal, TypeAlias
|
||||
|
||||
from e2e_http import PartialBody
|
||||
from pydantic import (
|
||||
|
|
@ -204,7 +204,7 @@ class FileObject(BaseModel):
|
|||
class TextContentPart(BaseModel):
|
||||
type: str = "text"
|
||||
text: str
|
||||
cache_control: "CacheControl | None" = None
|
||||
cache_control: CacheControl | None = None
|
||||
|
||||
|
||||
class ImageContentPart(BaseModel):
|
||||
|
|
@ -304,7 +304,7 @@ class ChatToolResultTurn(BaseModel):
|
|||
content: str
|
||||
|
||||
|
||||
type ChatTurn = ChatMessage | ChatAssistantTurn | ChatToolResultTurn
|
||||
ChatTurn: TypeAlias = ChatMessage | ChatAssistantTurn | ChatToolResultTurn
|
||||
|
||||
|
||||
class HostedWebSearchTool(BaseModel):
|
||||
|
|
@ -532,7 +532,7 @@ class AnthropicCustomTool(BaseModel):
|
|||
input_schema: ToolInputSchema
|
||||
|
||||
|
||||
type AnthropicTool = AnthropicToolSearchTool | AnthropicWebSearchTool | AnthropicCustomTool
|
||||
AnthropicTool: TypeAlias = AnthropicToolSearchTool | AnthropicWebSearchTool | AnthropicCustomTool
|
||||
|
||||
|
||||
class AnthropicContentBlock(BaseModel):
|
||||
|
|
@ -570,7 +570,7 @@ class AnthropicToolResultTurn(BaseModel):
|
|||
content: list[AnthropicToolResultBlock]
|
||||
|
||||
|
||||
type AnthropicMessage = ChatMessage | AnthropicAssistantTurn | AnthropicToolResultTurn
|
||||
AnthropicMessage: TypeAlias = ChatMessage | AnthropicAssistantTurn | AnthropicToolResultTurn
|
||||
|
||||
|
||||
class AnthropicToolChoice(BaseModel):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue