Skip to content

Commit 69283c8

Browse files
committed
fix: list type for content
1 parent 10f1255 commit 69283c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

portkey_ai/api_resources/types/chat_complete_type.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import json
2-
from typing import Dict, Iterable, Optional, Union
2+
from typing import Dict, Optional, Union
33
import httpx
44
from .utils import parse_headers
55
from typing import List, Any
@@ -115,7 +115,7 @@ class ChatCompletionAudio(BaseModel, extra="allow"):
115115

116116

117117
class ChatCompletionMessage(BaseModel, extra="allow"):
118-
content: Optional[Union[str, Iterable[Any]]] = None
118+
content: Optional[Union[str, List[Any]]] = None
119119
role: Optional[str] = None
120120
function_call: Optional[FunctionCall] = None
121121
tool_calls: Optional[List[ChatCompletionMessageToolCall]] = None

0 commit comments

Comments
 (0)