feat:Restructure EmbedImage spec: use image_url with EmbedImageUrl schema#172
feat:Restructure EmbedImage spec: use image_url with EmbedImageUrl schema#172
Conversation
WalkthroughThe changes focus on restructuring the OpenAPI specification in the Cohere library. The Changes
Poem
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
src/libs/Cohere/openapi.yaml (1)
15240-15247: New Schema Definition:EmbedImageUrlwith Enhancement SuggestionThe new
EmbedImageUrlschema is well-defined with a requiredurlproperty of type string and a clear description ("Base64 url of image"). This simplification improves clarity for image representation. Consider augmenting the schema with a regex pattern for theurlproperty to enforce valid Base64 URL formatting, which would further enhance data integrity.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (5)
src/libs/Cohere/Generated/Cohere.Models.EmbedImage.g.csis excluded by!**/generated/**src/libs/Cohere/Generated/Cohere.Models.EmbedImageProperties.g.csis excluded by!**/generated/**src/libs/Cohere/Generated/Cohere.Models.EmbedImageUrl.Json.g.csis excluded by!**/generated/**src/libs/Cohere/Generated/Cohere.Models.EmbedImageUrl.g.csis excluded by!**/generated/**src/libs/Cohere/Generated/JsonSerializerContextTypes.g.csis excluded by!**/generated/**
📒 Files selected for processing (1)
src/libs/Cohere/openapi.yaml(1 hunks)
🔇 Additional comments (2)
src/libs/Cohere/openapi.yaml (2)
15231-15240: Schema Update inEmbedImageThe
EmbedImageschema now uses animage_urlproperty (with a reference to#/components/schemas/EmbedImageUrl) and retains thex-fern-audiencesattribute. This update replaces the previous image-related metadata. Please ensure that all consumers of this API are updated accordingly and the deprecation of the old metadata (such as bit depth, format, height, and width) is documented.
15234-15235: Property Renaming: Transition toimage_urlThe rename from
imagetoimage_urlaligns the schema with the newEmbedImageUrldefinition. Verify that any clients or services depending on the old property name have been updated to match this change.
Summary by CodeRabbit