Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .castiron.stats.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
schema_version: 1
generation_id: a2e15f59-94b2-41a7-83a2-0aa28ffd7091
openapi_spec_hash: 0ba3e4acd88b521d832e2a42d5471e00
openapi_transformed_spec_hash: 0a6002520553b981f4c0bf6555a0a623
config_hash: d8813efd847d1966dd7f03bb648c41dc
codegen_sha: 23fe5abcd01bf9d6dd1c1ee49b6244f9d2d078ce
codegen_hash: 2c513214ca2f30afc9ae2724d5b78c068dac45d959bc1c4f1d8b4706f507f3ca
public_codegen_sha: 0c208e28bddcefe8be7b5a0b94be94b8b973ed4e
generation_id: 68d4a705-114e-4d0f-b282-8084d4e049f4
openapi_spec_hash: 31ce930d0bb93c8c09944ca9f79407b5
openapi_transformed_spec_hash: c534613fdbcd88ff44bf4c87957de72b
config_hash: 81fd1039eb373628d87269f065d30a69
codegen_sha: c4459e20988e14ba81b4d4f1a6790ac544a5e421
codegen_hash: 28149b737e64b789663beb69a8e0c6154b88e36b900b271018931a93eb2df85d
public_codegen_sha: a624824bbbc483b09c013338b191697bf3c22e98
2,208 changes: 1,930 additions & 278 deletions api_reference/openapi.transformed.yml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import com.openai.services.blocking.ModelService
import com.openai.services.blocking.ModerationService
import com.openai.services.blocking.RealtimeService
import com.openai.services.blocking.ResponseService
import com.openai.services.blocking.SafetyService
import com.openai.services.blocking.SkillService
import com.openai.services.blocking.UploadService
import com.openai.services.blocking.VectorStoreService
Expand Down Expand Up @@ -104,6 +105,8 @@ interface OpenAIClient {

fun vectorStores(): VectorStoreService

fun safety(): SafetyService

fun webhooks(): WebhookService

fun beta(): BetaService
Expand Down Expand Up @@ -194,6 +197,8 @@ interface OpenAIClient {

fun vectorStores(): VectorStoreService.WithRawResponse

fun safety(): SafetyService.WithRawResponse

fun webhooks(): WebhookService.WithRawResponse

fun beta(): BetaService.WithRawResponse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import com.openai.services.async.ModelServiceAsync
import com.openai.services.async.ModerationServiceAsync
import com.openai.services.async.RealtimeServiceAsync
import com.openai.services.async.ResponseServiceAsync
import com.openai.services.async.SafetyServiceAsync
import com.openai.services.async.SkillServiceAsync
import com.openai.services.async.UploadServiceAsync
import com.openai.services.async.VectorStoreServiceAsync
Expand Down Expand Up @@ -104,6 +105,8 @@ interface OpenAIClientAsync {

fun vectorStores(): VectorStoreServiceAsync

fun safety(): SafetyServiceAsync

fun webhooks(): WebhookServiceAsync

fun beta(): BetaServiceAsync
Expand Down Expand Up @@ -196,6 +199,8 @@ interface OpenAIClientAsync {

fun vectorStores(): VectorStoreServiceAsync.WithRawResponse

fun safety(): SafetyServiceAsync.WithRawResponse

fun webhooks(): WebhookServiceAsync.WithRawResponse

fun beta(): BetaServiceAsync.WithRawResponse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ import com.openai.services.async.RealtimeServiceAsync
import com.openai.services.async.RealtimeServiceAsyncImpl
import com.openai.services.async.ResponseServiceAsync
import com.openai.services.async.ResponseServiceAsyncImpl
import com.openai.services.async.SafetyServiceAsync
import com.openai.services.async.SafetyServiceAsyncImpl
import com.openai.services.async.SkillServiceAsync
import com.openai.services.async.SkillServiceAsyncImpl
import com.openai.services.async.UploadServiceAsync
Expand Down Expand Up @@ -115,6 +117,10 @@ class OpenAIClientAsyncImpl(private val clientOptions: ClientOptions) : OpenAICl
VectorStoreServiceAsyncImpl(clientOptionsWithUserAgent)
}

private val safety: SafetyServiceAsync by lazy {
SafetyServiceAsyncImpl(clientOptionsWithUserAgent)
}

private val webhooks: WebhookServiceAsync by lazy {
WebhookServiceAsyncImpl(clientOptionsWithUserAgent)
}
Expand Down Expand Up @@ -206,6 +212,8 @@ class OpenAIClientAsyncImpl(private val clientOptions: ClientOptions) : OpenAICl

override fun vectorStores(): VectorStoreServiceAsync = vectorStores

override fun safety(): SafetyServiceAsync = safety

override fun webhooks(): WebhookServiceAsync = webhooks

override fun beta(): BetaServiceAsync = beta
Expand Down Expand Up @@ -288,6 +296,10 @@ class OpenAIClientAsyncImpl(private val clientOptions: ClientOptions) : OpenAICl
VectorStoreServiceAsyncImpl.WithRawResponseImpl(clientOptions)
}

private val safety: SafetyServiceAsync.WithRawResponse by lazy {
SafetyServiceAsyncImpl.WithRawResponseImpl(clientOptions)
}

private val webhooks: WebhookServiceAsync.WithRawResponse by lazy {
WebhookServiceAsyncImpl.WithRawResponseImpl(clientOptions)
}
Expand Down Expand Up @@ -383,6 +395,8 @@ class OpenAIClientAsyncImpl(private val clientOptions: ClientOptions) : OpenAICl

override fun vectorStores(): VectorStoreServiceAsync.WithRawResponse = vectorStores

override fun safety(): SafetyServiceAsync.WithRawResponse = safety

override fun webhooks(): WebhookServiceAsync.WithRawResponse = webhooks

override fun beta(): BetaServiceAsync.WithRawResponse = beta
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ import com.openai.services.blocking.RealtimeService
import com.openai.services.blocking.RealtimeServiceImpl
import com.openai.services.blocking.ResponseService
import com.openai.services.blocking.ResponseServiceImpl
import com.openai.services.blocking.SafetyService
import com.openai.services.blocking.SafetyServiceImpl
import com.openai.services.blocking.SkillService
import com.openai.services.blocking.SkillServiceImpl
import com.openai.services.blocking.UploadService
Expand Down Expand Up @@ -107,6 +109,8 @@ class OpenAIClientImpl(private val clientOptions: ClientOptions) : OpenAIClient
VectorStoreServiceImpl(clientOptionsWithUserAgent)
}

private val safety: SafetyService by lazy { SafetyServiceImpl(clientOptionsWithUserAgent) }

private val webhooks: WebhookService by lazy { WebhookServiceImpl(clientOptionsWithUserAgent) }

private val beta: BetaService by lazy { BetaServiceImpl(clientOptionsWithUserAgent) }
Expand Down Expand Up @@ -185,6 +189,8 @@ class OpenAIClientImpl(private val clientOptions: ClientOptions) : OpenAIClient

override fun vectorStores(): VectorStoreService = vectorStores

override fun safety(): SafetyService = safety

override fun webhooks(): WebhookService = webhooks

override fun beta(): BetaService = beta
Expand Down Expand Up @@ -266,6 +272,10 @@ class OpenAIClientImpl(private val clientOptions: ClientOptions) : OpenAIClient
VectorStoreServiceImpl.WithRawResponseImpl(clientOptions)
}

