Skip to content

Commit

Permalink
feat(images-api): implement images api
Browse files Browse the repository at this point in the history
 - https://platform.openai.com/docs/api-reference/images
add more parameters control for create
  • Loading branch information
hanrw committed Feb 13, 2024
1 parent 26380a9 commit cfce891
Showing 1 changed file with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
package com.tddworks.openai.api.images.api

enum class ResponseFormat(val value: String) {
BASE64("b64_json"),
URL("url")
import kotlinx.serialization.Serializable
import kotlin.jvm.JvmInline

@Serializable
@JvmInline
value class ResponseFormat(val value: String) {
companion object {
val base64 = ResponseFormat("b64_json")
val url = ResponseFormat("url")
}
}

0 comments on commit cfce891

Please sign in to comment.