Skip to content

Commit 83d689b

Browse files
committed
fix: Ensure orientation is converted to string in imagineClientOptions for consistency
1 parent 54ad797 commit 83d689b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/metaai_api/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def prompt(
239239
"promptType": None,
240240
"artifactRewriteOptions": None,
241241
"imagineOperationRequest": None,
242-
"imagineClientOptions": {"orientation": orientation.upper() if orientation else "VERTICAL"},
242+
"imagineClientOptions": {"orientation": str(orientation).upper() if orientation else "VERTICAL"},
243243
"spaceId": None,
244244
"sparkSnapshotId": None,
245245
"topicPageId": None,

src/metaai_api/video_generation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def create_video_generation_request(
236236
"promptType": None,
237237
"artifactRewriteOptions": None,
238238
"imagineOperationRequest": None,
239-
"imagineClientOptions": {"orientation": orientation.upper() if orientation else "VERTICAL"},
239+
"imagineClientOptions": {"orientation": str(orientation).upper() if orientation else "VERTICAL"},
240240
"spaceId": None,
241241
"sparkSnapshotId": None,
242242
"topicPageId": None,

0 commit comments

Comments
 (0)