private val safety: SafetyService.WithRawResponse by lazy {
SafetyServiceImpl.WithRawResponseImpl(clientOptions)
}

private val webhooks: WebhookService.WithRawResponse by lazy {
WebhookServiceImpl.WithRawResponseImpl(clientOptions)
}
Expand Down Expand Up @@ -361,6 +371,8 @@ class OpenAIClientImpl(private val clientOptions: ClientOptions) : OpenAIClient

override fun vectorStores(): VectorStoreService.WithRawResponse = vectorStores

override fun safety(): SafetyService.WithRawResponse = safety

override fun webhooks(): WebhookService.WithRawResponse = webhooks

override fun beta(): BetaService.WithRawResponse = beta
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ class ChatModel @JsonCreator private constructor(private val value: JsonField<St

companion object {

@JvmField val GPT_6_ASTRA = of("gpt-6-astra")

@JvmField val GPT_5_6_SOL = of("gpt-5.6-sol")

@JvmField val GPT_5_6_TERRA = of("gpt-5.6-terra")
Expand Down Expand Up @@ -193,6 +195,7 @@ class ChatModel @JsonCreator private constructor(private val value: JsonField<St

/** An enum containing [ChatModel]'s known values. */
enum class Known {
GPT_6_ASTRA,
GPT_5_6_SOL,
GPT_5_6_TERRA,
GPT_5_6_LUNA,
Expand Down Expand Up @@ -288,6 +291,7 @@ class ChatModel @JsonCreator private constructor(private val value: JsonField<St
* - It was constructed with an arbitrary value using the [of] method.
*/
enum class Value {
GPT_6_ASTRA,
GPT_5_6_SOL,
GPT_5_6_TERRA,
GPT_5_6_LUNA,
Expand Down Expand Up @@ -384,6 +388,7 @@ class ChatModel @JsonCreator private constructor(private val value: JsonField<St
*/
fun value(): Value =
when (this) {
GPT_6_ASTRA -> Value.GPT_6_ASTRA
GPT_5_6_SOL -> Value.GPT_5_6_SOL
GPT_5_6_TERRA -> Value.GPT_5_6_TERRA
GPT_5_6_LUNA -> Value.GPT_5_6_LUNA
Expand Down Expand Up @@ -480,6 +485,7 @@ class ChatModel @JsonCreator private constructor(private val value: JsonField<St
*/
fun known(): Known =
when (this) {
GPT_6_ASTRA -> Known.GPT_6_ASTRA
GPT_5_6_SOL -> Known.GPT_5_6_SOL
GPT_5_6_TERRA -> Known.GPT_5_6_TERRA
GPT_5_6_LUNA -> Known.GPT_5_6_LUNA
Expand Down
Loading
Loading