aboutsummaryrefslogtreecommitdiffstats
path: root/lib/G4fClient/ModelLens.hs
blob: c138addfd47848a11fd1236d542645ef9a5bc223 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
{-
   FastAPI

   No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

   OpenAPI Version: 3.1.0
   FastAPI API version: 0.1.0
   Generated by OpenAPI Generator (https://openapi-generator.tech)
-}

{-|
Module : G4fClient.Lens
-}

{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE RecordWildCards #-}
{-# OPTIONS_GHC -fno-warn-name-shadowing -fno-warn-unused-matches -fno-warn-unused-binds -fno-warn-unused-imports #-}

module G4fClient.ModelLens where

import qualified Data.Aeson as A
import qualified Data.ByteString.Lazy as BL
import qualified Data.Data as P (Data, Typeable)
import qualified Data.Map as Map
import qualified Data.Set as Set
import qualified Data.Time as TI

import Data.Text (Text)

import Prelude (($), (.),(<$>),(<*>),(=<<),Maybe(..),Bool(..),Char,Double,FilePath,Float,Int,Integer,String,fmap,undefined,mempty,maybe,pure,Monad,Applicative,Functor)
import qualified Prelude as P

import G4fClient.Model
import G4fClient.Core


-- * ApiKey



-- * AudioResponseModel

-- | 'audioResponseModelData' Lens
audioResponseModelDataL :: Lens_' AudioResponseModel (Text)
audioResponseModelDataL f AudioResponseModel{..} = (\audioResponseModelData -> AudioResponseModel { audioResponseModelData, ..} ) <$> f audioResponseModelData
{-# INLINE audioResponseModelDataL #-}

-- | 'audioResponseModelTranscript' Lens
audioResponseModelTranscriptL :: Lens_' AudioResponseModel (Maybe Text)
audioResponseModelTranscriptL f AudioResponseModel{..} = (\audioResponseModelTranscript -> AudioResponseModel { audioResponseModelTranscript, ..} ) <$> f audioResponseModelTranscript
{-# INLINE audioResponseModelTranscriptL #-}



-- * AudioSpeechConfig

-- | 'audioSpeechConfigInput' Lens
audioSpeechConfigInputL :: Lens_' AudioSpeechConfig (Text)
audioSpeechConfigInputL f AudioSpeechConfig{..} = (\audioSpeechConfigInput -> AudioSpeechConfig { audioSpeechConfigInput, ..} ) <$> f audioSpeechConfigInput
{-# INLINE audioSpeechConfigInputL #-}

-- | 'audioSpeechConfigModel' Lens
audioSpeechConfigModelL :: Lens_' AudioSpeechConfig (Maybe Text)
audioSpeechConfigModelL f AudioSpeechConfig{..} = (\audioSpeechConfigModel -> AudioSpeechConfig { audioSpeechConfigModel, ..} ) <$> f audioSpeechConfigModel
{-# INLINE audioSpeechConfigModelL #-}

-- | 'audioSpeechConfigProvider' Lens
audioSpeechConfigProviderL :: Lens_' AudioSpeechConfig (Maybe Text)
audioSpeechConfigProviderL f AudioSpeechConfig{..} = (\audioSpeechConfigProvider -> AudioSpeechConfig { audioSpeechConfigProvider, ..} ) <$> f audioSpeechConfigProvider
{-# INLINE audioSpeechConfigProviderL #-}

-- | 'audioSpeechConfigVoice' Lens
audioSpeechConfigVoiceL :: Lens_' AudioSpeechConfig (Maybe Text)
audioSpeechConfigVoiceL f AudioSpeechConfig{..} = (\audioSpeechConfigVoice -> AudioSpeechConfig { audioSpeechConfigVoice, ..} ) <$> f audioSpeechConfigVoice
{-# INLINE audioSpeechConfigVoiceL #-}

-- | 'audioSpeechConfigInstrcutions' Lens
audioSpeechConfigInstrcutionsL :: Lens_' AudioSpeechConfig (Maybe Text)
audioSpeechConfigInstrcutionsL f AudioSpeechConfig{..} = (\audioSpeechConfigInstrcutions -> AudioSpeechConfig { audioSpeechConfigInstrcutions, ..} ) <$> f audioSpeechConfigInstrcutions
{-# INLINE audioSpeechConfigInstrcutionsL #-}

-- | 'audioSpeechConfigResponseFormat' Lens
audioSpeechConfigResponseFormatL :: Lens_' AudioSpeechConfig (Maybe Text)
audioSpeechConfigResponseFormatL f AudioSpeechConfig{..} = (\audioSpeechConfigResponseFormat -> AudioSpeechConfig { audioSpeechConfigResponseFormat, ..} ) <$> f audioSpeechConfigResponseFormat
{-# INLINE audioSpeechConfigResponseFormatL #-}

-- | 'audioSpeechConfigLanguage' Lens
audioSpeechConfigLanguageL :: Lens_' AudioSpeechConfig (Maybe Text)
audioSpeechConfigLanguageL f AudioSpeechConfig{..} = (\audioSpeechConfigLanguage -> AudioSpeechConfig { audioSpeechConfigLanguage, ..} ) <$> f audioSpeechConfigLanguage
{-# INLINE audioSpeechConfigLanguageL #-}

-- | 'audioSpeechConfigDownloadMedia' Lens
audioSpeechConfigDownloadMediaL :: Lens_' AudioSpeechConfig (Maybe Bool)
audioSpeechConfigDownloadMediaL f AudioSpeechConfig{..} = (\audioSpeechConfigDownloadMedia -> AudioSpeechConfig { audioSpeechConfigDownloadMedia, ..} ) <$> f audioSpeechConfigDownloadMedia
{-# INLINE audioSpeechConfigDownloadMediaL #-}



-- * ChatCompletion

-- | 'chatCompletionId' Lens
chatCompletionIdL :: Lens_' ChatCompletion (Text)
chatCompletionIdL f ChatCompletion{..} = (\chatCompletionId -> ChatCompletion { chatCompletionId, ..} ) <$> f chatCompletionId
{-# INLINE chatCompletionIdL #-}

-- | 'chatCompletionObject' Lens
chatCompletionObjectL :: Lens_' ChatCompletion (Text)
chatCompletionObjectL f ChatCompletion{..} = (\chatCompletionObject -> ChatCompletion { chatCompletionObject, ..} ) <$> f chatCompletionObject
{-# INLINE chatCompletionObjectL #-}

-- | 'chatCompletionCreated' Lens
chatCompletionCreatedL :: Lens_' ChatCompletion (Int)
chatCompletionCreatedL f ChatCompletion{..} = (\chatCompletionCreated -> ChatCompletion { chatCompletionCreated, ..} ) <$> f chatCompletionCreated
{-# INLINE chatCompletionCreatedL #-}

-- | 'chatCompletionModel' Lens
chatCompletionModelL :: Lens_' ChatCompletion (Text)
chatCompletionModelL f ChatCompletion{..} = (\chatCompletionModel -> ChatCompletion { chatCompletionModel, ..} ) <$> f chatCompletionModel
{-# INLINE chatCompletionModelL #-}

-- | 'chatCompletionProvider' Lens
chatCompletionProviderL :: Lens_' ChatCompletion (Text)
chatCompletionProviderL f ChatCompletion{..} = (\chatCompletionProvider -> ChatCompletion { chatCompletionProvider, ..} ) <$> f chatCompletionProvider
{-# INLINE chatCompletionProviderL #-}

-- | 'chatCompletionChoices' Lens
chatCompletionChoicesL :: Lens_' ChatCompletion ([ChatCompletionChoice])
chatCompletionChoicesL f ChatCompletion{..} = (\chatCompletionChoices -> ChatCompletion { chatCompletionChoices, ..} ) <$> f chatCompletionChoices
{-# INLINE chatCompletionChoicesL #-}

-- | 'chatCompletionUsage' Lens
chatCompletionUsageL :: Lens_' ChatCompletion (UsageModel)
chatCompletionUsageL f ChatCompletion{..} = (\chatCompletionUsage -> ChatCompletion { chatCompletionUsage, ..} ) <$> f chatCompletionUsage
{-# INLINE chatCompletionUsageL #-}

-- | 'chatCompletionConversation' Lens
chatCompletionConversationL :: Lens_' ChatCompletion ((Map.Map String AnyType))
chatCompletionConversationL f ChatCompletion{..} = (\chatCompletionConversation -> ChatCompletion { chatCompletionConversation, ..} ) <$> f chatCompletionConversation
{-# INLINE chatCompletionConversationL #-}



-- * ChatCompletionChoice

-- | 'chatCompletionChoiceIndex' Lens
chatCompletionChoiceIndexL :: Lens_' ChatCompletionChoice (Int)
chatCompletionChoiceIndexL f ChatCompletionChoice{..} = (\chatCompletionChoiceIndex -> ChatCompletionChoice { chatCompletionChoiceIndex, ..} ) <$> f chatCompletionChoiceIndex
{-# INLINE chatCompletionChoiceIndexL #-}

-- | 'chatCompletionChoiceMessage' Lens
chatCompletionChoiceMessageL :: Lens_' ChatCompletionChoice (ChatCompletionMessage)
chatCompletionChoiceMessageL f ChatCompletionChoice{..} = (\chatCompletionChoiceMessage -> ChatCompletionChoice { chatCompletionChoiceMessage, ..} ) <$> f chatCompletionChoiceMessage
{-# INLINE chatCompletionChoiceMessageL #-}

-- | 'chatCompletionChoiceFinishReason' Lens
chatCompletionChoiceFinishReasonL :: Lens_' ChatCompletionChoice (Text)
chatCompletionChoiceFinishReasonL f ChatCompletionChoice{..} = (\chatCompletionChoiceFinishReason -> ChatCompletionChoice { chatCompletionChoiceFinishReason, ..} ) <$> f chatCompletionChoiceFinishReason
{-# INLINE chatCompletionChoiceFinishReasonL #-}



-- * ChatCompletionMessage

-- | 'chatCompletionMessageRole' Lens
chatCompletionMessageRoleL :: Lens_' ChatCompletionMessage (Text)
chatCompletionMessageRoleL f ChatCompletionMessage{..} = (\chatCompletionMessageRole -> ChatCompletionMessage { chatCompletionMessageRole, ..} ) <$> f chatCompletionMessageRole
{-# INLINE chatCompletionMessageRoleL #-}

-- | 'chatCompletionMessageContent' Lens
chatCompletionMessageContentL :: Lens_' ChatCompletionMessage (Text)
chatCompletionMessageContentL f ChatCompletionMessage{..} = (\chatCompletionMessageContent -> ChatCompletionMessage { chatCompletionMessageContent, ..} ) <$> f chatCompletionMessageContent
{-# INLINE chatCompletionMessageContentL #-}

-- | 'chatCompletionMessageReasoning' Lens
chatCompletionMessageReasoningL :: Lens_' ChatCompletionMessage (Maybe Text)
chatCompletionMessageReasoningL f ChatCompletionMessage{..} = (\chatCompletionMessageReasoning -> ChatCompletionMessage { chatCompletionMessageReasoning, ..} ) <$> f chatCompletionMessageReasoning
{-# INLINE chatCompletionMessageReasoningL #-}

-- | 'chatCompletionMessageToolCalls' Lens
chatCompletionMessageToolCallsL :: Lens_' ChatCompletionMessage (Maybe [ToolCallModel])
chatCompletionMessageToolCallsL f ChatCompletionMessage{..} = (\chatCompletionMessageToolCalls -> ChatCompletionMessage { chatCompletionMessageToolCalls, ..} ) <$> f chatCompletionMessageToolCalls
{-# INLINE chatCompletionMessageToolCallsL #-}

-- | 'chatCompletionMessageAudio' Lens
chatCompletionMessageAudioL :: Lens_' ChatCompletionMessage (Maybe AudioResponseModel)
chatCompletionMessageAudioL f ChatCompletionMessage{..} = (\chatCompletionMessageAudio -> ChatCompletionMessage { chatCompletionMessageAudio, ..} ) <$> f chatCompletionMessageAudio
{-# INLINE chatCompletionMessageAudioL #-}



-- * ChatCompletionsConfig

-- | 'chatCompletionsConfigModel' Lens
chatCompletionsConfigModelL :: Lens_' ChatCompletionsConfig (Maybe Text)
chatCompletionsConfigModelL f ChatCompletionsConfig{..} = (\chatCompletionsConfigModel -> ChatCompletionsConfig { chatCompletionsConfigModel, ..} ) <$> f chatCompletionsConfigModel
{-# INLINE chatCompletionsConfigModelL #-}

-- | 'chatCompletionsConfigProvider' Lens
chatCompletionsConfigProviderL :: Lens_' ChatCompletionsConfig (Maybe Text)
chatCompletionsConfigProviderL f ChatCompletionsConfig{..} = (\chatCompletionsConfigProvider -> ChatCompletionsConfig { chatCompletionsConfigProvider, ..} ) <$> f chatCompletionsConfigProvider
{-# INLINE chatCompletionsConfigProviderL #-}

-- | 'chatCompletionsConfigMedia' Lens
chatCompletionsConfigMediaL :: Lens_' ChatCompletionsConfig (Maybe [[AnyType]])
chatCompletionsConfigMediaL f ChatCompletionsConfig{..} = (\chatCompletionsConfigMedia -> ChatCompletionsConfig { chatCompletionsConfigMedia, ..} ) <$> f chatCompletionsConfigMedia
{-# INLINE chatCompletionsConfigMediaL #-}

-- | 'chatCompletionsConfigModalities' Lens
chatCompletionsConfigModalitiesL :: Lens_' ChatCompletionsConfig (Maybe [Text])
chatCompletionsConfigModalitiesL f ChatCompletionsConfig{..} = (\chatCompletionsConfigModalities -> ChatCompletionsConfig { chatCompletionsConfigModalities, ..} ) <$> f chatCompletionsConfigModalities
{-# INLINE chatCompletionsConfigModalitiesL #-}

-- | 'chatCompletionsConfigTemperature' Lens
chatCompletionsConfigTemperatureL :: Lens_' ChatCompletionsConfig (Maybe Double)
chatCompletionsConfigTemperatureL f ChatCompletionsConfig{..} = (\chatCompletionsConfigTemperature -> ChatCompletionsConfig { chatCompletionsConfigTemperature, ..} ) <$> f chatCompletionsConfigTemperature
{-# INLINE chatCompletionsConfigTemperatureL #-}

-- | 'chatCompletionsConfigPresencePenalty' Lens
chatCompletionsConfigPresencePenaltyL :: Lens_' ChatCompletionsConfig (Maybe Double)
chatCompletionsConfigPresencePenaltyL f ChatCompletionsConfig{..} = (\chatCompletionsConfigPresencePenalty -> ChatCompletionsConfig { chatCompletionsConfigPresencePenalty, ..} ) <$> f chatCompletionsConfigPresencePenalty
{-# INLINE chatCompletionsConfigPresencePenaltyL #-}

-- | 'chatCompletionsConfigFrequencyPenalty' Lens
chatCompletionsConfigFrequencyPenaltyL :: Lens_' ChatCompletionsConfig (Maybe Double)
chatCompletionsConfigFrequencyPenaltyL f ChatCompletionsConfig{..} = (\chatCompletionsConfigFrequencyPenalty -> ChatCompletionsConfig { chatCompletionsConfigFrequencyPenalty, ..} ) <$> f chatCompletionsConfigFrequencyPenalty
{-# INLINE chatCompletionsConfigFrequencyPenaltyL #-}

-- | 'chatCompletionsConfigTopP' Lens
chatCompletionsConfigTopPL :: Lens_' ChatCompletionsConfig (Maybe Double)
chatCompletionsConfigTopPL f ChatCompletionsConfig{..} = (\chatCompletionsConfigTopP -> ChatCompletionsConfig { chatCompletionsConfigTopP, ..} ) <$> f chatCompletionsConfigTopP
{-# INLINE chatCompletionsConfigTopPL #-}

-- | 'chatCompletionsConfigMaxTokens' Lens
chatCompletionsConfigMaxTokensL :: Lens_' ChatCompletionsConfig (Maybe Int)
chatCompletionsConfigMaxTokensL f ChatCompletionsConfig{..} = (\chatCompletionsConfigMaxTokens -> ChatCompletionsConfig { chatCompletionsConfigMaxTokens, ..} ) <$> f chatCompletionsConfigMaxTokens
{-# INLINE chatCompletionsConfigMaxTokensL #-}

-- | 'chatCompletionsConfigStop' Lens
chatCompletionsConfigStopL :: Lens_' ChatCompletionsConfig (Maybe Stop)
chatCompletionsConfigStopL f ChatCompletionsConfig{..} = (\chatCompletionsConfigStop -> ChatCompletionsConfig { chatCompletionsConfigStop, ..} ) <$> f chatCompletionsConfigStop
{-# INLINE chatCompletionsConfigStopL #-}

-- | 'chatCompletionsConfigApiKey' Lens
chatCompletionsConfigApiKeyL :: Lens_' ChatCompletionsConfig (Maybe ApiKey)
chatCompletionsConfigApiKeyL f ChatCompletionsConfig{..} = (\chatCompletionsConfigApiKey -> ChatCompletionsConfig { chatCompletionsConfigApiKey, ..} ) <$> f chatCompletionsConfigApiKey
{-# INLINE chatCompletionsConfigApiKeyL #-}

-- | 'chatCompletionsConfigBaseUrl' Lens
chatCompletionsConfigBaseUrlL :: Lens_' ChatCompletionsConfig (Maybe Text)
chatCompletionsConfigBaseUrlL f ChatCompletionsConfig{..} = (\chatCompletionsConfigBaseUrl -> ChatCompletionsConfig { chatCompletionsConfigBaseUrl, ..} ) <$> f chatCompletionsConfigBaseUrl
{-# INLINE chatCompletionsConfigBaseUrlL #-}

-- | 'chatCompletionsConfigWebSearch' Lens
chatCompletionsConfigWebSearchL :: Lens_' ChatCompletionsConfig (Maybe Bool)
chatCompletionsConfigWebSearchL f ChatCompletionsConfig{..} = (\chatCompletionsConfigWebSearch -> ChatCompletionsConfig { chatCompletionsConfigWebSearch, ..} ) <$> f chatCompletionsConfigWebSearch
{-# INLINE chatCompletionsConfigWebSearchL #-}

-- | 'chatCompletionsConfigProxy' Lens
chatCompletionsConfigProxyL :: Lens_' ChatCompletionsConfig (Maybe Text)
chatCompletionsConfigProxyL f ChatCompletionsConfig{..} = (\chatCompletionsConfigProxy -> ChatCompletionsConfig { chatCompletionsConfigProxy, ..} ) <$> f chatCompletionsConfigProxy
{-# INLINE chatCompletionsConfigProxyL #-}

-- | 'chatCompletionsConfigConversation' Lens
chatCompletionsConfigConversationL :: Lens_' ChatCompletionsConfig (Maybe (Map.Map String AnyType))
chatCompletionsConfigConversationL f ChatCompletionsConfig{..} = (\chatCompletionsConfigConversation -> ChatCompletionsConfig { chatCompletionsConfigConversation, ..} ) <$> f chatCompletionsConfigConversation
{-# INLINE chatCompletionsConfigConversationL #-}

-- | 'chatCompletionsConfigTimeout' Lens
chatCompletionsConfigTimeoutL :: Lens_' ChatCompletionsConfig (Maybe Int)
chatCompletionsConfigTimeoutL f ChatCompletionsConfig{..} = (\chatCompletionsConfigTimeout -> ChatCompletionsConfig { chatCompletionsConfigTimeout, ..} ) <$> f chatCompletionsConfigTimeout
{-# INLINE chatCompletionsConfigTimeoutL #-}

-- | 'chatCompletionsConfigStreamTimeout' Lens
chatCompletionsConfigStreamTimeoutL :: Lens_' ChatCompletionsConfig (Maybe Int)
chatCompletionsConfigStreamTimeoutL f ChatCompletionsConfig{..} = (\chatCompletionsConfigStreamTimeout -> ChatCompletionsConfig { chatCompletionsConfigStreamTimeout, ..} ) <$> f chatCompletionsConfigStreamTimeout
{-# INLINE chatCompletionsConfigStreamTimeoutL #-}

-- | 'chatCompletionsConfigToolCalls' Lens
chatCompletionsConfigToolCallsL :: Lens_' ChatCompletionsConfig (Maybe [AnyType])
chatCompletionsConfigToolCallsL f ChatCompletionsConfig{..} = (\chatCompletionsConfigToolCalls -> ChatCompletionsConfig { chatCompletionsConfigToolCalls, ..} ) <$> f chatCompletionsConfigToolCalls
{-# INLINE chatCompletionsConfigToolCallsL #-}

-- | 'chatCompletionsConfigReasoningEffort' Lens
chatCompletionsConfigReasoningEffortL :: Lens_' ChatCompletionsConfig (Maybe Text)
chatCompletionsConfigReasoningEffortL f ChatCompletionsConfig{..} = (\chatCompletionsConfigReasoningEffort -> ChatCompletionsConfig { chatCompletionsConfigReasoningEffort, ..} ) <$> f chatCompletionsConfigReasoningEffort
{-# INLINE chatCompletionsConfigReasoningEffortL #-}

-- | 'chatCompletionsConfigLogitBias' Lens
chatCompletionsConfigLogitBiasL :: Lens_' ChatCompletionsConfig (Maybe (Map.Map String AnyType))
chatCompletionsConfigLogitBiasL f ChatCompletionsConfig{..} = (\chatCompletionsConfigLogitBias -> ChatCompletionsConfig { chatCompletionsConfigLogitBias, ..} ) <$> f chatCompletionsConfigLogitBias
{-# INLINE chatCompletionsConfigLogitBiasL #-}

-- | 'chatCompletionsConfigAudio' Lens
chatCompletionsConfigAudioL :: Lens_' ChatCompletionsConfig (Maybe (Map.Map String AnyType))
chatCompletionsConfigAudioL f ChatCompletionsConfig{..} = (\chatCompletionsConfigAudio -> ChatCompletionsConfig { chatCompletionsConfigAudio, ..} ) <$> f chatCompletionsConfigAudio
{-# INLINE chatCompletionsConfigAudioL #-}

-- | 'chatCompletionsConfigResponseFormat' Lens
chatCompletionsConfigResponseFormatL :: Lens_' ChatCompletionsConfig (Maybe (Map.Map String AnyType))
chatCompletionsConfigResponseFormatL f ChatCompletionsConfig{..} = (\chatCompletionsConfigResponseFormat -> ChatCompletionsConfig { chatCompletionsConfigResponseFormat, ..} ) <$> f chatCompletionsConfigResponseFormat
{-# INLINE chatCompletionsConfigResponseFormatL #-}

-- | 'chatCompletionsConfigDownloadMedia' Lens
chatCompletionsConfigDownloadMediaL :: Lens_' ChatCompletionsConfig (Maybe Bool)
chatCompletionsConfigDownloadMediaL f ChatCompletionsConfig{..} = (\chatCompletionsConfigDownloadMedia -> ChatCompletionsConfig { chatCompletionsConfigDownloadMedia, ..} ) <$> f chatCompletionsConfigDownloadMedia
{-# INLINE chatCompletionsConfigDownloadMediaL #-}

-- | 'chatCompletionsConfigRaw' Lens
chatCompletionsConfigRawL :: Lens_' ChatCompletionsConfig (Maybe Bool)
chatCompletionsConfigRawL f ChatCompletionsConfig{..} = (\chatCompletionsConfigRaw -> ChatCompletionsConfig { chatCompletionsConfigRaw, ..} ) <$> f chatCompletionsConfigRaw
{-# INLINE chatCompletionsConfigRawL #-}

-- | 'chatCompletionsConfigExtraBody' Lens
chatCompletionsConfigExtraBodyL :: Lens_' ChatCompletionsConfig (Maybe (Map.Map String AnyType))
chatCompletionsConfigExtraBodyL f ChatCompletionsConfig{..} = (\chatCompletionsConfigExtraBody -> ChatCompletionsConfig { chatCompletionsConfigExtraBody, ..} ) <$> f chatCompletionsConfigExtraBody
{-# INLINE chatCompletionsConfigExtraBodyL #-}

-- | 'chatCompletionsConfigToolEmulation' Lens
chatCompletionsConfigToolEmulationL :: Lens_' ChatCompletionsConfig (Maybe Bool)
chatCompletionsConfigToolEmulationL f ChatCompletionsConfig{..} = (\chatCompletionsConfigToolEmulation -> ChatCompletionsConfig { chatCompletionsConfigToolEmulation, ..} ) <$> f chatCompletionsConfigToolEmulation
{-# INLINE chatCompletionsConfigToolEmulationL #-}

-- | 'chatCompletionsConfigMessages' Lens
chatCompletionsConfigMessagesL :: Lens_' ChatCompletionsConfig ([Message])
chatCompletionsConfigMessagesL f ChatCompletionsConfig{..} = (\chatCompletionsConfigMessages -> ChatCompletionsConfig { chatCompletionsConfigMessages, ..} ) <$> f chatCompletionsConfigMessages
{-# INLINE chatCompletionsConfigMessagesL #-}

-- | 'chatCompletionsConfigStream' Lens
chatCompletionsConfigStreamL :: Lens_' ChatCompletionsConfig (Maybe Bool)
chatCompletionsConfigStreamL f ChatCompletionsConfig{..} = (\chatCompletionsConfigStream -> ChatCompletionsConfig { chatCompletionsConfigStream, ..} ) <$> f chatCompletionsConfigStream
{-# INLINE chatCompletionsConfigStreamL #-}

-- | 'chatCompletionsConfigImage' Lens
chatCompletionsConfigImageL :: Lens_' ChatCompletionsConfig (Maybe Text)
chatCompletionsConfigImageL f ChatCompletionsConfig{..} = (\chatCompletionsConfigImage -> ChatCompletionsConfig { chatCompletionsConfigImage, ..} ) <$> f chatCompletionsConfigImage
{-# INLINE chatCompletionsConfigImageL #-}

-- | 'chatCompletionsConfigImageName' Lens
chatCompletionsConfigImageNameL :: Lens_' ChatCompletionsConfig (Maybe Text)
chatCompletionsConfigImageNameL f ChatCompletionsConfig{..} = (\chatCompletionsConfigImageName -> ChatCompletionsConfig { chatCompletionsConfigImageName, ..} ) <$> f chatCompletionsConfigImageName
{-# INLINE chatCompletionsConfigImageNameL #-}

-- | 'chatCompletionsConfigImages' Lens
chatCompletionsConfigImagesL :: Lens_' ChatCompletionsConfig (Maybe [[AnyType]])
chatCompletionsConfigImagesL f ChatCompletionsConfig{..} = (\chatCompletionsConfigImages -> ChatCompletionsConfig { chatCompletionsConfigImages, ..} ) <$> f chatCompletionsConfigImages
{-# INLINE chatCompletionsConfigImagesL #-}

-- | 'chatCompletionsConfigTools' Lens
chatCompletionsConfigToolsL :: Lens_' ChatCompletionsConfig (Maybe [AnyType])
chatCompletionsConfigToolsL f ChatCompletionsConfig{..} = (\chatCompletionsConfigTools -> ChatCompletionsConfig { chatCompletionsConfigTools, ..} ) <$> f chatCompletionsConfigTools
{-# INLINE chatCompletionsConfigToolsL #-}

-- | 'chatCompletionsConfigParallelToolCalls' Lens
chatCompletionsConfigParallelToolCallsL :: Lens_' ChatCompletionsConfig (Maybe Bool)
chatCompletionsConfigParallelToolCallsL f ChatCompletionsConfig{..} = (\chatCompletionsConfigParallelToolCalls -> ChatCompletionsConfig { chatCompletionsConfigParallelToolCalls, ..} ) <$> f chatCompletionsConfigParallelToolCalls
{-# INLINE chatCompletionsConfigParallelToolCallsL #-}

-- | 'chatCompletionsConfigToolChoice' Lens
chatCompletionsConfigToolChoiceL :: Lens_' ChatCompletionsConfig (Maybe Text)
chatCompletionsConfigToolChoiceL f ChatCompletionsConfig{..} = (\chatCompletionsConfigToolChoice -> ChatCompletionsConfig { chatCompletionsConfigToolChoice, ..} ) <$> f chatCompletionsConfigToolChoice
{-# INLINE chatCompletionsConfigToolChoiceL #-}

-- | 'chatCompletionsConfigConversationId' Lens
chatCompletionsConfigConversationIdL :: Lens_' ChatCompletionsConfig (Maybe Text)
chatCompletionsConfigConversationIdL f ChatCompletionsConfig{..} = (\chatCompletionsConfigConversationId -> ChatCompletionsConfig { chatCompletionsConfigConversationId, ..} ) <$> f chatCompletionsConfigConversationId
{-# INLINE chatCompletionsConfigConversationIdL #-}



-- * CompletionTokenDetails

-- | 'completionTokenDetailsReasoningTokens' Lens
completionTokenDetailsReasoningTokensL :: Lens_' CompletionTokenDetails (Int)
completionTokenDetailsReasoningTokensL f CompletionTokenDetails{..} = (\completionTokenDetailsReasoningTokens -> CompletionTokenDetails { completionTokenDetailsReasoningTokens, ..} ) <$> f completionTokenDetailsReasoningTokens
{-# INLINE completionTokenDetailsReasoningTokensL #-}

-- | 'completionTokenDetailsImageTokens' Lens
completionTokenDetailsImageTokensL :: Lens_' CompletionTokenDetails (Int)
completionTokenDetailsImageTokensL f CompletionTokenDetails{..} = (\completionTokenDetailsImageTokens -> CompletionTokenDetails { completionTokenDetailsImageTokens, ..} ) <$> f completionTokenDetailsImageTokens
{-# INLINE completionTokenDetailsImageTokensL #-}

-- | 'completionTokenDetailsAudioTokens' Lens
completionTokenDetailsAudioTokensL :: Lens_' CompletionTokenDetails (Int)
completionTokenDetailsAudioTokensL f CompletionTokenDetails{..} = (\completionTokenDetailsAudioTokens -> CompletionTokenDetails { completionTokenDetailsAudioTokens, ..} ) <$> f completionTokenDetailsAudioTokens
{-# INLINE completionTokenDetailsAudioTokensL #-}



-- * Content



-- * ContentPart

-- | 'contentPartType' Lens
contentPartTypeL :: Lens_' ContentPart (Maybe Text)
contentPartTypeL f ContentPart{..} = (\contentPartType -> ContentPart { contentPartType, ..} ) <$> f contentPartType
{-# INLINE contentPartTypeL #-}

-- | 'contentPartText' Lens
contentPartTextL :: Lens_' ContentPart (Maybe Text)
contentPartTextL f ContentPart{..} = (\contentPartText -> ContentPart { contentPartText, ..} ) <$> f contentPartText
{-# INLINE contentPartTextL #-}

-- | 'contentPartImageUrl' Lens
contentPartImageUrlL :: Lens_' ContentPart (Maybe (Map.Map String Text))
contentPartImageUrlL f ContentPart{..} = (\contentPartImageUrl -> ContentPart { contentPartImageUrl, ..} ) <$> f contentPartImageUrl
{-# INLINE contentPartImageUrlL #-}

-- | 'contentPartInputAudio' Lens
contentPartInputAudioL :: Lens_' ContentPart (Maybe (Map.Map String Text))
contentPartInputAudioL f ContentPart{..} = (\contentPartInputAudio -> ContentPart { contentPartInputAudio, ..} ) <$> f contentPartInputAudio
{-# INLINE contentPartInputAudioL #-}

-- | 'contentPartBucketId' Lens
contentPartBucketIdL :: Lens_' ContentPart (Maybe Text)
contentPartBucketIdL f ContentPart{..} = (\contentPartBucketId -> ContentPart { contentPartBucketId, ..} ) <$> f contentPartBucketId
{-# INLINE contentPartBucketIdL #-}

-- | 'contentPartName' Lens
contentPartNameL :: Lens_' ContentPart (Maybe Text)
contentPartNameL f ContentPart{..} = (\contentPartName -> ContentPart { contentPartName, ..} ) <$> f contentPartName
{-# INLINE contentPartNameL #-}



-- * ErrorResponseMessageModel

-- | 'errorResponseMessageModelMessage' Lens
errorResponseMessageModelMessageL :: Lens_' ErrorResponseMessageModel (Text)
errorResponseMessageModelMessageL f ErrorResponseMessageModel{..} = (\errorResponseMessageModelMessage -> ErrorResponseMessageModel { errorResponseMessageModelMessage, ..} ) <$> f errorResponseMessageModelMessage
{-# INLINE errorResponseMessageModelMessageL #-}



-- * ErrorResponseModel

-- | 'errorResponseModelError' Lens
errorResponseModelErrorL :: Lens_' ErrorResponseModel (ErrorResponseMessageModel)
errorResponseModelErrorL f ErrorResponseModel{..} = (\errorResponseModelError -> ErrorResponseModel { errorResponseModelError, ..} ) <$> f errorResponseModelError
{-# INLINE errorResponseModelErrorL #-}

-- | 'errorResponseModelModel' Lens
errorResponseModelModelL :: Lens_' ErrorResponseModel (Maybe Text)
errorResponseModelModelL f ErrorResponseModel{..} = (\errorResponseModelModel -> ErrorResponseModel { errorResponseModelModel, ..} ) <$> f errorResponseModelModel
{-# INLINE errorResponseModelModelL #-}

-- | 'errorResponseModelProvider' Lens
errorResponseModelProviderL :: Lens_' ErrorResponseModel (Maybe Text)
errorResponseModelProviderL f ErrorResponseModel{..} = (\errorResponseModelProvider -> ErrorResponseModel { errorResponseModelProvider, ..} ) <$> f errorResponseModelProvider
{-# INLINE errorResponseModelProviderL #-}



-- * FileResponseModel

-- | 'fileResponseModelFilename' Lens
fileResponseModelFilenameL :: Lens_' FileResponseModel (Text)
fileResponseModelFilenameL f FileResponseModel{..} = (\fileResponseModelFilename -> FileResponseModel { fileResponseModelFilename, ..} ) <$> f fileResponseModelFilename
{-# INLINE fileResponseModelFilenameL #-}



-- * HTTPValidationError

-- | 'hTTPValidationErrorDetail' Lens
hTTPValidationErrorDetailL :: Lens_' HTTPValidationError (Maybe [ValidationError])
hTTPValidationErrorDetailL f HTTPValidationError{..} = (\hTTPValidationErrorDetail -> HTTPValidationError { hTTPValidationErrorDetail, ..} ) <$> f hTTPValidationErrorDetail
{-# INLINE hTTPValidationErrorDetailL #-}



-- * Image

-- | 'imageUrl' Lens
imageUrlL :: Lens_' Image (Text)
imageUrlL f Image{..} = (\imageUrl -> Image { imageUrl, ..} ) <$> f imageUrl
{-# INLINE imageUrlL #-}

-- | 'imageB64Json' Lens
imageB64JsonL :: Lens_' Image (Text)
imageB64JsonL f Image{..} = (\imageB64Json -> Image { imageB64Json, ..} ) <$> f imageB64Json
{-# INLINE imageB64JsonL #-}

-- | 'imageRevisedPrompt' Lens
imageRevisedPromptL :: Lens_' Image (Text)
imageRevisedPromptL f Image{..} = (\imageRevisedPrompt -> Image { imageRevisedPrompt, ..} ) <$> f imageRevisedPrompt
{-# INLINE imageRevisedPromptL #-}



-- * ImageGenerationConfig

-- | 'imageGenerationConfigPrompt' Lens
imageGenerationConfigPromptL :: Lens_' ImageGenerationConfig (Text)
imageGenerationConfigPromptL f ImageGenerationConfig{..} = (\imageGenerationConfigPrompt -> ImageGenerationConfig { imageGenerationConfigPrompt, ..} ) <$> f imageGenerationConfigPrompt
{-# INLINE imageGenerationConfigPromptL #-}

-- | 'imageGenerationConfigModel' Lens
imageGenerationConfigModelL :: Lens_' ImageGenerationConfig (Maybe Text)
imageGenerationConfigModelL f ImageGenerationConfig{..} = (\imageGenerationConfigModel -> ImageGenerationConfig { imageGenerationConfigModel, ..} ) <$> f imageGenerationConfigModel
{-# INLINE imageGenerationConfigModelL #-}

-- | 'imageGenerationConfigProvider' Lens
imageGenerationConfigProviderL :: Lens_' ImageGenerationConfig (Maybe Text)
imageGenerationConfigProviderL f ImageGenerationConfig{..} = (\imageGenerationConfigProvider -> ImageGenerationConfig { imageGenerationConfigProvider, ..} ) <$> f imageGenerationConfigProvider
{-# INLINE imageGenerationConfigProviderL #-}

-- | 'imageGenerationConfigResponseFormat' Lens
imageGenerationConfigResponseFormatL :: Lens_' ImageGenerationConfig (Maybe Text)
imageGenerationConfigResponseFormatL f ImageGenerationConfig{..} = (\imageGenerationConfigResponseFormat -> ImageGenerationConfig { imageGenerationConfigResponseFormat, ..} ) <$> f imageGenerationConfigResponseFormat
{-# INLINE imageGenerationConfigResponseFormatL #-}

-- | 'imageGenerationConfigApiKey' Lens
imageGenerationConfigApiKeyL :: Lens_' ImageGenerationConfig (Maybe Text)
imageGenerationConfigApiKeyL f ImageGenerationConfig{..} = (\imageGenerationConfigApiKey -> ImageGenerationConfig { imageGenerationConfigApiKey, ..} ) <$> f imageGenerationConfigApiKey
{-# INLINE imageGenerationConfigApiKeyL #-}

-- | 'imageGenerationConfigProxy' Lens
imageGenerationConfigProxyL :: Lens_' ImageGenerationConfig (Maybe Text)
imageGenerationConfigProxyL f ImageGenerationConfig{..} = (\imageGenerationConfigProxy -> ImageGenerationConfig { imageGenerationConfigProxy, ..} ) <$> f imageGenerationConfigProxy
{-# INLINE imageGenerationConfigProxyL #-}

-- | 'imageGenerationConfigWidth' Lens
imageGenerationConfigWidthL :: Lens_' ImageGenerationConfig (Maybe Int)
imageGenerationConfigWidthL f ImageGenerationConfig{..} = (\imageGenerationConfigWidth -> ImageGenerationConfig { imageGenerationConfigWidth, ..} ) <$> f imageGenerationConfigWidth
{-# INLINE imageGenerationConfigWidthL #-}

-- | 'imageGenerationConfigHeight' Lens
imageGenerationConfigHeightL :: Lens_' ImageGenerationConfig (Maybe Int)
imageGenerationConfigHeightL f ImageGenerationConfig{..} = (\imageGenerationConfigHeight -> ImageGenerationConfig { imageGenerationConfigHeight, ..} ) <$> f imageGenerationConfigHeight
{-# INLINE imageGenerationConfigHeightL #-}

-- | 'imageGenerationConfigNumInferenceSteps' Lens
imageGenerationConfigNumInferenceStepsL :: Lens_' ImageGenerationConfig (Maybe Int)
imageGenerationConfigNumInferenceStepsL f ImageGenerationConfig{..} = (\imageGenerationConfigNumInferenceSteps -> ImageGenerationConfig { imageGenerationConfigNumInferenceSteps, ..} ) <$> f imageGenerationConfigNumInferenceSteps
{-# INLINE imageGenerationConfigNumInferenceStepsL #-}

-- | 'imageGenerationConfigSeed' Lens
imageGenerationConfigSeedL :: Lens_' ImageGenerationConfig (Maybe Int)
imageGenerationConfigSeedL f ImageGenerationConfig{..} = (\imageGenerationConfigSeed -> ImageGenerationConfig { imageGenerationConfigSeed, ..} ) <$> f imageGenerationConfigSeed
{-# INLINE imageGenerationConfigSeedL #-}

-- | 'imageGenerationConfigGuidanceScale' Lens
imageGenerationConfigGuidanceScaleL :: Lens_' ImageGenerationConfig (Maybe Int)
imageGenerationConfigGuidanceScaleL f ImageGenerationConfig{..} = (\imageGenerationConfigGuidanceScale -> ImageGenerationConfig { imageGenerationConfigGuidanceScale, ..} ) <$> f imageGenerationConfigGuidanceScale
{-# INLINE imageGenerationConfigGuidanceScaleL #-}

-- | 'imageGenerationConfigAspectRatio' Lens
imageGenerationConfigAspectRatioL :: Lens_' ImageGenerationConfig (Maybe Text)
imageGenerationConfigAspectRatioL f ImageGenerationConfig{..} = (\imageGenerationConfigAspectRatio -> ImageGenerationConfig { imageGenerationConfigAspectRatio, ..} ) <$> f imageGenerationConfigAspectRatio
{-# INLINE imageGenerationConfigAspectRatioL #-}

-- | 'imageGenerationConfigN' Lens
imageGenerationConfigNL :: Lens_' ImageGenerationConfig (Maybe Int)
imageGenerationConfigNL f ImageGenerationConfig{..} = (\imageGenerationConfigN -> ImageGenerationConfig { imageGenerationConfigN, ..} ) <$> f imageGenerationConfigN
{-# INLINE imageGenerationConfigNL #-}

-- | 'imageGenerationConfigNegativePrompt' Lens
imageGenerationConfigNegativePromptL :