Skip to content

Commit 5686122

Browse files
committed
fix(client) remove custom session methods from ClientSecretCreateParams
1 parent 4eb0dfa commit 5686122

File tree

1 file changed

+0
-55
lines changed

1 file changed

+0
-55
lines changed

openai-java-core/src/main/kotlin/com/openai/models/realtime/clientsecrets/ClientSecretCreateParams.kt

Lines changed: 0 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -152,47 +152,11 @@ private constructor(
152152
/** Alias for calling [session] with `Session.ofRealtime(realtime)`. */
153153
fun session(realtime: RealtimeSessionCreateRequest) = apply { body.session(realtime) }
154154

155-
/**
156-
* Alias for calling [session] with the following:
157-
* ```java
158-
* RealtimeSessionCreateRequest.builder()
159-
* .model(model)
160-
* .build()
161-
* ```
162-
*/
163-
fun realtimeSession(model: RealtimeSessionCreateRequest.Model) = apply {
164-
body.realtimeSession(model)
165-
}
166-
167-
/**
168-
* Alias for calling [realtimeSession] with
169-
* `RealtimeSessionCreateRequest.Model.ofString(string)`.
170-
*/
171-
fun realtimeSession(string: String) = apply { body.realtimeSession(string) }
172-
173155
/** Alias for calling [session] with `Session.ofTranscription(transcription)`. */
174156
fun session(transcription: RealtimeTranscriptionSessionCreateRequest) = apply {
175157
body.session(transcription)
176158
}
177159

178-
/**
179-
* Alias for calling [session] with the following:
180-
* ```java
181-
* RealtimeTranscriptionSessionCreateRequest.builder()
182-
* .model(model)
183-
* .build()
184-
* ```
185-
*/
186-
fun transcriptionSession(model: RealtimeTranscriptionSessionCreateRequest.Model) = apply {
187-
body.transcriptionSession(model)
188-
}
189-
190-
/**
191-
* Alias for calling [transcriptionSession] with
192-
* `RealtimeTranscriptionSessionCreateRequest.Model.ofString(string)`.
193-
*/
194-
fun transcriptionSession(string: String) = apply { body.transcriptionSession(string) }
195-
196160
fun additionalBodyProperties(additionalBodyProperties: Map<String, JsonValue>) = apply {
197161
body.additionalProperties(additionalBodyProperties)
198162
}
@@ -456,29 +420,10 @@ private constructor(
456420
fun session(realtime: RealtimeSessionCreateRequest) =
457421
session(Session.ofRealtime(realtime))
458422

459-
/**
460-
* Alias for calling [session] with the following:
461-
* ```java
462-
* RealtimeSessionCreateRequest.builder()
463-
* .model(model)
464-
* .build()
465-
* ```
466-
*/
467-
fun realtimeSession(model: RealtimeSessionCreateRequest.Model) =
468-
session(RealtimeSessionCreateRequest.builder().model(model).build())
469-
470-
/**
471-
* Alias for calling [realtimeSession] with
472-
* `RealtimeSessionCreateRequest.Model.ofString(string)`.
473-
*/
474-
fun realtimeSession(string: String) =
475-
realtimeSession(RealtimeSessionCreateRequest.Model.of(string))
476-
477423
/** Alias for calling [session] with `Session.ofTranscription(transcription)`. */
478424
fun session(transcription: RealtimeTranscriptionSessionCreateRequest) =
479425
session(Session.ofTranscription(transcription))
480426

481-
482427
fun additionalProperties(additionalProperties: Map<String, JsonValue>) = apply {
483428
this.additionalProperties.clear()
484429
putAllAdditionalProperties(additionalProperties)

0 commit comments

Comments
 (0)