Skip to content

Commit 201f54e

Browse files
fix: fix casing issue
1 parent 7cbc830 commit 201f54e

File tree

513 files changed

+6429
-6314
lines changed

Some content is hidden

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

513 files changed

+6429
-6314
lines changed

openai-java-client-okhttp/src/main/kotlin/com/openai/client/okhttp/OpenAIOkHttpClient.kt

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -236,33 +236,33 @@ class OpenAIOkHttpClient private constructor() {
236236

237237
fun putHeader(name: String, value: String) = apply { clientOptions.putHeader(name, value) }
238238

239-
fun putheaders(name: String, values: Iterable<String>) = apply {
240-
clientOptions.putheaders(name, values)
239+
fun putHeaders(name: String, values: Iterable<String>) = apply {
240+
clientOptions.putHeaders(name, values)
241241
}
242242

243-
fun putAllheaders(headers: Headers) = apply { clientOptions.putAllheaders(headers) }
243+
fun putAllHeaders(headers: Headers) = apply { clientOptions.putAllHeaders(headers) }
244244

245-
fun putAllheaders(headers: Map<String, Iterable<String>>) = apply {
246-
clientOptions.putAllheaders(headers)
245+
fun putAllHeaders(headers: Map<String, Iterable<String>>) = apply {
246+
clientOptions.putAllHeaders(headers)
247247
}
248248

249-
fun replaceheaders(name: String, value: String) = apply {
250-
clientOptions.replaceheaders(name, value)
249+
fun replaceHeaders(name: String, value: String) = apply {
250+
clientOptions.replaceHeaders(name, value)
251251
}
252252

253-
fun replaceheaders(name: String, values: Iterable<String>) = apply {
254-
clientOptions.replaceheaders(name, values)
253+
fun replaceHeaders(name: String, values: Iterable<String>) = apply {
254+
clientOptions.replaceHeaders(name, values)
255255
}
256256

257-
fun replaceAllheaders(headers: Headers) = apply { clientOptions.replaceAllheaders(headers) }
257+
fun replaceAllHeaders(headers: Headers) = apply { clientOptions.replaceAllHeaders(headers) }
258258

259-
fun replaceAllheaders(headers: Map<String, Iterable<String>>) = apply {
260-
clientOptions.replaceAllheaders(headers)
259+
fun replaceAllHeaders(headers: Map<String, Iterable<String>>) = apply {
260+
clientOptions.replaceAllHeaders(headers)
261261
}
262262

263-
fun removeheaders(name: String) = apply { clientOptions.removeheaders(name) }
263+
fun removeHeaders(name: String) = apply { clientOptions.removeHeaders(name) }
264264

265-
fun removeAllheaders(names: Set<String>) = apply { clientOptions.removeAllheaders(names) }
265+
fun removeAllHeaders(names: Set<String>) = apply { clientOptions.removeAllHeaders(names) }
266266

267267
fun queryParams(queryParams: QueryParams) = apply { clientOptions.queryParams(queryParams) }
268268

@@ -274,38 +274,38 @@ class OpenAIOkHttpClient private constructor() {
274274
clientOptions.putQueryParam(key, value)
275275
}
276276

277-
fun putquery_params(key: String, values: Iterable<String>) = apply {
278-
clientOptions.putquery_params(key, values)
277+
fun putQueryParams(key: String, values: Iterable<String>) = apply {
278+
clientOptions.putQueryParams(key, values)
279279
}
280280

281-
fun putAllquery_params(queryParams: QueryParams) = apply {
282-
clientOptions.putAllquery_params(queryParams)
281+
fun putAllQueryParams(queryParams: QueryParams) = apply {
282+
clientOptions.putAllQueryParams(queryParams)
283283
}
284284

285-
fun putAllquery_params(queryParams: Map<String, Iterable<String>>) = apply {
286-
clientOptions.putAllquery_params(queryParams)
285+
fun putAllQueryParams(queryParams: Map<String, Iterable<String>>) = apply {
286+
clientOptions.putAllQueryParams(queryParams)
287287
}
288288

289-
fun replacequery_params(key: String, value: String) = apply {
290-
clientOptions.replacequery_params(key, value)
289+
fun replaceQueryParams(key: String, value: String) = apply {
290+
clientOptions.replaceQueryParams(key, value)
291291
}
292292

293-
fun replacequery_params(key: String, values: Iterable<String>) = apply {
294-
clientOptions.replacequery_params(key, values)
293+
fun replaceQueryParams(key: String, values: Iterable<String>) = apply {
294+
clientOptions.replaceQueryParams(key, values)
295295
}
296296

297-
fun replaceAllquery_params(queryParams: QueryParams) = apply {
298-
clientOptions.replaceAllquery_params(queryParams)
297+
fun replaceAllQueryParams(queryParams: QueryParams) = apply {
298+
clientOptions.replaceAllQueryParams(queryParams)
299299
}
300300

301-
fun replaceAllquery_params(queryParams: Map<String, Iterable<String>>) = apply {
302-
clientOptions.replaceAllquery_params(queryParams)
301+
fun replaceAllQueryParams(queryParams: Map<String, Iterable<String>>) = apply {
302+
clientOptions.replaceAllQueryParams(queryParams)
303303
}
304304

305-
fun removequery_params(key: String) = apply { clientOptions.removequery_params(key) }
305+
fun removeQueryParams(key: String) = apply { clientOptions.removeQueryParams(key) }
306306

307-
fun removeAllquery_params(keys: Set<String>) = apply {
308-
clientOptions.removeAllquery_params(keys)
307+
fun removeAllQueryParams(keys: Set<String>) = apply {
308+
clientOptions.removeAllQueryParams(keys)
309309
}
310310

311311
/**

openai-java-client-okhttp/src/main/kotlin/com/openai/client/okhttp/OpenAIOkHttpClientAsync.kt

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -236,33 +236,33 @@ class OpenAIOkHttpClientAsync private constructor() {
236236

237237
fun putHeader(name: String, value: String) = apply { clientOptions.putHeader(name, value) }
238238

239-
fun putheaders(name: String, values: Iterable<String>) = apply {
240-
clientOptions.putheaders(name, values)
239+
fun putHeaders(name: String, values: Iterable<String>) = apply {
240+
clientOptions.putHeaders(name, values)
241241
}
242242

243-
fun putAllheaders(headers: Headers) = apply { clientOptions.putAllheaders(headers) }
243+
fun putAllHeaders(headers: Headers) = apply { clientOptions.putAllHeaders(headers) }
244244

245-
fun putAllheaders(headers: Map<String, Iterable<String>>) = apply {
246-
clientOptions.putAllheaders(headers)
245+
fun putAllHeaders(headers: Map<String, Iterable<String>>) = apply {
246+
clientOptions.putAllHeaders(headers)
247247
}
248248

249-
fun replaceheaders(name: String, value: String) = apply {
250-
clientOptions.replaceheaders(name, value)
249+
fun replaceHeaders(name: String, value: String) = apply {
250+
clientOptions.replaceHeaders(name, value)
251251
}
252252

253-
fun replaceheaders(name: String, values: Iterable<String>) = apply {
254-
clientOptions.replaceheaders(name, values)
253+
fun replaceHeaders(name: String, values: Iterable<String>) = apply {
254+
clientOptions.replaceHeaders(name, values)
255255
}
256256

257-
fun replaceAllheaders(headers: Headers) = apply { clientOptions.replaceAllheaders(headers) }
257+
fun replaceAllHeaders(headers: Headers) = apply { clientOptions.replaceAllHeaders(headers) }
258258

259-
fun replaceAllheaders(headers: Map<String, Iterable<String>>) = apply {
260-
clientOptions.replaceAllheaders(headers)
259+
fun replaceAllHeaders(headers: Map<String, Iterable<String>>) = apply {
260+
clientOptions.replaceAllHeaders(headers)
261261
}
262262

263-
fun removeheaders(name: String) = apply { clientOptions.removeheaders(name) }
263+
fun removeHeaders(name: String) = apply { clientOptions.removeHeaders(name) }
264264

265-
fun removeAllheaders(names: Set<String>) = apply { clientOptions.removeAllheaders(names) }
265+
fun removeAllHeaders(names: Set<String>) = apply { clientOptions.removeAllHeaders(names) }
266266

267267
fun queryParams(queryParams: QueryParams) = apply { clientOptions.queryParams(queryParams) }
268268

@@ -274,38 +274,38 @@ class OpenAIOkHttpClientAsync private constructor() {
274274
clientOptions.putQueryParam(key, value)
275275
}
276276

277-
fun putquery_params(key: String, values: Iterable<String>) = apply {
278-
clientOptions.putquery_params(key, values)
277+
fun putQueryParams(key: String, values: Iterable<String>) = apply {
278+
clientOptions.putQueryParams(key, values)
279279
}
280280

281-
fun putAllquery_params(queryParams: QueryParams) = apply {
282-
clientOptions.putAllquery_params(queryParams)
281+
fun putAllQueryParams(queryParams: QueryParams) = apply {
282+
clientOptions.putAllQueryParams(queryParams)
283283
}
284284

285-
fun putAllquery_params(queryParams: Map<String, Iterable<String>>) = apply {
286-
clientOptions.putAllquery_params(queryParams)
285+
fun putAllQueryParams(queryParams: Map<String, Iterable<String>>) = apply {
286+
clientOptions.putAllQueryParams(queryParams)
287287
}
288288

289-
fun replacequery_params(key: String, value: String) = apply {
290-
clientOptions.replacequery_params(key, value)
289+
fun replaceQueryParams(key: String, value: String) = apply {
290+
clientOptions.replaceQueryParams(key, value)
291291
}
292292

293-
fun replacequery_params(key: String, values: Iterable<String>) = apply {
294-
clientOptions.replacequery_params(key, values)
293+
fun replaceQueryParams(key: String, values: Iterable<String>) = apply {
294+
clientOptions.replaceQueryParams(key, values)
295295
}
296296

297-
fun replaceAllquery_params(queryParams: QueryParams) = apply {
298-
clientOptions.replaceAllquery_params(queryParams)
297+
fun replaceAllQueryParams(queryParams: QueryParams) = apply {
298+
clientOptions.replaceAllQueryParams(queryParams)
299299
}
300300

301-
fun replaceAllquery_params(queryParams: Map<String, Iterable<String>>) = apply {
302-
clientOptions.replaceAllquery_params(queryParams)
301+
fun replaceAllQueryParams(queryParams: Map<String, Iterable<String>>) = apply {
302+
clientOptions.replaceAllQueryParams(queryParams)
303303
}
304304

305-
fun removequery_params(key: String) = apply { clientOptions.removequery_params(key) }
305+
fun removeQueryParams(key: String) = apply { clientOptions.removeQueryParams(key) }
306306

307-
fun removeAllquery_params(keys: Set<String>) = apply {
308-
clientOptions.removeAllquery_params(keys)
307+
fun removeAllQueryParams(keys: Set<String>) = apply {
308+
clientOptions.removeAllQueryParams(keys)
309309
}
310310

311311
/**

openai-java-core/src/main/kotlin/com/openai/core/ClientOptions.kt

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -336,83 +336,83 @@ private constructor(
336336

337337
fun headers(headers: Headers) = apply {
338338
this.headers.clear()
339-
putAllheaders(headers)
339+
putAllHeaders(headers)
340340
}
341341

342342
fun headers(headers: Map<String, Iterable<String>>) = apply {
343343
this.headers.clear()
344-
putAllheaders(headers)
344+
putAllHeaders(headers)
345345
}
346346

347347
fun putHeader(name: String, value: String) = apply { headers.put(name, value) }
348348

349-
fun putheaders(name: String, values: Iterable<String>) = apply { headers.put(name, values) }
349+
fun putHeaders(name: String, values: Iterable<String>) = apply { headers.put(name, values) }
350350

351-
fun putAllheaders(headers: Headers) = apply { this.headers.putAll(headers) }
351+
fun putAllHeaders(headers: Headers) = apply { this.headers.putAll(headers) }
352352

353-
fun putAllheaders(headers: Map<String, Iterable<String>>) = apply {
353+
fun putAllHeaders(headers: Map<String, Iterable<String>>) = apply {
354354
this.headers.putAll(headers)
355355
}
356356

357-
fun replaceheaders(name: String, value: String) = apply { headers.replace(name, value) }
357+
fun replaceHeaders(name: String, value: String) = apply { headers.replace(name, value) }
358358

359-
fun replaceheaders(name: String, values: Iterable<String>) = apply {
359+
fun replaceHeaders(name: String, values: Iterable<String>) = apply {
360360
headers.replace(name, values)
361361
}
362362

363-
fun replaceAllheaders(headers: Headers) = apply { this.headers.replaceAll(headers) }
363+
fun replaceAllHeaders(headers: Headers) = apply { this.headers.replaceAll(headers) }
364364

365-
fun replaceAllheaders(headers: Map<String, Iterable<String>>) = apply {
365+
fun replaceAllHeaders(headers: Map<String, Iterable<String>>) = apply {
366366
this.headers.replaceAll(headers)
367367
}
368368

369-
fun removeheaders(name: String) = apply { headers.remove(name) }
369+
fun removeHeaders(name: String) = apply { headers.remove(name) }
370370

371-
fun removeAllheaders(names: Set<String>) = apply { headers.removeAll(names) }
371+
fun removeAllHeaders(names: Set<String>) = apply { headers.removeAll(names) }
372372

373373
fun queryParams(queryParams: QueryParams) = apply {
374374
this.queryParams.clear()
375-
putAllquery_params(queryParams)
375+
putAllQueryParams(queryParams)
376376
}
377377

378378
fun queryParams(queryParams: Map<String, Iterable<String>>) = apply {
379379
this.queryParams.clear()
380-
putAllquery_params(queryParams)
380+
putAllQueryParams(queryParams)
381381
}
382382

383383
fun putQueryParam(key: String, value: String) = apply { queryParams.put(key, value) }
384384

385-
fun putquery_params(key: String, values: Iterable<String>) = apply {
385+
fun putQueryParams(key: String, values: Iterable<String>) = apply {
386386
queryParams.put(key, values)
387387
}
388388

389-
fun putAllquery_params(queryParams: QueryParams) = apply {
389+
fun putAllQueryParams(queryParams: QueryParams) = apply {
390390
this.queryParams.putAll(queryParams)
391391
}
392392

393-
fun putAllquery_params(queryParams: Map<String, Iterable<String>>) = apply {
393+
fun putAllQueryParams(queryParams: Map<String, Iterable<String>>) = apply {
394394
this.queryParams.putAll(queryParams)
395395
}
396396

397-
fun replacequery_params(key: String, value: String) = apply {
397+
fun replaceQueryParams(key: String, value: String) = apply {
398398
queryParams.replace(key, value)
399399
}
400400

401-
fun replacequery_params(key: String, values: Iterable<String>) = apply {
401+
fun replaceQueryParams(key: String, values: Iterable<String>) = apply {
402402
queryParams.replace(key, values)
403403
}
404404

405-
fun replaceAllquery_params(queryParams: QueryParams) = apply {
405+
fun replaceAllQueryParams(queryParams: QueryParams) = apply {
406406
this.queryParams.replaceAll(queryParams)
407407
}
408408

409-
fun replaceAllquery_params(queryParams: Map<String, Iterable<String>>) = apply {
409+
fun replaceAllQueryParams(queryParams: Map<String, Iterable<String>>) = apply {
410410
this.queryParams.replaceAll(queryParams)
411411
}
412412

413-
fun removequery_params(key: String) = apply { queryParams.remove(key) }
413+
fun removeQueryParams(key: String) = apply { queryParams.remove(key) }
414414

415-
fun removeAllquery_params(keys: Set<String>) = apply { queryParams.removeAll(keys) }
415+
fun removeAllQueryParams(keys: Set<String>) = apply { queryParams.removeAll(keys) }
416416

417417
fun timeout(): Timeout = timeout
418418

0 commit comments

Comments
 (0)