288 of hanzoai/ai's 294 operations now declare a response, against 1 before. GET /v1/models, POST /v1/chat/completions, /v1/embeddings, /v1/messages — every address a client actually calls — used to reach this client untyped, because cloud's relay carried an operation's sentence and dropped the shapes it named. It carries both now. Fleet-wide the document goes from 69% to 81% of operations declaring what comes back, which is where the ~208 new models here come from.
4.2 KiB
AiResponse
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| Code | Pointer to string | [optional] | |
| Data | Pointer to interface{} | [optional] | |
| Data2 | Pointer to interface{} | [optional] | |
| Msg | Pointer to string | [optional] | |
| Status | Pointer to string | [optional] |
Methods
NewAiResponse
func NewAiResponse() *AiResponse
NewAiResponse instantiates a new AiResponse 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
NewAiResponseWithDefaults
func NewAiResponseWithDefaults() *AiResponse
NewAiResponseWithDefaults instantiates a new AiResponse 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
GetCode
func (o *AiResponse) GetCode() string
GetCode returns the Code field if non-nil, zero value otherwise.
GetCodeOk
func (o *AiResponse) GetCodeOk() (*string, bool)
GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetCode
func (o *AiResponse) SetCode(v string)
SetCode sets Code field to given value.
HasCode
func (o *AiResponse) HasCode() bool
HasCode returns a boolean if a field has been set.
GetData
func (o *AiResponse) GetData() interface{}
GetData returns the Data field if non-nil, zero value otherwise.
GetDataOk
func (o *AiResponse) GetDataOk() (*interface{}, bool)
GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetData
func (o *AiResponse) SetData(v interface{})
SetData sets Data field to given value.
HasData
func (o *AiResponse) HasData() bool
HasData returns a boolean if a field has been set.
SetDataNil
func (o *AiResponse) SetDataNil(b bool)
SetDataNil sets the value for Data to be an explicit nil
UnsetData
func (o *AiResponse) UnsetData()
UnsetData ensures that no value is present for Data, not even an explicit nil
GetData2
func (o *AiResponse) GetData2() interface{}
GetData2 returns the Data2 field if non-nil, zero value otherwise.
GetData2Ok
func (o *AiResponse) GetData2Ok() (*interface{}, bool)
GetData2Ok returns a tuple with the Data2 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetData2
func (o *AiResponse) SetData2(v interface{})
SetData2 sets Data2 field to given value.
HasData2
func (o *AiResponse) HasData2() bool
HasData2 returns a boolean if a field has been set.
SetData2Nil
func (o *AiResponse) SetData2Nil(b bool)
SetData2Nil sets the value for Data2 to be an explicit nil
UnsetData2
func (o *AiResponse) UnsetData2()
UnsetData2 ensures that no value is present for Data2, not even an explicit nil
GetMsg
func (o *AiResponse) GetMsg() string
GetMsg returns the Msg field if non-nil, zero value otherwise.
GetMsgOk
func (o *AiResponse) GetMsgOk() (*string, bool)
GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetMsg
func (o *AiResponse) SetMsg(v string)
SetMsg sets Msg field to given value.
HasMsg
func (o *AiResponse) HasMsg() bool
HasMsg returns a boolean if a field has been set.
GetStatus
func (o *AiResponse) GetStatus() string
GetStatus returns the Status field if non-nil, zero value otherwise.
GetStatusOk
func (o *AiResponse) GetStatusOk() (*string, bool)
GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetStatus
func (o *AiResponse) SetStatus(v string)
SetStatus sets Status field to given value.
HasStatus
func (o *AiResponse) HasStatus() bool
HasStatus returns a boolean if a field has been set.