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
Add file input support to Chat Completion types (#4)
* Add file part support to chat message structure
Introduces ChatMessagePartFile struct and ChatMessagePartTypeFile constant to support file attachments in chat messages. Updates ChatMessagePart to include file parts and adds comprehensive tests for serialization, deserialization, and constant definitions.
* Rename ChatMessagePartFile to ChatMessageFile
Refactored struct name for file parts in chat messages from ChatMessagePartFile to ChatMessageFile for consistency and clarity.
* Fix indentation in ChatMessagePart struct
Corrected the indentation of the File field in the ChatMessagePart struct for improved code readability and consistency.
* Update tests to use ChatMessageFile type
Replaces usage of ChatMessagePartFile with ChatMessageFile in chat_test.go to reflect updated type naming in the openai package. Also renames related test function for consistency.
* Fix formatting in multipart chat message test
Split a long conditional statement in TestMultipartChatMessageSerialization for improved readability.
* Update chat.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Stop stripping dots in azure model mapper for models that aren't 3.5 based (sashabaranov#1079)
fixessashabaranov#978
Signed-off-by: Christopher Petito <chrisjpetito@gmail.com>
---------
Signed-off-by: Christopher Petito <chrisjpetito@gmail.com>
Co-authored-by: Alejandro J. Nuñez Madrazo <alejandrojnm@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Christopher Petito <47751006+krissetto@users.noreply.github.com>
0 commit comments