Skip to content

Commit e246362

Browse files
feat(api): adding new image model support
1 parent 7dbd0f5 commit e246362

File tree

58 files changed

+41335
-6853
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+41335
-6853
lines changed

.stats.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 95
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-5633633cc38734869cf7d993f7b549bb8e4d10e0ec45381ec2cd91507cd8eb8f.yml
3-
openapi_spec_hash: c855121b2b2324b99499c9244c21d24d
4-
config_hash: d20837393b73efdb19cd08e04c1cc9a1
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-8b68ae6b807dca92e914da1dd9e835a20f69b075e79102a264367fd7fddddb33.yml
3+
openapi_spec_hash: b6ade5b1a6327339e6669e1134de2d03
4+
config_hash: b597cd9a31e9e5ec709e2eefb4c54122

openai-java-core/src/main/kotlin/com/openai/models/beta/threads/ThreadCreateAndRunParams.kt

+59-227
Large diffs are not rendered by default.

openai-java-core/src/main/kotlin/com/openai/models/evals/EvalCreateParams.kt

+2,081-1,108
Large diffs are not rendered by default.

openai-java-core/src/main/kotlin/com/openai/models/evals/EvalCreateResponse.kt

+1,778-49
Large diffs are not rendered by default.

openai-java-core/src/main/kotlin/com/openai/models/evals/EvalLabelModelGrader.kt

+624-1,383
Large diffs are not rendered by default.

openai-java-core/src/main/kotlin/com/openai/models/evals/EvalListResponse.kt

+1,778-49
Large diffs are not rendered by default.

openai-java-core/src/main/kotlin/com/openai/models/evals/EvalRetrieveResponse.kt

+1,778-49
Large diffs are not rendered by default.

openai-java-core/src/main/kotlin/com/openai/models/evals/EvalTextSimilarityGrader.kt

+6-12
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ private constructor(
4545
) : this(evaluationMetric, input, passThreshold, reference, type, name, mutableMapOf())
4646

4747
/**
48-
* The evaluation metric to use. One of `cosine`, `fuzzy_match`, `bleu`, `gleu`, `meteor`,
49-
* `rouge_1`, `rouge_2`, `rouge_3`, `rouge_4`, `rouge_5`, or `rouge_l`.
48+
* The evaluation metric to use. One of `fuzzy_match`, `bleu`, `gleu`, `meteor`, `rouge_1`,
49+
* `rouge_2`, `rouge_3`, `rouge_4`, `rouge_5`, or `rouge_l`.
5050
*
5151
* @throws OpenAIInvalidDataException if the JSON field has an unexpected type or is
5252
* unexpectedly missing or null (e.g. if the server responded with an unexpected value).
@@ -189,8 +189,8 @@ private constructor(
189189
}
190190

191191
/**
192-
* The evaluation metric to use. One of `cosine`, `fuzzy_match`, `bleu`, `gleu`, `meteor`,
193-
* `rouge_1`, `rouge_2`, `rouge_3`, `rouge_4`, `rouge_5`, or `rouge_l`.
192+
* The evaluation metric to use. One of `fuzzy_match`, `bleu`, `gleu`, `meteor`, `rouge_1`,
193+
* `rouge_2`, `rouge_3`, `rouge_4`, `rouge_5`, or `rouge_l`.
194194
*/
195195
fun evaluationMetric(evaluationMetric: EvaluationMetric) =
196196
evaluationMetric(JsonField.of(evaluationMetric))
@@ -357,8 +357,8 @@ private constructor(
357357
(if (name.asKnown().isPresent) 1 else 0)
358358

359359
/**
360-
* The evaluation metric to use. One of `cosine`, `fuzzy_match`, `bleu`, `gleu`, `meteor`,
361-
* `rouge_1`, `rouge_2`, `rouge_3`, `rouge_4`, `rouge_5`, or `rouge_l`.
360+
* The evaluation metric to use. One of `fuzzy_match`, `bleu`, `gleu`, `meteor`, `rouge_1`,
361+
* `rouge_2`, `rouge_3`, `rouge_4`, `rouge_5`, or `rouge_l`.
362362
*/
363363
class EvaluationMetric @JsonCreator private constructor(private val value: JsonField<String>) :
364364
Enum {
@@ -395,8 +395,6 @@ private constructor(
395395

396396
@JvmField val ROUGE_L = of("rouge_l")
397397

398-
@JvmField val COSINE = of("cosine")
399-
400398
@JvmStatic fun of(value: String) = EvaluationMetric(JsonField.of(value))
401399
}
402400

@@ -412,7 +410,6 @@ private constructor(
412410
ROUGE_4,
413411
ROUGE_5,
414412
ROUGE_L,
415-
COSINE,
416413
}
417414

418415
/**
@@ -435,7 +432,6 @@ private constructor(
435432
ROUGE_4,
436433
ROUGE_5,
437434
ROUGE_L,
438-
COSINE,
439435
/**
440436
* An enum member indicating that [EvaluationMetric] was instantiated with an unknown
441437
* value.
@@ -462,7 +458,6 @@ private constructor(
462458
ROUGE_4 -> Value.ROUGE_4
463459
ROUGE_5 -> Value.ROUGE_5
464460
ROUGE_L -> Value.ROUGE_L
465-
COSINE -> Value.COSINE
466461
else -> Value._UNKNOWN
467462
}
468463

@@ -487,7 +482,6 @@ private constructor(
487482
ROUGE_4 -> Known.ROUGE_4
488483
ROUGE_5 -> Known.ROUGE_5
489484
ROUGE_L -> Known.ROUGE_L
490-
COSINE -> Known.COSINE
491485
else -> throw OpenAIInvalidDataException("Unknown EvaluationMetric: $value")
492486
}
493487

0 commit comments

Comments
 (0)