Skip to content

Commit dc8c338

Browse files
committed
refactor: Update ParsedMessageOrChoice type to use Message
- Changed the type definition of ParsedMessageOrChoice from Choice | dict[str, Any] to Choice | Message for improved clarity and type safety in message handling.
1 parent fb26124 commit dc8c338

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/art/tinker/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
from openai.types.chat.chat_completion import Choice
1515
from openai.types.completion_usage import CompletionUsage
1616

17-
from art.types import MessageOrChoice, MessagesAndChoices, Tools
17+
from art.types import Message, MessageOrChoice, MessagesAndChoices, Tools
1818

19-
ParsedMessageOrChoice = Choice | dict[str, Any]
19+
ParsedMessageOrChoice = Choice | Message
2020
ParsedMessagesAndChoices = list[ParsedMessageOrChoice]
2121

2222

0 commit comments

Comments
 (0)