Skip to content

Commit 22ed9b5

Browse files
[PTDT-1552] Add LLM media types (#1192)
2 parents 4715db5 + 494898c commit 22ed9b5

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

labelbox/schema/media_type.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,16 @@ class MediaType(Enum):
1010
Html = "HTML"
1111
Image = "IMAGE"
1212
Json = "JSON"
13+
LLMPromptCreation = "LLM_PROMPT_CREATION"
14+
LLMPromptResponseCreation = "LLM_PROMPT_RESPONSE_CREATION"
1315
Pdf = "PDF"
1416
Simple_Tile = "TMS_SIMPLE"
1517
Text = "TEXT"
1618
Tms_Geo = "TMS_GEO"
1719
Tms_Simple = "TMS_SIMPLE"
18-
Video = "VIDEO"
1920
Unknown = "UNKNOWN"
2021
Unsupported = "UNSUPPORTED"
22+
Video = "VIDEO"
2123

2224
@classmethod
2325
def _missing_(cls, name):

tests/integration/test_project.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,11 @@ def test_media_type(client, configured_project: Project, rand_gen):
394394
project.delete()
395395

396396
for media_type in MediaType.get_supported_members():
397+
# Exclude LLM media types for now, as they are not supported
398+
if MediaType[media_type] in [
399+
MediaType.LLMPromptCreation, MediaType.LLMPromptResponseCreation
400+
]:
401+
continue
397402

398403
project = client.create_project(name=rand_gen(str),
399404
media_type=MediaType[media_type])

0 commit comments

Comments
 (0)