Skip to content

Commit 52fe3cf

Browse files
authored
MAINT: added Azure Sora Endpoint Regex Pattern (microsoft#1157)
1 parent 204017a commit 52fe3cf

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

pyrit/prompt_target/openai/openai_target.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ class OpenAITarget(PromptChatTarget):
3030
r"/videos/v1/video/generations$", # Azure sora1 endpoint
3131
r"/videos/v1/videos$", # Azure sora2 endpoint
3232
r"/v1/videos$", # oai sora2 endpoint
33+
r"/openai/v1/video/generations$", # Azure OpenAI Sora endpoint pattern
3334
]
35+
3436
DALLE_URL_REGEX = [r"/images/generations$"]
3537
TTS_URL_REGEX = [r"/audio/speech$"]
3638
RESPONSE_URL_REGEX = [r"/openai/responses$", r"v1/responses$"]

0 commit comments

Comments
 (0)