Skip to content

Commit 49dad30

Browse files
apischema(openai): extend schema to support image generation
Signed-off-by: Hrushikesh Patil <[email protected]>
1 parent 8d1d7be commit 49dad30

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

internal/apischema/openai/openai.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ const (
5757

5858
// ModelTextEmbedding3Small is the cheapest model usable with /embeddings.
5959
ModelTextEmbedding3Small = "text-embedding-3-small"
60+
61+
// ModelDALLE2 is the DALL-E 2 model usable with /v1/images/generations.
62+
ModelDALLE2 = "dall-e-2"
63+
// ModelDALLE3 is the DALL-E 3 model usable with /v1/images/generations.
64+
ModelDALLE3 = "dall-e-3"
6065
)
6166

6267
// ChatCompletionContentPartRefusalType The type of the content part.

0 commit comments

Comments
 (0)