Skip to content

Commit fed412c

Browse files
authored
Merge pull request #171 from Portkey-AI/hotfix/promptRenderResponse
Hotfix: prompt rendor response type
2 parents e506fa2 + 78d6c57 commit fed412c

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, Optional
2+
from typing import Dict, Iterable, Optional, Union
33
import httpx
44
from .utils import parse_headers
55
from typing import List, Any
@@ -73,7 +73,7 @@ class ChatCompletionMessageToolCall(BaseModel):
7373

7474

7575
class ChatCompletionMessage(BaseModel):
76-
content: Optional[str] = None
76+
content: Optional[Union[str, Iterable[Any]]] = None
7777
role: Optional[str]
7878
function_call: Optional[FunctionCall] = None
7979
tool_calls: Optional[List[ChatCompletionMessageToolCall]] = None

0 commit comments

Comments
 (0)