-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodel_chat_inference_request.go
More file actions
704 lines (595 loc) · 20.3 KB
/
model_chat_inference_request.go
File metadata and controls
704 lines (595 loc) · 20.3 KB
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
/*
QuantCDN API
Unified API for QuantCDN Admin and QuantCloud Platform services
API version: 4.15.8
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package quantadmingo
import (
"encoding/json"
"fmt"
)
// checks if the ChatInferenceRequest type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ChatInferenceRequest{}
// ChatInferenceRequest struct for ChatInferenceRequest
type ChatInferenceRequest struct {
// Array of chat messages. Content can be a simple string or an array of content blocks for multimodal input.
Messages []ChatInferenceRequestMessagesInner `json:"messages"`
// Model ID. Use Nova models for multimodal support.
ModelId string `json:"modelId"`
Temperature *float32 `json:"temperature,omitempty"`
// Max tokens. Claude 4.5 supports up to 64k.
MaxTokens *int32 `json:"maxTokens,omitempty"`
TopP *float32 `json:"topP,omitempty"`
// Ignored in buffered mode, always returns complete response
Stream *bool `json:"stream,omitempty"`
// Optional custom system prompt. When tools are enabled, this is prepended with tool usage guidance.
SystemPrompt *string `json:"systemPrompt,omitempty"`
// Custom stop sequences
StopSequences []string `json:"stopSequences,omitempty"`
ResponseFormat *ChatInferenceRequestResponseFormat `json:"responseFormat,omitempty"`
ToolConfig *ChatInferenceRequestToolConfig `json:"toolConfig,omitempty"`
// Optional session ID for conversation continuity. Omit to use stateless mode, include to continue an existing session.
SessionId *string `json:"sessionId,omitempty"`
// Enable async/durable execution mode. When true, returns 202 with pollUrl instead of waiting for completion. Use for long-running inference, client-executed tools, or operations >30 seconds.
Async *bool `json:"async,omitempty"`
// Top-level convenience alias for toolConfig.allowedTools. Whitelists which tools can be auto-executed.
AllowedTools []string `json:"allowedTools,omitempty"`
Guardrails *ChatInferenceRequestGuardrails `json:"guardrails,omitempty"`
// Enable 1M context window support regardless of token estimation. Use when sending large payloads (>200K tokens).
LongContext *bool `json:"longContext,omitempty"`
AdditionalProperties map[string]interface{}
}
type _ChatInferenceRequest ChatInferenceRequest
// NewChatInferenceRequest instantiates a new ChatInferenceRequest object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewChatInferenceRequest(messages []ChatInferenceRequestMessagesInner, modelId string) *ChatInferenceRequest {
this := ChatInferenceRequest{}
this.Messages = messages
this.ModelId = modelId
var temperature float32 = 0.7
this.Temperature = &temperature
var maxTokens int32 = 4096
this.MaxTokens = &maxTokens
var async bool = false
this.Async = &async
var longContext bool = false
this.LongContext = &longContext
return &this
}
// NewChatInferenceRequestWithDefaults instantiates a new ChatInferenceRequest object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewChatInferenceRequestWithDefaults() *ChatInferenceRequest {
this := ChatInferenceRequest{}
var temperature float32 = 0.7
this.Temperature = &temperature
var maxTokens int32 = 4096
this.MaxTokens = &maxTokens
var async bool = false
this.Async = &async
var longContext bool = false
this.LongContext = &longContext
return &this
}
// GetMessages returns the Messages field value
func (o *ChatInferenceRequest) GetMessages() []ChatInferenceRequestMessagesInner {
if o == nil {
var ret []ChatInferenceRequestMessagesInner
return ret
}
return o.Messages
}
// GetMessagesOk returns a tuple with the Messages field value
// and a boolean to check if the value has been set.
func (o *ChatInferenceRequest) GetMessagesOk() ([]ChatInferenceRequestMessagesInner, bool) {
if o == nil {
return nil, false
}
return o.Messages, true
}
// SetMessages sets field value
func (o *ChatInferenceRequest) SetMessages(v []ChatInferenceRequestMessagesInner) {
o.Messages = v
}
// GetModelId returns the ModelId field value
func (o *ChatInferenceRequest) GetModelId() string {
if o == nil {
var ret string
return ret
}
return o.ModelId
}
// GetModelIdOk returns a tuple with the ModelId field value
// and a boolean to check if the value has been set.
func (o *ChatInferenceRequest) GetModelIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.ModelId, true
}
// SetModelId sets field value
func (o *ChatInferenceRequest) SetModelId(v string) {
o.ModelId = v
}
// GetTemperature returns the Temperature field value if set, zero value otherwise.
func (o *ChatInferenceRequest) GetTemperature() float32 {
if o == nil || IsNil(o.Temperature) {
var ret float32
return ret
}
return *o.Temperature
}
// GetTemperatureOk returns a tuple with the Temperature field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChatInferenceRequest) GetTemperatureOk() (*float32, bool) {
if o == nil || IsNil(o.Temperature) {
return nil, false
}
return o.Temperature, true
}
// HasTemperature returns a boolean if a field has been set.
func (o *ChatInferenceRequest) HasTemperature() bool {
if o != nil && !IsNil(o.Temperature) {
return true
}
return false
}
// SetTemperature gets a reference to the given float32 and assigns it to the Temperature field.
func (o *ChatInferenceRequest) SetTemperature(v float32) {
o.Temperature = &v
}
// GetMaxTokens returns the MaxTokens field value if set, zero value otherwise.
func (o *ChatInferenceRequest) GetMaxTokens() int32 {
if o == nil || IsNil(o.MaxTokens) {
var ret int32
return ret
}
return *o.MaxTokens
}
// GetMaxTokensOk returns a tuple with the MaxTokens field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChatInferenceRequest) GetMaxTokensOk() (*int32, bool) {
if o == nil || IsNil(o.MaxTokens) {
return nil, false
}
return o.MaxTokens, true
}
// HasMaxTokens returns a boolean if a field has been set.
func (o *ChatInferenceRequest) HasMaxTokens() bool {
if o != nil && !IsNil(o.MaxTokens) {
return true
}
return false
}
// SetMaxTokens gets a reference to the given int32 and assigns it to the MaxTokens field.
func (o *ChatInferenceRequest) SetMaxTokens(v int32) {
o.MaxTokens = &v
}
// GetTopP returns the TopP field value if set, zero value otherwise.
func (o *ChatInferenceRequest) GetTopP() float32 {
if o == nil || IsNil(o.TopP) {
var ret float32
return ret
}
return *o.TopP
}
// GetTopPOk returns a tuple with the TopP field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChatInferenceRequest) GetTopPOk() (*float32, bool) {
if o == nil || IsNil(o.TopP) {
return nil, false
}
return o.TopP, true
}
// HasTopP returns a boolean if a field has been set.
func (o *ChatInferenceRequest) HasTopP() bool {
if o != nil && !IsNil(o.TopP) {
return true
}
return false
}
// SetTopP gets a reference to the given float32 and assigns it to the TopP field.
func (o *ChatInferenceRequest) SetTopP(v float32) {
o.TopP = &v
}
// GetStream returns the Stream field value if set, zero value otherwise.
func (o *ChatInferenceRequest) GetStream() bool {
if o == nil || IsNil(o.Stream) {
var ret bool
return ret
}
return *o.Stream
}
// GetStreamOk returns a tuple with the Stream field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChatInferenceRequest) GetStreamOk() (*bool, bool) {
if o == nil || IsNil(o.Stream) {
return nil, false
}
return o.Stream, true
}
// HasStream returns a boolean if a field has been set.
func (o *ChatInferenceRequest) HasStream() bool {
if o != nil && !IsNil(o.Stream) {
return true
}
return false
}
// SetStream gets a reference to the given bool and assigns it to the Stream field.
func (o *ChatInferenceRequest) SetStream(v bool) {
o.Stream = &v
}
// GetSystemPrompt returns the SystemPrompt field value if set, zero value otherwise.
func (o *ChatInferenceRequest) GetSystemPrompt() string {
if o == nil || IsNil(o.SystemPrompt) {
var ret string
return ret
}
return *o.SystemPrompt
}
// GetSystemPromptOk returns a tuple with the SystemPrompt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChatInferenceRequest) GetSystemPromptOk() (*string, bool) {
if o == nil || IsNil(o.SystemPrompt) {
return nil, false
}
return o.SystemPrompt, true
}
// HasSystemPrompt returns a boolean if a field has been set.
func (o *ChatInferenceRequest) HasSystemPrompt() bool {
if o != nil && !IsNil(o.SystemPrompt) {
return true
}
return false
}
// SetSystemPrompt gets a reference to the given string and assigns it to the SystemPrompt field.
func (o *ChatInferenceRequest) SetSystemPrompt(v string) {
o.SystemPrompt = &v
}
// GetStopSequences returns the StopSequences field value if set, zero value otherwise.
func (o *ChatInferenceRequest) GetStopSequences() []string {
if o == nil || IsNil(o.StopSequences) {
var ret []string
return ret
}
return o.StopSequences
}
// GetStopSequencesOk returns a tuple with the StopSequences field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChatInferenceRequest) GetStopSequencesOk() ([]string, bool) {
if o == nil || IsNil(o.StopSequences) {
return nil, false
}
return o.StopSequences, true
}
// HasStopSequences returns a boolean if a field has been set.
func (o *ChatInferenceRequest) HasStopSequences() bool {
if o != nil && !IsNil(o.StopSequences) {
return true
}
return false
}
// SetStopSequences gets a reference to the given []string and assigns it to the StopSequences field.
func (o *ChatInferenceRequest) SetStopSequences(v []string) {
o.StopSequences = v
}
// GetResponseFormat returns the ResponseFormat field value if set, zero value otherwise.
func (o *ChatInferenceRequest) GetResponseFormat() ChatInferenceRequestResponseFormat {
if o == nil || IsNil(o.ResponseFormat) {
var ret ChatInferenceRequestResponseFormat
return ret
}
return *o.ResponseFormat
}
// GetResponseFormatOk returns a tuple with the ResponseFormat field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChatInferenceRequest) GetResponseFormatOk() (*ChatInferenceRequestResponseFormat, bool) {
if o == nil || IsNil(o.ResponseFormat) {
return nil, false
}
return o.ResponseFormat, true
}
// HasResponseFormat returns a boolean if a field has been set.
func (o *ChatInferenceRequest) HasResponseFormat() bool {
if o != nil && !IsNil(o.ResponseFormat) {
return true
}
return false
}
// SetResponseFormat gets a reference to the given ChatInferenceRequestResponseFormat and assigns it to the ResponseFormat field.
func (o *ChatInferenceRequest) SetResponseFormat(v ChatInferenceRequestResponseFormat) {
o.ResponseFormat = &v
}
// GetToolConfig returns the ToolConfig field value if set, zero value otherwise.
func (o *ChatInferenceRequest) GetToolConfig() ChatInferenceRequestToolConfig {
if o == nil || IsNil(o.ToolConfig) {
var ret ChatInferenceRequestToolConfig
return ret
}
return *o.ToolConfig
}
// GetToolConfigOk returns a tuple with the ToolConfig field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChatInferenceRequest) GetToolConfigOk() (*ChatInferenceRequestToolConfig, bool) {
if o == nil || IsNil(o.ToolConfig) {
return nil, false
}
return o.ToolConfig, true
}
// HasToolConfig returns a boolean if a field has been set.
func (o *ChatInferenceRequest) HasToolConfig() bool {
if o != nil && !IsNil(o.ToolConfig) {
return true
}
return false
}
// SetToolConfig gets a reference to the given ChatInferenceRequestToolConfig and assigns it to the ToolConfig field.
func (o *ChatInferenceRequest) SetToolConfig(v ChatInferenceRequestToolConfig) {
o.ToolConfig = &v
}
// GetSessionId returns the SessionId field value if set, zero value otherwise.
func (o *ChatInferenceRequest) GetSessionId() string {
if o == nil || IsNil(o.SessionId) {
var ret string
return ret
}
return *o.SessionId
}
// GetSessionIdOk returns a tuple with the SessionId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChatInferenceRequest) GetSessionIdOk() (*string, bool) {
if o == nil || IsNil(o.SessionId) {
return nil, false
}
return o.SessionId, true
}
// HasSessionId returns a boolean if a field has been set.
func (o *ChatInferenceRequest) HasSessionId() bool {
if o != nil && !IsNil(o.SessionId) {
return true
}
return false
}
// SetSessionId gets a reference to the given string and assigns it to the SessionId field.
func (o *ChatInferenceRequest) SetSessionId(v string) {
o.SessionId = &v
}
// GetAsync returns the Async field value if set, zero value otherwise.
func (o *ChatInferenceRequest) GetAsync() bool {
if o == nil || IsNil(o.Async) {
var ret bool
return ret
}
return *o.Async
}
// GetAsyncOk returns a tuple with the Async field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChatInferenceRequest) GetAsyncOk() (*bool, bool) {
if o == nil || IsNil(o.Async) {
return nil, false
}
return o.Async, true
}
// HasAsync returns a boolean if a field has been set.
func (o *ChatInferenceRequest) HasAsync() bool {
if o != nil && !IsNil(o.Async) {
return true
}
return false
}
// SetAsync gets a reference to the given bool and assigns it to the Async field.
func (o *ChatInferenceRequest) SetAsync(v bool) {
o.Async = &v
}
// GetAllowedTools returns the AllowedTools field value if set, zero value otherwise.
func (o *ChatInferenceRequest) GetAllowedTools() []string {
if o == nil || IsNil(o.AllowedTools) {
var ret []string
return ret
}
return o.AllowedTools
}
// GetAllowedToolsOk returns a tuple with the AllowedTools field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChatInferenceRequest) GetAllowedToolsOk() ([]string, bool) {
if o == nil || IsNil(o.AllowedTools) {
return nil, false
}
return o.AllowedTools, true
}
// HasAllowedTools returns a boolean if a field has been set.
func (o *ChatInferenceRequest) HasAllowedTools() bool {
if o != nil && !IsNil(o.AllowedTools) {
return true
}
return false
}
// SetAllowedTools gets a reference to the given []string and assigns it to the AllowedTools field.
func (o *ChatInferenceRequest) SetAllowedTools(v []string) {
o.AllowedTools = v
}
// GetGuardrails returns the Guardrails field value if set, zero value otherwise.
func (o *ChatInferenceRequest) GetGuardrails() ChatInferenceRequestGuardrails {
if o == nil || IsNil(o.Guardrails) {
var ret ChatInferenceRequestGuardrails
return ret
}
return *o.Guardrails
}
// GetGuardrailsOk returns a tuple with the Guardrails field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChatInferenceRequest) GetGuardrailsOk() (*ChatInferenceRequestGuardrails, bool) {
if o == nil || IsNil(o.Guardrails) {
return nil, false
}
return o.Guardrails, true
}
// HasGuardrails returns a boolean if a field has been set.
func (o *ChatInferenceRequest) HasGuardrails() bool {
if o != nil && !IsNil(o.Guardrails) {
return true
}
return false
}
// SetGuardrails gets a reference to the given ChatInferenceRequestGuardrails and assigns it to the Guardrails field.
func (o *ChatInferenceRequest) SetGuardrails(v ChatInferenceRequestGuardrails) {
o.Guardrails = &v
}
// GetLongContext returns the LongContext field value if set, zero value otherwise.
func (o *ChatInferenceRequest) GetLongContext() bool {
if o == nil || IsNil(o.LongContext) {
var ret bool
return ret
}
return *o.LongContext
}
// GetLongContextOk returns a tuple with the LongContext field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChatInferenceRequest) GetLongContextOk() (*bool, bool) {
if o == nil || IsNil(o.LongContext) {
return nil, false
}
return o.LongContext, true
}
// HasLongContext returns a boolean if a field has been set.
func (o *ChatInferenceRequest) HasLongContext() bool {
if o != nil && !IsNil(o.LongContext) {
return true
}
return false
}
// SetLongContext gets a reference to the given bool and assigns it to the LongContext field.
func (o *ChatInferenceRequest) SetLongContext(v bool) {
o.LongContext = &v
}
func (o ChatInferenceRequest) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o ChatInferenceRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["messages"] = o.Messages
toSerialize["modelId"] = o.ModelId
if !IsNil(o.Temperature) {
toSerialize["temperature"] = o.Temperature
}
if !IsNil(o.MaxTokens) {
toSerialize["maxTokens"] = o.MaxTokens
}
if !IsNil(o.TopP) {
toSerialize["topP"] = o.TopP
}
if !IsNil(o.Stream) {
toSerialize["stream"] = o.Stream
}
if !IsNil(o.SystemPrompt) {
toSerialize["systemPrompt"] = o.SystemPrompt
}
if !IsNil(o.StopSequences) {
toSerialize["stopSequences"] = o.StopSequences
}
if !IsNil(o.ResponseFormat) {
toSerialize["responseFormat"] = o.ResponseFormat
}
if !IsNil(o.ToolConfig) {
toSerialize["toolConfig"] = o.ToolConfig
}
if !IsNil(o.SessionId) {
toSerialize["sessionId"] = o.SessionId
}
if !IsNil(o.Async) {
toSerialize["async"] = o.Async
}
if !IsNil(o.AllowedTools) {
toSerialize["allowedTools"] = o.AllowedTools
}
if !IsNil(o.Guardrails) {
toSerialize["guardrails"] = o.Guardrails
}
if !IsNil(o.LongContext) {
toSerialize["longContext"] = o.LongContext
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return toSerialize, nil
}
func (o *ChatInferenceRequest) UnmarshalJSON(data []byte) (err error) {
// This validates that all required properties are included in the JSON object
// by unmarshalling the object into a generic map with string keys and checking
// that every required field exists as a key in the generic map.
requiredProperties := []string{
"messages",
"modelId",
}
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
return err;
}
for _, requiredProperty := range(requiredProperties) {
if _, exists := allProperties[requiredProperty]; !exists {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
varChatInferenceRequest := _ChatInferenceRequest{}
err = json.Unmarshal(data, &varChatInferenceRequest)
if err != nil {
return err
}
*o = ChatInferenceRequest(varChatInferenceRequest)
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "messages")
delete(additionalProperties, "modelId")
delete(additionalProperties, "temperature")
delete(additionalProperties, "maxTokens")
delete(additionalProperties, "topP")
delete(additionalProperties, "stream")
delete(additionalProperties, "systemPrompt")
delete(additionalProperties, "stopSequences")
delete(additionalProperties, "responseFormat")
delete(additionalProperties, "toolConfig")
delete(additionalProperties, "sessionId")
delete(additionalProperties, "async")
delete(additionalProperties, "allowedTools")
delete(additionalProperties, "guardrails")
delete(additionalProperties, "longContext")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullableChatInferenceRequest struct {
value *ChatInferenceRequest
isSet bool
}
func (v NullableChatInferenceRequest) Get() *ChatInferenceRequest {
return v.value
}
func (v *NullableChatInferenceRequest) Set(val *ChatInferenceRequest) {
v.value = val
v.isSet = true
}
func (v NullableChatInferenceRequest) IsSet() bool {
return v.isSet
}
func (v *NullableChatInferenceRequest) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableChatInferenceRequest(val *ChatInferenceRequest) *NullableChatInferenceRequest {
return &NullableChatInferenceRequest{value: val, isSet: true}
}
func (v NullableChatInferenceRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableChatInferenceRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}