Skip to content

Conversation

@Vein05
Copy link
Collaborator

@Vein05 Vein05 commented Apr 17, 2025

Just a final few fixes!

This pull request introduces structural changes to enhance support for handling images in chat completion requests. The key updates include the addition of new structs and improved documentation for existing fields to clarify their purpose.

Enhancements for image support and code clarity:

  • Added the ImageContent struct to represent the content of an image, supporting both URL strings and base64-encoded strings.
  • Updated the ContentItem struct by improving field documentation and retaining its ability to handle both text and image content.
  • Introduced the ChatCompletionMessageWithImage struct to support messages with mixed content types (e.g., text and images), with added comments for better understanding of its fields.

@Vein05 Vein05 added the documentation Improvements or additions to documentation label Apr 17, 2025
@Vein05 Vein05 self-assigned this Apr 17, 2025
@Vein05 Vein05 merged commit ce5c655 into main Apr 17, 2025
1 check failed
@Vein05 Vein05 deleted the ImageBase64Support branch April 17, 2025 02:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant