Skip to content

Commit 3d4f13a

Browse files
committed
feat(api): add GPT_IMAGE_1 to available models
Introduce GPT_IMAGE_1 with image generation capabilities to the available models, enhancing the API with advanced instruction following and text rendering.
1 parent 0dcac64 commit 3d4f13a

File tree

1 file changed

+9
-1
lines changed
  • openai-client/openai-client-core/src/commonMain/kotlin/com/tddworks/openai/api/chat/api

1 file changed

+9
-1
lines changed

openai-client/openai-client-core/src/commonMain/kotlin/com/tddworks/openai/api/chat/api/OpenAIModel.kt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@ value class OpenAIModel(val value: String) {
4949
val DALL_E_2 = OpenAIModel("dall-e-2")
5050
val DALL_E_3 = OpenAIModel("dall-e-3")
5151

52+
/**
53+
* https://platform.openai.com/docs/guides/image-generation?image-generation-model=gpt-image-1
54+
* Image API: Generations, Edits – Responses API support coming soon
55+
* Superior instruction following, text rendering, detailed editing, real-world knowledge
56+
*/
57+
val GPT_IMAGE_1 = OpenAIModel("gpt-image-1")
58+
5259
val availableModels = listOf(
5360
GPT_3_5_TURBO,
5461
GPT_3_5_TURBO_0125,
@@ -57,7 +64,8 @@ value class OpenAIModel(val value: String) {
5764
GPT_4O,
5865
GPT4_VISION_PREVIEW,
5966
DALL_E_2,
60-
DALL_E_3
67+
DALL_E_3,
68+
GPT_IMAGE_1
6169
)
6270
}
6371
}

0 commit comments

Comments
 (0)