You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
Admin
authored and
Admin
committed
Fix type errors from adding FileMessagePart to MessagePart union
Adding FileMessagePart widened the non-text branch in several consumers that
assumed non-text parts are always images. Fix logFormatter, Gemini, console
Message, and countTokensAsync to handle file parts, and keep constructMessages
narrowing intact when sanitizing file parts (preserve discriminated union).
0 commit comments