mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
test fix
This commit is contained in:
parent
54e7ae18e5
commit
ce27177974
1 changed files with 6 additions and 4 deletions
|
@ -2,8 +2,10 @@ from typing import Literal
|
||||||
|
|
||||||
from typing_extensions import Any, List, Optional, TypedDict
|
from typing_extensions import Any, List, Optional, TypedDict
|
||||||
|
|
||||||
|
from litellm.types.llms.openai import BaseLiteLLMOpenAIResponseObject
|
||||||
|
|
||||||
class GenericResponseOutputItemContentAnnotation(TypedDict, total=False):
|
|
||||||
|
class GenericResponseOutputItemContentAnnotation(BaseLiteLLMOpenAIResponseObject):
|
||||||
"""Annotation for content in a message"""
|
"""Annotation for content in a message"""
|
||||||
|
|
||||||
type: Optional[str]
|
type: Optional[str]
|
||||||
|
@ -14,7 +16,7 @@ class GenericResponseOutputItemContentAnnotation(TypedDict, total=False):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class OutputText(TypedDict, total=False):
|
class OutputText(BaseLiteLLMOpenAIResponseObject):
|
||||||
"""Text output content from an assistant message"""
|
"""Text output content from an assistant message"""
|
||||||
|
|
||||||
type: Optional[str] # "output_text"
|
type: Optional[str] # "output_text"
|
||||||
|
@ -22,7 +24,7 @@ class OutputText(TypedDict, total=False):
|
||||||
annotations: Optional[List[GenericResponseOutputItemContentAnnotation]]
|
annotations: Optional[List[GenericResponseOutputItemContentAnnotation]]
|
||||||
|
|
||||||
|
|
||||||
class OutputFunctionToolCall(TypedDict, total=False):
|
class OutputFunctionToolCall(BaseLiteLLMOpenAIResponseObject):
|
||||||
"""A tool call to run a function"""
|
"""A tool call to run a function"""
|
||||||
|
|
||||||
arguments: Optional[str]
|
arguments: Optional[str]
|
||||||
|
@ -33,7 +35,7 @@ class OutputFunctionToolCall(TypedDict, total=False):
|
||||||
status: Literal["in_progress", "completed", "incomplete"]
|
status: Literal["in_progress", "completed", "incomplete"]
|
||||||
|
|
||||||
|
|
||||||
class GenericResponseOutputItem(TypedDict, total=False):
|
class GenericResponseOutputItem(BaseLiteLLMOpenAIResponseObject):
|
||||||
"""
|
"""
|
||||||
Generic response API output item
|
Generic response API output item
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue