Documentation ¶
Index ¶
- Variables
- func CacheExpires(r *http.Response) time.Time
- func IsNil(i interface{}) bool
- func PtrBool(v bool) *bool
- func PtrFloat32(v float32) *float32
- func PtrFloat64(v float64) *float64
- func PtrInt(v int) *int
- func PtrInt32(v int32) *int32
- func PtrInt64(v int64) *int64
- func PtrString(v string) *string
- func PtrTime(v time.Time) *time.Time
- type APIClient
- type APIKey
- type APIResponse
- type ApiCancelFineTuneRequest
- type ApiCreateAnswerRequest
- type ApiCreateChatCompletionRequest
- type ApiCreateClassificationRequest
- type ApiCreateCompletionRequest
- type ApiCreateEditRequest
- type ApiCreateEmbeddingRequest
- type ApiCreateFileRequest
- type ApiCreateFineTuneRequest
- type ApiCreateImageEditRequest
- func (r ApiCreateImageEditRequest) Execute() (*ImagesResponse, *http.Response, error)
- func (r ApiCreateImageEditRequest) Image(image *os.File) ApiCreateImageEditRequest
- func (r ApiCreateImageEditRequest) Mask(mask *os.File) ApiCreateImageEditRequest
- func (r ApiCreateImageEditRequest) N(n int32) ApiCreateImageEditRequest
- func (r ApiCreateImageEditRequest) Prompt(prompt string) ApiCreateImageEditRequest
- func (r ApiCreateImageEditRequest) ResponseFormat(responseFormat string) ApiCreateImageEditRequest
- func (r ApiCreateImageEditRequest) Size(size string) ApiCreateImageEditRequest
- func (r ApiCreateImageEditRequest) User(user string) ApiCreateImageEditRequest
- type ApiCreateImageRequest
- type ApiCreateImageVariationRequest
- func (r ApiCreateImageVariationRequest) Execute() (*ImagesResponse, *http.Response, error)
- func (r ApiCreateImageVariationRequest) Image(image *os.File) ApiCreateImageVariationRequest
- func (r ApiCreateImageVariationRequest) N(n int32) ApiCreateImageVariationRequest
- func (r ApiCreateImageVariationRequest) ResponseFormat(responseFormat string) ApiCreateImageVariationRequest
- func (r ApiCreateImageVariationRequest) Size(size string) ApiCreateImageVariationRequest
- func (r ApiCreateImageVariationRequest) User(user string) ApiCreateImageVariationRequest
- type ApiCreateModerationRequest
- type ApiCreateSearchRequest
- type ApiCreateTranscriptionRequest
- func (r ApiCreateTranscriptionRequest) Execute() (*CreateTranscriptionResponse, *http.Response, error)
- func (r ApiCreateTranscriptionRequest) File(file *os.File) ApiCreateTranscriptionRequest
- func (r ApiCreateTranscriptionRequest) Language(language string) ApiCreateTranscriptionRequest
- func (r ApiCreateTranscriptionRequest) Model(model string) ApiCreateTranscriptionRequest
- func (r ApiCreateTranscriptionRequest) Prompt(prompt string) ApiCreateTranscriptionRequest
- func (r ApiCreateTranscriptionRequest) ResponseFormat(responseFormat string) ApiCreateTranscriptionRequest
- func (r ApiCreateTranscriptionRequest) Temperature(temperature float32) ApiCreateTranscriptionRequest
- type ApiCreateTranslationRequest
- func (r ApiCreateTranslationRequest) Execute() (*CreateTranslationResponse, *http.Response, error)
- func (r ApiCreateTranslationRequest) File(file *os.File) ApiCreateTranslationRequest
- func (r ApiCreateTranslationRequest) Model(model string) ApiCreateTranslationRequest
- func (r ApiCreateTranslationRequest) Prompt(prompt string) ApiCreateTranslationRequest
- func (r ApiCreateTranslationRequest) ResponseFormat(responseFormat string) ApiCreateTranslationRequest
- func (r ApiCreateTranslationRequest) Temperature(temperature float32) ApiCreateTranslationRequest
- type ApiDeleteFileRequest
- type ApiDeleteModelRequest
- type ApiDownloadFileRequest
- type ApiListEnginesRequest
- type ApiListFilesRequest
- type ApiListFineTuneEventsRequest
- type ApiListFineTunesRequest
- type ApiListModelsRequest
- type ApiRetrieveEngineRequest
- type ApiRetrieveFileRequest
- type ApiRetrieveFineTuneRequest
- type ApiRetrieveModelRequest
- type BasicAuth
- type ChatCompletionRequestMessage
- func (o *ChatCompletionRequestMessage) GetContent() string
- func (o *ChatCompletionRequestMessage) GetContentOk() (*string, bool)
- func (o *ChatCompletionRequestMessage) GetName() string
- func (o *ChatCompletionRequestMessage) GetNameOk() (*string, bool)
- func (o *ChatCompletionRequestMessage) GetRole() string
- func (o *ChatCompletionRequestMessage) GetRoleOk() (*string, bool)
- func (o *ChatCompletionRequestMessage) HasName() bool
- func (o ChatCompletionRequestMessage) MarshalJSON() ([]byte, error)
- func (o *ChatCompletionRequestMessage) SetContent(v string)
- func (o *ChatCompletionRequestMessage) SetName(v string)
- func (o *ChatCompletionRequestMessage) SetRole(v string)
- func (o ChatCompletionRequestMessage) ToMap() (map[string]interface{}, error)
- type ChatCompletionResponseMessage
- func (o *ChatCompletionResponseMessage) GetContent() string
- func (o *ChatCompletionResponseMessage) GetContentOk() (*string, bool)
- func (o *ChatCompletionResponseMessage) GetRole() string
- func (o *ChatCompletionResponseMessage) GetRoleOk() (*string, bool)
- func (o ChatCompletionResponseMessage) MarshalJSON() ([]byte, error)
- func (o *ChatCompletionResponseMessage) SetContent(v string)
- func (o *ChatCompletionResponseMessage) SetRole(v string)
- func (o ChatCompletionResponseMessage) ToMap() (map[string]interface{}, error)
- type Configuration
- type CreateAnswerRequest
- func (o *CreateAnswerRequest) GetDocuments() []string
- func (o *CreateAnswerRequest) GetDocumentsOk() ([]string, bool)
- func (o *CreateAnswerRequest) GetExamples() [][]string
- func (o *CreateAnswerRequest) GetExamplesContext() string
- func (o *CreateAnswerRequest) GetExamplesContextOk() (*string, bool)
- func (o *CreateAnswerRequest) GetExamplesOk() ([][]string, bool)
- func (o *CreateAnswerRequest) GetExpand() []interface{}
- func (o *CreateAnswerRequest) GetExpandOk() ([]interface{}, bool)
- func (o *CreateAnswerRequest) GetFile() string
- func (o *CreateAnswerRequest) GetFileOk() (*string, bool)
- func (o *CreateAnswerRequest) GetLogitBias() map[string]interface{}
- func (o *CreateAnswerRequest) GetLogitBiasOk() (map[string]interface{}, bool)
- func (o *CreateAnswerRequest) GetLogprobs() int32
- func (o *CreateAnswerRequest) GetLogprobsOk() (*int32, bool)
- func (o *CreateAnswerRequest) GetMaxRerank() int32
- func (o *CreateAnswerRequest) GetMaxRerankOk() (*int32, bool)
- func (o *CreateAnswerRequest) GetMaxTokens() int32
- func (o *CreateAnswerRequest) GetMaxTokensOk() (*int32, bool)
- func (o *CreateAnswerRequest) GetModel() string
- func (o *CreateAnswerRequest) GetModelOk() (*string, bool)
- func (o *CreateAnswerRequest) GetN() int32
- func (o *CreateAnswerRequest) GetNOk() (*int32, bool)
- func (o *CreateAnswerRequest) GetQuestion() string
- func (o *CreateAnswerRequest) GetQuestionOk() (*string, bool)
- func (o *CreateAnswerRequest) GetReturnMetadata() bool
- func (o *CreateAnswerRequest) GetReturnMetadataOk() (*bool, bool)
- func (o *CreateAnswerRequest) GetReturnPrompt() bool
- func (o *CreateAnswerRequest) GetReturnPromptOk() (*bool, bool)
- func (o *CreateAnswerRequest) GetSearchModel() string
- func (o *CreateAnswerRequest) GetSearchModelOk() (*string, bool)
- func (o *CreateAnswerRequest) GetStop() CreateAnswerRequestStop
- func (o *CreateAnswerRequest) GetStopOk() (*CreateAnswerRequestStop, bool)
- func (o *CreateAnswerRequest) GetTemperature() float32
- func (o *CreateAnswerRequest) GetTemperatureOk() (*float32, bool)
- func (o *CreateAnswerRequest) GetUser() string
- func (o *CreateAnswerRequest) GetUserOk() (*string, bool)
- func (o *CreateAnswerRequest) HasDocuments() bool
- func (o *CreateAnswerRequest) HasExpand() bool
- func (o *CreateAnswerRequest) HasFile() bool
- func (o *CreateAnswerRequest) HasLogitBias() bool
- func (o *CreateAnswerRequest) HasLogprobs() bool
- func (o *CreateAnswerRequest) HasMaxRerank() bool
- func (o *CreateAnswerRequest) HasMaxTokens() bool
- func (o *CreateAnswerRequest) HasN() bool
- func (o *CreateAnswerRequest) HasReturnMetadata() bool
- func (o *CreateAnswerRequest) HasReturnPrompt() bool
- func (o *CreateAnswerRequest) HasSearchModel() bool
- func (o *CreateAnswerRequest) HasStop() bool
- func (o *CreateAnswerRequest) HasTemperature() bool
- func (o *CreateAnswerRequest) HasUser() bool
- func (o CreateAnswerRequest) MarshalJSON() ([]byte, error)
- func (o *CreateAnswerRequest) SetDocuments(v []string)
- func (o *CreateAnswerRequest) SetExamples(v [][]string)
- func (o *CreateAnswerRequest) SetExamplesContext(v string)
- func (o *CreateAnswerRequest) SetExpand(v []interface{})
- func (o *CreateAnswerRequest) SetFile(v string)
- func (o *CreateAnswerRequest) SetFileNil()
- func (o *CreateAnswerRequest) SetLogitBias(v map[string]interface{})
- func (o *CreateAnswerRequest) SetLogprobs(v int32)
- func (o *CreateAnswerRequest) SetLogprobsNil()
- func (o *CreateAnswerRequest) SetMaxRerank(v int32)
- func (o *CreateAnswerRequest) SetMaxRerankNil()
- func (o *CreateAnswerRequest) SetMaxTokens(v int32)
- func (o *CreateAnswerRequest) SetMaxTokensNil()
- func (o *CreateAnswerRequest) SetModel(v string)
- func (o *CreateAnswerRequest) SetN(v int32)
- func (o *CreateAnswerRequest) SetNNil()
- func (o *CreateAnswerRequest) SetQuestion(v string)
- func (o *CreateAnswerRequest) SetReturnMetadata(v bool)
- func (o *CreateAnswerRequest) SetReturnMetadataNil()
- func (o *CreateAnswerRequest) SetReturnPrompt(v bool)
- func (o *CreateAnswerRequest) SetReturnPromptNil()
- func (o *CreateAnswerRequest) SetSearchModel(v string)
- func (o *CreateAnswerRequest) SetSearchModelNil()
- func (o *CreateAnswerRequest) SetStop(v CreateAnswerRequestStop)
- func (o *CreateAnswerRequest) SetStopNil()
- func (o *CreateAnswerRequest) SetTemperature(v float32)
- func (o *CreateAnswerRequest) SetTemperatureNil()
- func (o *CreateAnswerRequest) SetUser(v string)
- func (o CreateAnswerRequest) ToMap() (map[string]interface{}, error)
- func (o *CreateAnswerRequest) UnsetFile()
- func (o *CreateAnswerRequest) UnsetLogprobs()
- func (o *CreateAnswerRequest) UnsetMaxRerank()
- func (o *CreateAnswerRequest) UnsetMaxTokens()
- func (o *CreateAnswerRequest) UnsetN()
- func (o *CreateAnswerRequest) UnsetReturnMetadata()
- func (o *CreateAnswerRequest) UnsetReturnPrompt()
- func (o *CreateAnswerRequest) UnsetSearchModel()
- func (o *CreateAnswerRequest) UnsetStop()
- func (o *CreateAnswerRequest) UnsetTemperature()
- type CreateAnswerRequestStop
- type CreateAnswerResponse
- func (o *CreateAnswerResponse) GetAnswers() []string
- func (o *CreateAnswerResponse) GetAnswersOk() ([]string, bool)
- func (o *CreateAnswerResponse) GetCompletion() string
- func (o *CreateAnswerResponse) GetCompletionOk() (*string, bool)
- func (o *CreateAnswerResponse) GetModel() string
- func (o *CreateAnswerResponse) GetModelOk() (*string, bool)
- func (o *CreateAnswerResponse) GetObject() string
- func (o *CreateAnswerResponse) GetObjectOk() (*string, bool)
- func (o *CreateAnswerResponse) GetSearchModel() string
- func (o *CreateAnswerResponse) GetSearchModelOk() (*string, bool)
- func (o *CreateAnswerResponse) GetSelectedDocuments() []CreateAnswerResponseSelectedDocumentsInner
- func (o *CreateAnswerResponse) GetSelectedDocumentsOk() ([]CreateAnswerResponseSelectedDocumentsInner, bool)
- func (o *CreateAnswerResponse) HasAnswers() bool
- func (o *CreateAnswerResponse) HasCompletion() bool
- func (o *CreateAnswerResponse) HasModel() bool
- func (o *CreateAnswerResponse) HasObject() bool
- func (o *CreateAnswerResponse) HasSearchModel() bool
- func (o *CreateAnswerResponse) HasSelectedDocuments() bool
- func (o CreateAnswerResponse) MarshalJSON() ([]byte, error)
- func (o *CreateAnswerResponse) SetAnswers(v []string)
- func (o *CreateAnswerResponse) SetCompletion(v string)
- func (o *CreateAnswerResponse) SetModel(v string)
- func (o *CreateAnswerResponse) SetObject(v string)
- func (o *CreateAnswerResponse) SetSearchModel(v string)
- func (o *CreateAnswerResponse) SetSelectedDocuments(v []CreateAnswerResponseSelectedDocumentsInner)
- func (o CreateAnswerResponse) ToMap() (map[string]interface{}, error)
- type CreateAnswerResponseSelectedDocumentsInner
- func (o *CreateAnswerResponseSelectedDocumentsInner) GetDocument() int32
- func (o *CreateAnswerResponseSelectedDocumentsInner) GetDocumentOk() (*int32, bool)
- func (o *CreateAnswerResponseSelectedDocumentsInner) GetText() string
- func (o *CreateAnswerResponseSelectedDocumentsInner) GetTextOk() (*string, bool)
- func (o *CreateAnswerResponseSelectedDocumentsInner) HasDocument() bool
- func (o *CreateAnswerResponseSelectedDocumentsInner) HasText() bool
- func (o CreateAnswerResponseSelectedDocumentsInner) MarshalJSON() ([]byte, error)
- func (o *CreateAnswerResponseSelectedDocumentsInner) SetDocument(v int32)
- func (o *CreateAnswerResponseSelectedDocumentsInner) SetText(v string)
- func (o CreateAnswerResponseSelectedDocumentsInner) ToMap() (map[string]interface{}, error)
- type CreateChatCompletionRequest
- func (o *CreateChatCompletionRequest) GetFrequencyPenalty() float32
- func (o *CreateChatCompletionRequest) GetFrequencyPenaltyOk() (*float32, bool)
- func (o *CreateChatCompletionRequest) GetLogitBias() map[string]interface{}
- func (o *CreateChatCompletionRequest) GetLogitBiasOk() (map[string]interface{}, bool)
- func (o *CreateChatCompletionRequest) GetMaxTokens() int32
- func (o *CreateChatCompletionRequest) GetMaxTokensOk() (*int32, bool)
- func (o *CreateChatCompletionRequest) GetMessages() []ChatCompletionRequestMessage
- func (o *CreateChatCompletionRequest) GetMessagesOk() ([]ChatCompletionRequestMessage, bool)
- func (o *CreateChatCompletionRequest) GetModel() string
- func (o *CreateChatCompletionRequest) GetModelOk() (*string, bool)
- func (o *CreateChatCompletionRequest) GetN() int32
- func (o *CreateChatCompletionRequest) GetNOk() (*int32, bool)
- func (o *CreateChatCompletionRequest) GetPresencePenalty() float32
- func (o *CreateChatCompletionRequest) GetPresencePenaltyOk() (*float32, bool)
- func (o *CreateChatCompletionRequest) GetStop() CreateChatCompletionRequestStop
- func (o *CreateChatCompletionRequest) GetStopOk() (*CreateChatCompletionRequestStop, bool)
- func (o *CreateChatCompletionRequest) GetStream() bool
- func (o *CreateChatCompletionRequest) GetStreamOk() (*bool, bool)
- func (o *CreateChatCompletionRequest) GetTemperature() float32
- func (o *CreateChatCompletionRequest) GetTemperatureOk() (*float32, bool)
- func (o *CreateChatCompletionRequest) GetTopP() float32
- func (o *CreateChatCompletionRequest) GetTopPOk() (*float32, bool)
- func (o *CreateChatCompletionRequest) GetUser() string
- func (o *CreateChatCompletionRequest) GetUserOk() (*string, bool)
- func (o *CreateChatCompletionRequest) HasFrequencyPenalty() bool
- func (o *CreateChatCompletionRequest) HasLogitBias() bool
- func (o *CreateChatCompletionRequest) HasMaxTokens() bool
- func (o *CreateChatCompletionRequest) HasN() bool
- func (o *CreateChatCompletionRequest) HasPresencePenalty() bool
- func (o *CreateChatCompletionRequest) HasStop() bool
- func (o *CreateChatCompletionRequest) HasStream() bool
- func (o *CreateChatCompletionRequest) HasTemperature() bool
- func (o *CreateChatCompletionRequest) HasTopP() bool
- func (o *CreateChatCompletionRequest) HasUser() bool
- func (o CreateChatCompletionRequest) MarshalJSON() ([]byte, error)
- func (o *CreateChatCompletionRequest) SetFrequencyPenalty(v float32)
- func (o *CreateChatCompletionRequest) SetFrequencyPenaltyNil()
- func (o *CreateChatCompletionRequest) SetLogitBias(v map[string]interface{})
- func (o *CreateChatCompletionRequest) SetMaxTokens(v int32)
- func (o *CreateChatCompletionRequest) SetMessages(v []ChatCompletionRequestMessage)
- func (o *CreateChatCompletionRequest) SetModel(v string)
- func (o *CreateChatCompletionRequest) SetN(v int32)
- func (o *CreateChatCompletionRequest) SetNNil()
- func (o *CreateChatCompletionRequest) SetPresencePenalty(v float32)
- func (o *CreateChatCompletionRequest) SetPresencePenaltyNil()
- func (o *CreateChatCompletionRequest) SetStop(v CreateChatCompletionRequestStop)
- func (o *CreateChatCompletionRequest) SetStream(v bool)
- func (o *CreateChatCompletionRequest) SetStreamNil()
- func (o *CreateChatCompletionRequest) SetTemperature(v float32)
- func (o *CreateChatCompletionRequest) SetTemperatureNil()
- func (o *CreateChatCompletionRequest) SetTopP(v float32)
- func (o *CreateChatCompletionRequest) SetTopPNil()
- func (o *CreateChatCompletionRequest) SetUser(v string)
- func (o CreateChatCompletionRequest) ToMap() (map[string]interface{}, error)
- func (o *CreateChatCompletionRequest) UnsetFrequencyPenalty()
- func (o *CreateChatCompletionRequest) UnsetN()
- func (o *CreateChatCompletionRequest) UnsetPresencePenalty()
- func (o *CreateChatCompletionRequest) UnsetStream()
- func (o *CreateChatCompletionRequest) UnsetTemperature()
- func (o *CreateChatCompletionRequest) UnsetTopP()
- type CreateChatCompletionRequestStop
- type CreateChatCompletionResponse
- func (o *CreateChatCompletionResponse) GetChoices() []CreateChatCompletionResponseChoicesInner
- func (o *CreateChatCompletionResponse) GetChoicesOk() ([]CreateChatCompletionResponseChoicesInner, bool)
- func (o *CreateChatCompletionResponse) GetCreated() int32
- func (o *CreateChatCompletionResponse) GetCreatedOk() (*int32, bool)
- func (o *CreateChatCompletionResponse) GetId() string
- func (o *CreateChatCompletionResponse) GetIdOk() (*string, bool)
- func (o *CreateChatCompletionResponse) GetModel() string
- func (o *CreateChatCompletionResponse) GetModelOk() (*string, bool)
- func (o *CreateChatCompletionResponse) GetObject() string
- func (o *CreateChatCompletionResponse) GetObjectOk() (*string, bool)
- func (o *CreateChatCompletionResponse) GetUsage() CreateCompletionResponseUsage
- func (o *CreateChatCompletionResponse) GetUsageOk() (*CreateCompletionResponseUsage, bool)
- func (o *CreateChatCompletionResponse) HasUsage() bool
- func (o CreateChatCompletionResponse) MarshalJSON() ([]byte, error)
- func (o *CreateChatCompletionResponse) SetChoices(v []CreateChatCompletionResponseChoicesInner)
- func (o *CreateChatCompletionResponse) SetCreated(v int32)
- func (o *CreateChatCompletionResponse) SetId(v string)
- func (o *CreateChatCompletionResponse) SetModel(v string)
- func (o *CreateChatCompletionResponse) SetObject(v string)
- func (o *CreateChatCompletionResponse) SetUsage(v CreateCompletionResponseUsage)
- func (o CreateChatCompletionResponse) ToMap() (map[string]interface{}, error)
- type CreateChatCompletionResponseChoicesInner
- func (o *CreateChatCompletionResponseChoicesInner) GetFinishReason() string
- func (o *CreateChatCompletionResponseChoicesInner) GetFinishReasonOk() (*string, bool)
- func (o *CreateChatCompletionResponseChoicesInner) GetIndex() int32
- func (o *CreateChatCompletionResponseChoicesInner) GetIndexOk() (*int32, bool)
- func (o *CreateChatCompletionResponseChoicesInner) GetMessage() ChatCompletionResponseMessage
- func (o *CreateChatCompletionResponseChoicesInner) GetMessageOk() (*ChatCompletionResponseMessage, bool)
- func (o *CreateChatCompletionResponseChoicesInner) HasFinishReason() bool
- func (o *CreateChatCompletionResponseChoicesInner) HasIndex() bool
- func (o *CreateChatCompletionResponseChoicesInner) HasMessage() bool
- func (o CreateChatCompletionResponseChoicesInner) MarshalJSON() ([]byte, error)
- func (o *CreateChatCompletionResponseChoicesInner) SetFinishReason(v string)
- func (o *CreateChatCompletionResponseChoicesInner) SetIndex(v int32)
- func (o *CreateChatCompletionResponseChoicesInner) SetMessage(v ChatCompletionResponseMessage)
- func (o CreateChatCompletionResponseChoicesInner) ToMap() (map[string]interface{}, error)
- type CreateClassificationRequest
- func (o *CreateClassificationRequest) GetExamples() [][]string
- func (o *CreateClassificationRequest) GetExamplesOk() ([][]string, bool)
- func (o *CreateClassificationRequest) GetExpand() []interface{}
- func (o *CreateClassificationRequest) GetExpandOk() ([]interface{}, bool)
- func (o *CreateClassificationRequest) GetFile() string
- func (o *CreateClassificationRequest) GetFileOk() (*string, bool)
- func (o *CreateClassificationRequest) GetLabels() []string
- func (o *CreateClassificationRequest) GetLabelsOk() ([]string, bool)
- func (o *CreateClassificationRequest) GetLogitBias() map[string]interface{}
- func (o *CreateClassificationRequest) GetLogitBiasOk() (map[string]interface{}, bool)
- func (o *CreateClassificationRequest) GetLogprobs() int32
- func (o *CreateClassificationRequest) GetLogprobsOk() (*int32, bool)
- func (o *CreateClassificationRequest) GetMaxExamples() int32
- func (o *CreateClassificationRequest) GetMaxExamplesOk() (*int32, bool)
- func (o *CreateClassificationRequest) GetModel() string
- func (o *CreateClassificationRequest) GetModelOk() (*string, bool)
- func (o *CreateClassificationRequest) GetQuery() string
- func (o *CreateClassificationRequest) GetQueryOk() (*string, bool)
- func (o *CreateClassificationRequest) GetReturnMetadata() bool
- func (o *CreateClassificationRequest) GetReturnMetadataOk() (*bool, bool)
- func (o *CreateClassificationRequest) GetReturnPrompt() bool
- func (o *CreateClassificationRequest) GetReturnPromptOk() (*bool, bool)
- func (o *CreateClassificationRequest) GetSearchModel() string
- func (o *CreateClassificationRequest) GetSearchModelOk() (*string, bool)
- func (o *CreateClassificationRequest) GetTemperature() float32
- func (o *CreateClassificationRequest) GetTemperatureOk() (*float32, bool)
- func (o *CreateClassificationRequest) GetUser() string
- func (o *CreateClassificationRequest) GetUserOk() (*string, bool)
- func (o *CreateClassificationRequest) HasExamples() bool
- func (o *CreateClassificationRequest) HasExpand() bool
- func (o *CreateClassificationRequest) HasFile() bool
- func (o *CreateClassificationRequest) HasLabels() bool
- func (o *CreateClassificationRequest) HasLogitBias() bool
- func (o *CreateClassificationRequest) HasLogprobs() bool
- func (o *CreateClassificationRequest) HasMaxExamples() bool
- func (o *CreateClassificationRequest) HasReturnMetadata() bool
- func (o *CreateClassificationRequest) HasReturnPrompt() bool
- func (o *CreateClassificationRequest) HasSearchModel() bool
- func (o *CreateClassificationRequest) HasTemperature() bool
- func (o *CreateClassificationRequest) HasUser() bool
- func (o CreateClassificationRequest) MarshalJSON() ([]byte, error)
- func (o *CreateClassificationRequest) SetExamples(v [][]string)
- func (o *CreateClassificationRequest) SetExpand(v []interface{})
- func (o *CreateClassificationRequest) SetFile(v string)
- func (o *CreateClassificationRequest) SetFileNil()
- func (o *CreateClassificationRequest) SetLabels(v []string)
- func (o *CreateClassificationRequest) SetLogitBias(v map[string]interface{})
- func (o *CreateClassificationRequest) SetLogprobs(v int32)
- func (o *CreateClassificationRequest) SetLogprobsNil()
- func (o *CreateClassificationRequest) SetMaxExamples(v int32)
- func (o *CreateClassificationRequest) SetMaxExamplesNil()
- func (o *CreateClassificationRequest) SetModel(v string)
- func (o *CreateClassificationRequest) SetQuery(v string)
- func (o *CreateClassificationRequest) SetReturnMetadata(v bool)
- func (o *CreateClassificationRequest) SetReturnMetadataNil()
- func (o *CreateClassificationRequest) SetReturnPrompt(v bool)
- func (o *CreateClassificationRequest) SetReturnPromptNil()
- func (o *CreateClassificationRequest) SetSearchModel(v string)
- func (o *CreateClassificationRequest) SetSearchModelNil()
- func (o *CreateClassificationRequest) SetTemperature(v float32)
- func (o *CreateClassificationRequest) SetTemperatureNil()
- func (o *CreateClassificationRequest) SetUser(v string)
- func (o CreateClassificationRequest) ToMap() (map[string]interface{}, error)
- func (o *CreateClassificationRequest) UnsetFile()
- func (o *CreateClassificationRequest) UnsetLogprobs()
- func (o *CreateClassificationRequest) UnsetMaxExamples()
- func (o *CreateClassificationRequest) UnsetReturnMetadata()
- func (o *CreateClassificationRequest) UnsetReturnPrompt()
- func (o *CreateClassificationRequest) UnsetSearchModel()
- func (o *CreateClassificationRequest) UnsetTemperature()
- type CreateClassificationResponse
- func (o *CreateClassificationResponse) GetCompletion() string
- func (o *CreateClassificationResponse) GetCompletionOk() (*string, bool)
- func (o *CreateClassificationResponse) GetLabel() string
- func (o *CreateClassificationResponse) GetLabelOk() (*string, bool)
- func (o *CreateClassificationResponse) GetModel() string
- func (o *CreateClassificationResponse) GetModelOk() (*string, bool)
- func (o *CreateClassificationResponse) GetObject() string
- func (o *CreateClassificationResponse) GetObjectOk() (*string, bool)
- func (o *CreateClassificationResponse) GetSearchModel() string
- func (o *CreateClassificationResponse) GetSearchModelOk() (*string, bool)
- func (o *CreateClassificationResponse) GetSelectedExamples() []CreateClassificationResponseSelectedExamplesInner
- func (o *CreateClassificationResponse) GetSelectedExamplesOk() ([]CreateClassificationResponseSelectedExamplesInner, bool)
- func (o *CreateClassificationResponse) HasCompletion() bool
- func (o *CreateClassificationResponse) HasLabel() bool
- func (o *CreateClassificationResponse) HasModel() bool
- func (o *CreateClassificationResponse) HasObject() bool
- func (o *CreateClassificationResponse) HasSearchModel() bool
- func (o *CreateClassificationResponse) HasSelectedExamples() bool
- func (o CreateClassificationResponse) MarshalJSON() ([]byte, error)
- func (o *CreateClassificationResponse) SetCompletion(v string)
- func (o *CreateClassificationResponse) SetLabel(v string)
- func (o *CreateClassificationResponse) SetModel(v string)
- func (o *CreateClassificationResponse) SetObject(v string)
- func (o *CreateClassificationResponse) SetSearchModel(v string)
- func (o *CreateClassificationResponse) SetSelectedExamples(v []CreateClassificationResponseSelectedExamplesInner)
- func (o CreateClassificationResponse) ToMap() (map[string]interface{}, error)
- type CreateClassificationResponseSelectedExamplesInner
- func (o *CreateClassificationResponseSelectedExamplesInner) GetDocument() int32
- func (o *CreateClassificationResponseSelectedExamplesInner) GetDocumentOk() (*int32, bool)
- func (o *CreateClassificationResponseSelectedExamplesInner) GetLabel() string
- func (o *CreateClassificationResponseSelectedExamplesInner) GetLabelOk() (*string, bool)
- func (o *CreateClassificationResponseSelectedExamplesInner) GetText() string
- func (o *CreateClassificationResponseSelectedExamplesInner) GetTextOk() (*string, bool)
- func (o *CreateClassificationResponseSelectedExamplesInner) HasDocument() bool
- func (o *CreateClassificationResponseSelectedExamplesInner) HasLabel() bool
- func (o *CreateClassificationResponseSelectedExamplesInner) HasText() bool
- func (o CreateClassificationResponseSelectedExamplesInner) MarshalJSON() ([]byte, error)
- func (o *CreateClassificationResponseSelectedExamplesInner) SetDocument(v int32)
- func (o *CreateClassificationResponseSelectedExamplesInner) SetLabel(v string)
- func (o *CreateClassificationResponseSelectedExamplesInner) SetText(v string)
- func (o CreateClassificationResponseSelectedExamplesInner) ToMap() (map[string]interface{}, error)
- type CreateCompletionRequest
- func (o *CreateCompletionRequest) GetBestOf() int32
- func (o *CreateCompletionRequest) GetBestOfOk() (*int32, bool)
- func (o *CreateCompletionRequest) GetEcho() bool
- func (o *CreateCompletionRequest) GetEchoOk() (*bool, bool)
- func (o *CreateCompletionRequest) GetFrequencyPenalty() float32
- func (o *CreateCompletionRequest) GetFrequencyPenaltyOk() (*float32, bool)
- func (o *CreateCompletionRequest) GetLogitBias() map[string]interface{}
- func (o *CreateCompletionRequest) GetLogitBiasOk() (map[string]interface{}, bool)
- func (o *CreateCompletionRequest) GetLogprobs() int32
- func (o *CreateCompletionRequest) GetLogprobsOk() (*int32, bool)
- func (o *CreateCompletionRequest) GetMaxTokens() int32
- func (o *CreateCompletionRequest) GetMaxTokensOk() (*int32, bool)
- func (o *CreateCompletionRequest) GetModel() string
- func (o *CreateCompletionRequest) GetModelOk() (*string, bool)
- func (o *CreateCompletionRequest) GetN() int32
- func (o *CreateCompletionRequest) GetNOk() (*int32, bool)
- func (o *CreateCompletionRequest) GetPresencePenalty() float32
- func (o *CreateCompletionRequest) GetPresencePenaltyOk() (*float32, bool)
- func (o *CreateCompletionRequest) GetPrompt() CreateCompletionRequestPrompt
- func (o *CreateCompletionRequest) GetPromptOk() (*CreateCompletionRequestPrompt, bool)
- func (o *CreateCompletionRequest) GetStop() CreateCompletionRequestStop
- func (o *CreateCompletionRequest) GetStopOk() (*CreateCompletionRequestStop, bool)
- func (o *CreateCompletionRequest) GetStream() bool
- func (o *CreateCompletionRequest) GetStreamOk() (*bool, bool)
- func (o *CreateCompletionRequest) GetSuffix() string
- func (o *CreateCompletionRequest) GetSuffixOk() (*string, bool)
- func (o *CreateCompletionRequest) GetTemperature() float32
- func (o *CreateCompletionRequest) GetTemperatureOk() (*float32, bool)
- func (o *CreateCompletionRequest) GetTopP() float32
- func (o *CreateCompletionRequest) GetTopPOk() (*float32, bool)
- func (o *CreateCompletionRequest) GetUser() string
- func (o *CreateCompletionRequest) GetUserOk() (*string, bool)
- func (o *CreateCompletionRequest) HasBestOf() bool
- func (o *CreateCompletionRequest) HasEcho() bool
- func (o *CreateCompletionRequest) HasFrequencyPenalty() bool
- func (o *CreateCompletionRequest) HasLogitBias() bool
- func (o *CreateCompletionRequest) HasLogprobs() bool
- func (o *CreateCompletionRequest) HasMaxTokens() bool
- func (o *CreateCompletionRequest) HasN() bool
- func (o *CreateCompletionRequest) HasPresencePenalty() bool
- func (o *CreateCompletionRequest) HasPrompt() bool
- func (o *CreateCompletionRequest) HasStop() bool
- func (o *CreateCompletionRequest) HasStream() bool
- func (o *CreateCompletionRequest) HasSuffix() bool
- func (o *CreateCompletionRequest) HasTemperature() bool
- func (o *CreateCompletionRequest) HasTopP() bool
- func (o *CreateCompletionRequest) HasUser() bool
- func (o CreateCompletionRequest) MarshalJSON() ([]byte, error)
- func (o *CreateCompletionRequest) SetBestOf(v int32)
- func (o *CreateCompletionRequest) SetBestOfNil()
- func (o *CreateCompletionRequest) SetEcho(v bool)
- func (o *CreateCompletionRequest) SetEchoNil()
- func (o *CreateCompletionRequest) SetFrequencyPenalty(v float32)
- func (o *CreateCompletionRequest) SetFrequencyPenaltyNil()
- func (o *CreateCompletionRequest) SetLogitBias(v map[string]interface{})
- func (o *CreateCompletionRequest) SetLogprobs(v int32)
- func (o *CreateCompletionRequest) SetLogprobsNil()
- func (o *CreateCompletionRequest) SetMaxTokens(v int32)
- func (o *CreateCompletionRequest) SetMaxTokensNil()
- func (o *CreateCompletionRequest) SetModel(v string)
- func (o *CreateCompletionRequest) SetN(v int32)
- func (o *CreateCompletionRequest) SetNNil()
- func (o *CreateCompletionRequest) SetPresencePenalty(v float32)
- func (o *CreateCompletionRequest) SetPresencePenaltyNil()
- func (o *CreateCompletionRequest) SetPrompt(v CreateCompletionRequestPrompt)
- func (o *CreateCompletionRequest) SetPromptNil()
- func (o *CreateCompletionRequest) SetStop(v CreateCompletionRequestStop)
- func (o *CreateCompletionRequest) SetStopNil()
- func (o *CreateCompletionRequest) SetStream(v bool)
- func (o *CreateCompletionRequest) SetStreamNil()
- func (o *CreateCompletionRequest) SetSuffix(v string)
- func (o *CreateCompletionRequest) SetSuffixNil()
- func (o *CreateCompletionRequest) SetTemperature(v float32)
- func (o *CreateCompletionRequest) SetTemperatureNil()
- func (o *CreateCompletionRequest) SetTopP(v float32)
- func (o *CreateCompletionRequest) SetTopPNil()
- func (o *CreateCompletionRequest) SetUser(v string)
- func (o CreateCompletionRequest) ToMap() (map[string]interface{}, error)
- func (o *CreateCompletionRequest) UnsetBestOf()
- func (o *CreateCompletionRequest) UnsetEcho()
- func (o *CreateCompletionRequest) UnsetFrequencyPenalty()
- func (o *CreateCompletionRequest) UnsetLogprobs()
- func (o *CreateCompletionRequest) UnsetMaxTokens()
- func (o *CreateCompletionRequest) UnsetN()
- func (o *CreateCompletionRequest) UnsetPresencePenalty()
- func (o *CreateCompletionRequest) UnsetPrompt()
- func (o *CreateCompletionRequest) UnsetStop()
- func (o *CreateCompletionRequest) UnsetStream()
- func (o *CreateCompletionRequest) UnsetSuffix()
- func (o *CreateCompletionRequest) UnsetTemperature()
- func (o *CreateCompletionRequest) UnsetTopP()
- type CreateCompletionRequestPrompt
- func ArrayOfArrayOfInt32AsCreateCompletionRequestPrompt(v *[][]int32) CreateCompletionRequestPrompt
- func ArrayOfInt32AsCreateCompletionRequestPrompt(v *[]int32) CreateCompletionRequestPrompt
- func ArrayOfStringAsCreateCompletionRequestPrompt(v *[]string) CreateCompletionRequestPrompt
- func StringAsCreateCompletionRequestPrompt(v *string) CreateCompletionRequestPrompt
- type CreateCompletionRequestStop
- type CreateCompletionResponse
- func (o *CreateCompletionResponse) GetChoices() []CreateCompletionResponseChoicesInner
- func (o *CreateCompletionResponse) GetChoicesOk() ([]CreateCompletionResponseChoicesInner, bool)
- func (o *CreateCompletionResponse) GetCreated() int32
- func (o *CreateCompletionResponse) GetCreatedOk() (*int32, bool)
- func (o *CreateCompletionResponse) GetId() string
- func (o *CreateCompletionResponse) GetIdOk() (*string, bool)
- func (o *CreateCompletionResponse) GetModel() string
- func (o *CreateCompletionResponse) GetModelOk() (*string, bool)
- func (o *CreateCompletionResponse) GetObject() string
- func (o *CreateCompletionResponse) GetObjectOk() (*string, bool)
- func (o *CreateCompletionResponse) GetUsage() CreateCompletionResponseUsage
- func (o *CreateCompletionResponse) GetUsageOk() (*CreateCompletionResponseUsage, bool)
- func (o *CreateCompletionResponse) HasUsage() bool
- func (o CreateCompletionResponse) MarshalJSON() ([]byte, error)
- func (o *CreateCompletionResponse) SetChoices(v []CreateCompletionResponseChoicesInner)
- func (o *CreateCompletionResponse) SetCreated(v int32)
- func (o *CreateCompletionResponse) SetId(v string)
- func (o *CreateCompletionResponse) SetModel(v string)
- func (o *CreateCompletionResponse) SetObject(v string)
- func (o *CreateCompletionResponse) SetUsage(v CreateCompletionResponseUsage)
- func (o CreateCompletionResponse) ToMap() (map[string]interface{}, error)
- type CreateCompletionResponseChoicesInner
- func (o *CreateCompletionResponseChoicesInner) GetFinishReason() string
- func (o *CreateCompletionResponseChoicesInner) GetFinishReasonOk() (*string, bool)
- func (o *CreateCompletionResponseChoicesInner) GetIndex() int32
- func (o *CreateCompletionResponseChoicesInner) GetIndexOk() (*int32, bool)
- func (o *CreateCompletionResponseChoicesInner) GetLogprobs() CreateCompletionResponseChoicesInnerLogprobs
- func (o *CreateCompletionResponseChoicesInner) GetLogprobsOk() (*CreateCompletionResponseChoicesInnerLogprobs, bool)
- func (o *CreateCompletionResponseChoicesInner) GetText() string
- func (o *CreateCompletionResponseChoicesInner) GetTextOk() (*string, bool)
- func (o *CreateCompletionResponseChoicesInner) HasFinishReason() bool
- func (o *CreateCompletionResponseChoicesInner) HasIndex() bool
- func (o *CreateCompletionResponseChoicesInner) HasLogprobs() bool
- func (o *CreateCompletionResponseChoicesInner) HasText() bool
- func (o CreateCompletionResponseChoicesInner) MarshalJSON() ([]byte, error)
- func (o *CreateCompletionResponseChoicesInner) SetFinishReason(v string)
- func (o *CreateCompletionResponseChoicesInner) SetIndex(v int32)
- func (o *CreateCompletionResponseChoicesInner) SetLogprobs(v CreateCompletionResponseChoicesInnerLogprobs)
- func (o *CreateCompletionResponseChoicesInner) SetLogprobsNil()
- func (o *CreateCompletionResponseChoicesInner) SetText(v string)
- func (o CreateCompletionResponseChoicesInner) ToMap() (map[string]interface{}, error)
- func (o *CreateCompletionResponseChoicesInner) UnsetLogprobs()
- type CreateCompletionResponseChoicesInnerLogprobs
- func (o *CreateCompletionResponseChoicesInnerLogprobs) GetTextOffset() []int32
- func (o *CreateCompletionResponseChoicesInnerLogprobs) GetTextOffsetOk() ([]int32, bool)
- func (o *CreateCompletionResponseChoicesInnerLogprobs) GetTokenLogprobs() []float32
- func (o *CreateCompletionResponseChoicesInnerLogprobs) GetTokenLogprobsOk() ([]float32, bool)
- func (o *CreateCompletionResponseChoicesInnerLogprobs) GetTokens() []string
- func (o *CreateCompletionResponseChoicesInnerLogprobs) GetTokensOk() ([]string, bool)
- func (o *CreateCompletionResponseChoicesInnerLogprobs) GetTopLogprobs() []map[string]interface{}
- func (o *CreateCompletionResponseChoicesInnerLogprobs) GetTopLogprobsOk() ([]map[string]interface{}, bool)
- func (o *CreateCompletionResponseChoicesInnerLogprobs) HasTextOffset() bool
- func (o *CreateCompletionResponseChoicesInnerLogprobs) HasTokenLogprobs() bool
- func (o *CreateCompletionResponseChoicesInnerLogprobs) HasTokens() bool
- func (o *CreateCompletionResponseChoicesInnerLogprobs) HasTopLogprobs() bool
- func (o CreateCompletionResponseChoicesInnerLogprobs) MarshalJSON() ([]byte, error)
- func (o *CreateCompletionResponseChoicesInnerLogprobs) SetTextOffset(v []int32)
- func (o *CreateCompletionResponseChoicesInnerLogprobs) SetTokenLogprobs(v []float32)
- func (o *CreateCompletionResponseChoicesInnerLogprobs) SetTokens(v []string)
- func (o *CreateCompletionResponseChoicesInnerLogprobs) SetTopLogprobs(v []map[string]interface{})
- func (o CreateCompletionResponseChoicesInnerLogprobs) ToMap() (map[string]interface{}, error)
- type CreateCompletionResponseUsage
- func (o *CreateCompletionResponseUsage) GetCompletionTokens() int32
- func (o *CreateCompletionResponseUsage) GetCompletionTokensOk() (*int32, bool)
- func (o *CreateCompletionResponseUsage) GetPromptTokens() int32
- func (o *CreateCompletionResponseUsage) GetPromptTokensOk() (*int32, bool)
- func (o *CreateCompletionResponseUsage) GetTotalTokens() int32
- func (o *CreateCompletionResponseUsage) GetTotalTokensOk() (*int32, bool)
- func (o CreateCompletionResponseUsage) MarshalJSON() ([]byte, error)
- func (o *CreateCompletionResponseUsage) SetCompletionTokens(v int32)
- func (o *CreateCompletionResponseUsage) SetPromptTokens(v int32)
- func (o *CreateCompletionResponseUsage) SetTotalTokens(v int32)
- func (o CreateCompletionResponseUsage) ToMap() (map[string]interface{}, error)
- type CreateEditRequest
- func (o *CreateEditRequest) GetInput() string
- func (o *CreateEditRequest) GetInputOk() (*string, bool)
- func (o *CreateEditRequest) GetInstruction() string
- func (o *CreateEditRequest) GetInstructionOk() (*string, bool)
- func (o *CreateEditRequest) GetModel() string
- func (o *CreateEditRequest) GetModelOk() (*string, bool)
- func (o *CreateEditRequest) GetN() int32
- func (o *CreateEditRequest) GetNOk() (*int32, bool)
- func (o *CreateEditRequest) GetTemperature() float32
- func (o *CreateEditRequest) GetTemperatureOk() (*float32, bool)
- func (o *CreateEditRequest) GetTopP() float32
- func (o *CreateEditRequest) GetTopPOk() (*float32, bool)
- func (o *CreateEditRequest) HasInput() bool
- func (o *CreateEditRequest) HasN() bool
- func (o *CreateEditRequest) HasTemperature() bool
- func (o *CreateEditRequest) HasTopP() bool
- func (o CreateEditRequest) MarshalJSON() ([]byte, error)
- func (o *CreateEditRequest) SetInput(v string)
- func (o *CreateEditRequest) SetInputNil()
- func (o *CreateEditRequest) SetInstruction(v string)
- func (o *CreateEditRequest) SetModel(v string)
- func (o *CreateEditRequest) SetN(v int32)
- func (o *CreateEditRequest) SetNNil()
- func (o *CreateEditRequest) SetTemperature(v float32)
- func (o *CreateEditRequest) SetTemperatureNil()
- func (o *CreateEditRequest) SetTopP(v float32)
- func (o *CreateEditRequest) SetTopPNil()
- func (o CreateEditRequest) ToMap() (map[string]interface{}, error)
- func (o *CreateEditRequest) UnsetInput()
- func (o *CreateEditRequest) UnsetN()
- func (o *CreateEditRequest) UnsetTemperature()
- func (o *CreateEditRequest) UnsetTopP()
- type CreateEditResponse
- func (o *CreateEditResponse) GetChoices() []CreateCompletionResponseChoicesInner
- func (o *CreateEditResponse) GetChoicesOk() ([]CreateCompletionResponseChoicesInner, bool)
- func (o *CreateEditResponse) GetCreated() int32
- func (o *CreateEditResponse) GetCreatedOk() (*int32, bool)
- func (o *CreateEditResponse) GetObject() string
- func (o *CreateEditResponse) GetObjectOk() (*string, bool)
- func (o *CreateEditResponse) GetUsage() CreateCompletionResponseUsage
- func (o *CreateEditResponse) GetUsageOk() (*CreateCompletionResponseUsage, bool)
- func (o CreateEditResponse) MarshalJSON() ([]byte, error)
- func (o *CreateEditResponse) SetChoices(v []CreateCompletionResponseChoicesInner)
- func (o *CreateEditResponse) SetCreated(v int32)
- func (o *CreateEditResponse) SetObject(v string)
- func (o *CreateEditResponse) SetUsage(v CreateCompletionResponseUsage)
- func (o CreateEditResponse) ToMap() (map[string]interface{}, error)
- type CreateEmbeddingRequest
- func (o *CreateEmbeddingRequest) GetInput() CreateEmbeddingRequestInput
- func (o *CreateEmbeddingRequest) GetInputOk() (*CreateEmbeddingRequestInput, bool)
- func (o *CreateEmbeddingRequest) GetModel() string
- func (o *CreateEmbeddingRequest) GetModelOk() (*string, bool)
- func (o *CreateEmbeddingRequest) GetUser() string
- func (o *CreateEmbeddingRequest) GetUserOk() (*string, bool)
- func (o *CreateEmbeddingRequest) HasUser() bool
- func (o CreateEmbeddingRequest) MarshalJSON() ([]byte, error)
- func (o *CreateEmbeddingRequest) SetInput(v CreateEmbeddingRequestInput)
- func (o *CreateEmbeddingRequest) SetModel(v string)
- func (o *CreateEmbeddingRequest) SetUser(v string)
- func (o CreateEmbeddingRequest) ToMap() (map[string]interface{}, error)
- type CreateEmbeddingRequestInput
- func ArrayOfArrayOfInt32AsCreateEmbeddingRequestInput(v *[][]int32) CreateEmbeddingRequestInput
- func ArrayOfInt32AsCreateEmbeddingRequestInput(v *[]int32) CreateEmbeddingRequestInput
- func ArrayOfStringAsCreateEmbeddingRequestInput(v *[]string) CreateEmbeddingRequestInput
- func StringAsCreateEmbeddingRequestInput(v *string) CreateEmbeddingRequestInput
- type CreateEmbeddingResponse
- func (o *CreateEmbeddingResponse) GetData() []CreateEmbeddingResponseDataInner
- func (o *CreateEmbeddingResponse) GetDataOk() ([]CreateEmbeddingResponseDataInner, bool)
- func (o *CreateEmbeddingResponse) GetModel() string
- func (o *CreateEmbeddingResponse) GetModelOk() (*string, bool)
- func (o *CreateEmbeddingResponse) GetObject() string
- func (o *CreateEmbeddingResponse) GetObjectOk() (*string, bool)
- func (o *CreateEmbeddingResponse) GetUsage() CreateEmbeddingResponseUsage
- func (o *CreateEmbeddingResponse) GetUsageOk() (*CreateEmbeddingResponseUsage, bool)
- func (o CreateEmbeddingResponse) MarshalJSON() ([]byte, error)
- func (o *CreateEmbeddingResponse) SetData(v []CreateEmbeddingResponseDataInner)
- func (o *CreateEmbeddingResponse) SetModel(v string)
- func (o *CreateEmbeddingResponse) SetObject(v string)
- func (o *CreateEmbeddingResponse) SetUsage(v CreateEmbeddingResponseUsage)
- func (o CreateEmbeddingResponse) ToMap() (map[string]interface{}, error)
- type CreateEmbeddingResponseDataInner
- func (o *CreateEmbeddingResponseDataInner) GetEmbedding() []float32
- func (o *CreateEmbeddingResponseDataInner) GetEmbeddingOk() ([]float32, bool)
- func (o *CreateEmbeddingResponseDataInner) GetIndex() int32
- func (o *CreateEmbeddingResponseDataInner) GetIndexOk() (*int32, bool)
- func (o *CreateEmbeddingResponseDataInner) GetObject() string
- func (o *CreateEmbeddingResponseDataInner) GetObjectOk() (*string, bool)
- func (o CreateEmbeddingResponseDataInner) MarshalJSON() ([]byte, error)
- func (o *CreateEmbeddingResponseDataInner) SetEmbedding(v []float32)
- func (o *CreateEmbeddingResponseDataInner) SetIndex(v int32)
- func (o *CreateEmbeddingResponseDataInner) SetObject(v string)
- func (o CreateEmbeddingResponseDataInner) ToMap() (map[string]interface{}, error)
- type CreateEmbeddingResponseUsage
- func (o *CreateEmbeddingResponseUsage) GetPromptTokens() int32
- func (o *CreateEmbeddingResponseUsage) GetPromptTokensOk() (*int32, bool)
- func (o *CreateEmbeddingResponseUsage) GetTotalTokens() int32
- func (o *CreateEmbeddingResponseUsage) GetTotalTokensOk() (*int32, bool)
- func (o CreateEmbeddingResponseUsage) MarshalJSON() ([]byte, error)
- func (o *CreateEmbeddingResponseUsage) SetPromptTokens(v int32)
- func (o *CreateEmbeddingResponseUsage) SetTotalTokens(v int32)
- func (o CreateEmbeddingResponseUsage) ToMap() (map[string]interface{}, error)
- type CreateFineTuneRequest
- func (o *CreateFineTuneRequest) GetBatchSize() int32
- func (o *CreateFineTuneRequest) GetBatchSizeOk() (*int32, bool)
- func (o *CreateFineTuneRequest) GetClassificationBetas() []float32
- func (o *CreateFineTuneRequest) GetClassificationBetasOk() ([]float32, bool)
- func (o *CreateFineTuneRequest) GetClassificationNClasses() int32
- func (o *CreateFineTuneRequest) GetClassificationNClassesOk() (*int32, bool)
- func (o *CreateFineTuneRequest) GetClassificationPositiveClass() string
- func (o *CreateFineTuneRequest) GetClassificationPositiveClassOk() (*string, bool)
- func (o *CreateFineTuneRequest) GetComputeClassificationMetrics() bool
- func (o *CreateFineTuneRequest) GetComputeClassificationMetricsOk() (*bool, bool)
- func (o *CreateFineTuneRequest) GetLearningRateMultiplier() float32
- func (o *CreateFineTuneRequest) GetLearningRateMultiplierOk() (*float32, bool)
- func (o *CreateFineTuneRequest) GetModel() string
- func (o *CreateFineTuneRequest) GetModelOk() (*string, bool)
- func (o *CreateFineTuneRequest) GetNEpochs() int32
- func (o *CreateFineTuneRequest) GetNEpochsOk() (*int32, bool)
- func (o *CreateFineTuneRequest) GetPromptLossWeight() float32
- func (o *CreateFineTuneRequest) GetPromptLossWeightOk() (*float32, bool)
- func (o *CreateFineTuneRequest) GetSuffix() string
- func (o *CreateFineTuneRequest) GetSuffixOk() (*string, bool)
- func (o *CreateFineTuneRequest) GetTrainingFile() string
- func (o *CreateFineTuneRequest) GetTrainingFileOk() (*string, bool)
- func (o *CreateFineTuneRequest) GetValidationFile() string
- func (o *CreateFineTuneRequest) GetValidationFileOk() (*string, bool)
- func (o *CreateFineTuneRequest) HasBatchSize() bool
- func (o *CreateFineTuneRequest) HasClassificationBetas() bool
- func (o *CreateFineTuneRequest) HasClassificationNClasses() bool
- func (o *CreateFineTuneRequest) HasClassificationPositiveClass() bool
- func (o *CreateFineTuneRequest) HasComputeClassificationMetrics() bool
- func (o *CreateFineTuneRequest) HasLearningRateMultiplier() bool
- func (o *CreateFineTuneRequest) HasModel() bool
- func (o *CreateFineTuneRequest) HasNEpochs() bool
- func (o *CreateFineTuneRequest) HasPromptLossWeight() bool
- func (o *CreateFineTuneRequest) HasSuffix() bool
- func (o *CreateFineTuneRequest) HasValidationFile() bool
- func (o CreateFineTuneRequest) MarshalJSON() ([]byte, error)
- func (o *CreateFineTuneRequest) SetBatchSize(v int32)
- func (o *CreateFineTuneRequest) SetBatchSizeNil()
- func (o *CreateFineTuneRequest) SetClassificationBetas(v []float32)
- func (o *CreateFineTuneRequest) SetClassificationNClasses(v int32)
- func (o *CreateFineTuneRequest) SetClassificationNClassesNil()
- func (o *CreateFineTuneRequest) SetClassificationPositiveClass(v string)
- func (o *CreateFineTuneRequest) SetClassificationPositiveClassNil()
- func (o *CreateFineTuneRequest) SetComputeClassificationMetrics(v bool)
- func (o *CreateFineTuneRequest) SetComputeClassificationMetricsNil()
- func (o *CreateFineTuneRequest) SetLearningRateMultiplier(v float32)
- func (o *CreateFineTuneRequest) SetLearningRateMultiplierNil()
- func (o *CreateFineTuneRequest) SetModel(v string)
- func (o *CreateFineTuneRequest) SetModelNil()
- func (o *CreateFineTuneRequest) SetNEpochs(v int32)
- func (o *CreateFineTuneRequest) SetNEpochsNil()
- func (o *CreateFineTuneRequest) SetPromptLossWeight(v float32)
- func (o *CreateFineTuneRequest) SetPromptLossWeightNil()
- func (o *CreateFineTuneRequest) SetSuffix(v string)
- func (o *CreateFineTuneRequest) SetSuffixNil()
- func (o *CreateFineTuneRequest) SetTrainingFile(v string)
- func (o *CreateFineTuneRequest) SetValidationFile(v string)
- func (o *CreateFineTuneRequest) SetValidationFileNil()
- func (o CreateFineTuneRequest) ToMap() (map[string]interface{}, error)
- func (o *CreateFineTuneRequest) UnsetBatchSize()
- func (o *CreateFineTuneRequest) UnsetClassificationNClasses()
- func (o *CreateFineTuneRequest) UnsetClassificationPositiveClass()
- func (o *CreateFineTuneRequest) UnsetComputeClassificationMetrics()
- func (o *CreateFineTuneRequest) UnsetLearningRateMultiplier()
- func (o *CreateFineTuneRequest) UnsetModel()
- func (o *CreateFineTuneRequest) UnsetNEpochs()
- func (o *CreateFineTuneRequest) UnsetPromptLossWeight()
- func (o *CreateFineTuneRequest) UnsetSuffix()
- func (o *CreateFineTuneRequest) UnsetValidationFile()
- type CreateImageRequest
- func (o *CreateImageRequest) GetN() int32
- func (o *CreateImageRequest) GetNOk() (*int32, bool)
- func (o *CreateImageRequest) GetPrompt() string
- func (o *CreateImageRequest) GetPromptOk() (*string, bool)
- func (o *CreateImageRequest) GetResponseFormat() string
- func (o *CreateImageRequest) GetResponseFormatOk() (*string, bool)
- func (o *CreateImageRequest) GetSize() string
- func (o *CreateImageRequest) GetSizeOk() (*string, bool)
- func (o *CreateImageRequest) GetUser() string
- func (o *CreateImageRequest) GetUserOk() (*string, bool)
- func (o *CreateImageRequest) HasN() bool
- func (o *CreateImageRequest) HasResponseFormat() bool
- func (o *CreateImageRequest) HasSize() bool
- func (o *CreateImageRequest) HasUser() bool
- func (o CreateImageRequest) MarshalJSON() ([]byte, error)
- func (o *CreateImageRequest) SetN(v int32)
- func (o *CreateImageRequest) SetNNil()
- func (o *CreateImageRequest) SetPrompt(v string)
- func (o *CreateImageRequest) SetResponseFormat(v string)
- func (o *CreateImageRequest) SetResponseFormatNil()
- func (o *CreateImageRequest) SetSize(v string)
- func (o *CreateImageRequest) SetSizeNil()
- func (o *CreateImageRequest) SetUser(v string)
- func (o CreateImageRequest) ToMap() (map[string]interface{}, error)
- func (o *CreateImageRequest) UnsetN()
- func (o *CreateImageRequest) UnsetResponseFormat()
- func (o *CreateImageRequest) UnsetSize()
- type CreateModerationRequest
- func (o *CreateModerationRequest) GetInput() CreateModerationRequestInput
- func (o *CreateModerationRequest) GetInputOk() (*CreateModerationRequestInput, bool)
- func (o *CreateModerationRequest) GetModel() string
- func (o *CreateModerationRequest) GetModelOk() (*string, bool)
- func (o *CreateModerationRequest) HasModel() bool
- func (o CreateModerationRequest) MarshalJSON() ([]byte, error)
- func (o *CreateModerationRequest) SetInput(v CreateModerationRequestInput)
- func (o *CreateModerationRequest) SetModel(v string)
- func (o CreateModerationRequest) ToMap() (map[string]interface{}, error)
- type CreateModerationRequestInput
- type CreateModerationResponse
- func (o *CreateModerationResponse) GetId() string
- func (o *CreateModerationResponse) GetIdOk() (*string, bool)
- func (o *CreateModerationResponse) GetModel() string
- func (o *CreateModerationResponse) GetModelOk() (*string, bool)
- func (o *CreateModerationResponse) GetResults() []CreateModerationResponseResultsInner
- func (o *CreateModerationResponse) GetResultsOk() ([]CreateModerationResponseResultsInner, bool)
- func (o CreateModerationResponse) MarshalJSON() ([]byte, error)
- func (o *CreateModerationResponse) SetId(v string)
- func (o *CreateModerationResponse) SetModel(v string)
- func (o *CreateModerationResponse) SetResults(v []CreateModerationResponseResultsInner)
- func (o CreateModerationResponse) ToMap() (map[string]interface{}, error)
- type CreateModerationResponseResultsInner
- func (o *CreateModerationResponseResultsInner) GetCategories() CreateModerationResponseResultsInnerCategories
- func (o *CreateModerationResponseResultsInner) GetCategoriesOk() (*CreateModerationResponseResultsInnerCategories, bool)
- func (o *CreateModerationResponseResultsInner) GetCategoryScores() CreateModerationResponseResultsInnerCategoryScores
- func (o *CreateModerationResponseResultsInner) GetCategoryScoresOk() (*CreateModerationResponseResultsInnerCategoryScores, bool)
- func (o *CreateModerationResponseResultsInner) GetFlagged() bool
- func (o *CreateModerationResponseResultsInner) GetFlaggedOk() (*bool, bool)
- func (o CreateModerationResponseResultsInner) MarshalJSON() ([]byte, error)
- func (o *CreateModerationResponseResultsInner) SetCategories(v CreateModerationResponseResultsInnerCategories)
- func (o *CreateModerationResponseResultsInner) SetCategoryScores(v CreateModerationResponseResultsInnerCategoryScores)
- func (o *CreateModerationResponseResultsInner) SetFlagged(v bool)
- func (o CreateModerationResponseResultsInner) ToMap() (map[string]interface{}, error)
- type CreateModerationResponseResultsInnerCategories
- func NewCreateModerationResponseResultsInnerCategories(hate bool, hateThreatening bool, selfHarm bool, sexual bool, sexualMinors bool, ...) *CreateModerationResponseResultsInnerCategories
- func NewCreateModerationResponseResultsInnerCategoriesWithDefaults() *CreateModerationResponseResultsInnerCategories
- func (o *CreateModerationResponseResultsInnerCategories) GetHate() bool
- func (o *CreateModerationResponseResultsInnerCategories) GetHateOk() (*bool, bool)
- func (o *CreateModerationResponseResultsInnerCategories) GetHateThreatening() bool
- func (o *CreateModerationResponseResultsInnerCategories) GetHateThreateningOk() (*bool, bool)
- func (o *CreateModerationResponseResultsInnerCategories) GetSelfHarm() bool
- func (o *CreateModerationResponseResultsInnerCategories) GetSelfHarmOk() (*bool, bool)
- func (o *CreateModerationResponseResultsInnerCategories) GetSexual() bool
- func (o *CreateModerationResponseResultsInnerCategories) GetSexualMinors() bool
- func (o *CreateModerationResponseResultsInnerCategories) GetSexualMinorsOk() (*bool, bool)
- func (o *CreateModerationResponseResultsInnerCategories) GetSexualOk() (*bool, bool)
- func (o *CreateModerationResponseResultsInnerCategories) GetViolence() bool
- func (o *CreateModerationResponseResultsInnerCategories) GetViolenceGraphic() bool
- func (o *CreateModerationResponseResultsInnerCategories) GetViolenceGraphicOk() (*bool, bool)
- func (o *CreateModerationResponseResultsInnerCategories) GetViolenceOk() (*bool, bool)
- func (o CreateModerationResponseResultsInnerCategories) MarshalJSON() ([]byte, error)
- func (o *CreateModerationResponseResultsInnerCategories) SetHate(v bool)
- func (o *CreateModerationResponseResultsInnerCategories) SetHateThreatening(v bool)
- func (o *CreateModerationResponseResultsInnerCategories) SetSelfHarm(v bool)
- func (o *CreateModerationResponseResultsInnerCategories) SetSexual(v bool)
- func (o *CreateModerationResponseResultsInnerCategories) SetSexualMinors(v bool)
- func (o *CreateModerationResponseResultsInnerCategories) SetViolence(v bool)
- func (o *CreateModerationResponseResultsInnerCategories) SetViolenceGraphic(v bool)
- func (o CreateModerationResponseResultsInnerCategories) ToMap() (map[string]interface{}, error)
- type CreateModerationResponseResultsInnerCategoryScores
- func NewCreateModerationResponseResultsInnerCategoryScores(hate float32, hateThreatening float32, selfHarm float32, sexual float32, ...) *CreateModerationResponseResultsInnerCategoryScores
- func NewCreateModerationResponseResultsInnerCategoryScoresWithDefaults() *CreateModerationResponseResultsInnerCategoryScores
- func (o *CreateModerationResponseResultsInnerCategoryScores) GetHate() float32
- func (o *CreateModerationResponseResultsInnerCategoryScores) GetHateOk() (*float32, bool)
- func (o *CreateModerationResponseResultsInnerCategoryScores) GetHateThreatening() float32
- func (o *CreateModerationResponseResultsInnerCategoryScores) GetHateThreateningOk() (*float32, bool)
- func (o *CreateModerationResponseResultsInnerCategoryScores) GetSelfHarm() float32
- func (o *CreateModerationResponseResultsInnerCategoryScores) GetSelfHarmOk() (*float32, bool)
- func (o *CreateModerationResponseResultsInnerCategoryScores) GetSexual() float32
- func (o *CreateModerationResponseResultsInnerCategoryScores) GetSexualMinors() float32
- func (o *CreateModerationResponseResultsInnerCategoryScores) GetSexualMinorsOk() (*float32, bool)
- func (o *CreateModerationResponseResultsInnerCategoryScores) GetSexualOk() (*float32, bool)
- func (o *CreateModerationResponseResultsInnerCategoryScores) GetViolence() float32
- func (o *CreateModerationResponseResultsInnerCategoryScores) GetViolenceGraphic() float32
- func (o *CreateModerationResponseResultsInnerCategoryScores) GetViolenceGraphicOk() (*float32, bool)
- func (o *CreateModerationResponseResultsInnerCategoryScores) GetViolenceOk() (*float32, bool)
- func (o CreateModerationResponseResultsInnerCategoryScores) MarshalJSON() ([]byte, error)
- func (o *CreateModerationResponseResultsInnerCategoryScores) SetHate(v float32)
- func (o *CreateModerationResponseResultsInnerCategoryScores) SetHateThreatening(v float32)
- func (o *CreateModerationResponseResultsInnerCategoryScores) SetSelfHarm(v float32)
- func (o *CreateModerationResponseResultsInnerCategoryScores) SetSexual(v float32)
- func (o *CreateModerationResponseResultsInnerCategoryScores) SetSexualMinors(v float32)
- func (o *CreateModerationResponseResultsInnerCategoryScores) SetViolence(v float32)
- func (o *CreateModerationResponseResultsInnerCategoryScores) SetViolenceGraphic(v float32)
- func (o CreateModerationResponseResultsInnerCategoryScores) ToMap() (map[string]interface{}, error)
- type CreateSearchRequest
- func (o *CreateSearchRequest) GetDocuments() []string
- func (o *CreateSearchRequest) GetDocumentsOk() ([]string, bool)
- func (o *CreateSearchRequest) GetFile() string
- func (o *CreateSearchRequest) GetFileOk() (*string, bool)
- func (o *CreateSearchRequest) GetMaxRerank() int32
- func (o *CreateSearchRequest) GetMaxRerankOk() (*int32, bool)
- func (o *CreateSearchRequest) GetQuery() string
- func (o *CreateSearchRequest) GetQueryOk() (*string, bool)
- func (o *CreateSearchRequest) GetReturnMetadata() bool
- func (o *CreateSearchRequest) GetReturnMetadataOk() (*bool, bool)
- func (o *CreateSearchRequest) GetUser() string
- func (o *CreateSearchRequest) GetUserOk() (*string, bool)
- func (o *CreateSearchRequest) HasDocuments() bool
- func (o *CreateSearchRequest) HasFile() bool
- func (o *CreateSearchRequest) HasMaxRerank() bool
- func (o *CreateSearchRequest) HasReturnMetadata() bool
- func (o *CreateSearchRequest) HasUser() bool
- func (o CreateSearchRequest) MarshalJSON() ([]byte, error)
- func (o *CreateSearchRequest) SetDocuments(v []string)
- func (o *CreateSearchRequest) SetFile(v string)
- func (o *CreateSearchRequest) SetFileNil()
- func (o *CreateSearchRequest) SetMaxRerank(v int32)
- func (o *CreateSearchRequest) SetMaxRerankNil()
- func (o *CreateSearchRequest) SetQuery(v string)
- func (o *CreateSearchRequest) SetReturnMetadata(v bool)
- func (o *CreateSearchRequest) SetReturnMetadataNil()
- func (o *CreateSearchRequest) SetUser(v string)
- func (o CreateSearchRequest) ToMap() (map[string]interface{}, error)
- func (o *CreateSearchRequest) UnsetFile()
- func (o *CreateSearchRequest) UnsetMaxRerank()
- func (o *CreateSearchRequest) UnsetReturnMetadata()
- type CreateSearchResponse
- func (o *CreateSearchResponse) GetData() []CreateSearchResponseDataInner
- func (o *CreateSearchResponse) GetDataOk() ([]CreateSearchResponseDataInner, bool)
- func (o *CreateSearchResponse) GetModel() string
- func (o *CreateSearchResponse) GetModelOk() (*string, bool)
- func (o *CreateSearchResponse) GetObject() string
- func (o *CreateSearchResponse) GetObjectOk() (*string, bool)
- func (o *CreateSearchResponse) HasData() bool
- func (o *CreateSearchResponse) HasModel() bool
- func (o *CreateSearchResponse) HasObject() bool
- func (o CreateSearchResponse) MarshalJSON() ([]byte, error)
- func (o *CreateSearchResponse) SetData(v []CreateSearchResponseDataInner)
- func (o *CreateSearchResponse) SetModel(v string)
- func (o *CreateSearchResponse) SetObject(v string)
- func (o CreateSearchResponse) ToMap() (map[string]interface{}, error)
- type CreateSearchResponseDataInner
- func (o *CreateSearchResponseDataInner) GetDocument() int32
- func (o *CreateSearchResponseDataInner) GetDocumentOk() (*int32, bool)
- func (o *CreateSearchResponseDataInner) GetObject() string
- func (o *CreateSearchResponseDataInner) GetObjectOk() (*string, bool)
- func (o *CreateSearchResponseDataInner) GetScore() float32
- func (o *CreateSearchResponseDataInner) GetScoreOk() (*float32, bool)
- func (o *CreateSearchResponseDataInner) HasDocument() bool
- func (o *CreateSearchResponseDataInner) HasObject() bool
- func (o *CreateSearchResponseDataInner) HasScore() bool
- func (o CreateSearchResponseDataInner) MarshalJSON() ([]byte, error)
- func (o *CreateSearchResponseDataInner) SetDocument(v int32)
- func (o *CreateSearchResponseDataInner) SetObject(v string)
- func (o *CreateSearchResponseDataInner) SetScore(v float32)
- func (o CreateSearchResponseDataInner) ToMap() (map[string]interface{}, error)
- type CreateTranscriptionResponse
- func (o *CreateTranscriptionResponse) GetText() string
- func (o *CreateTranscriptionResponse) GetTextOk() (*string, bool)
- func (o CreateTranscriptionResponse) MarshalJSON() ([]byte, error)
- func (o *CreateTranscriptionResponse) SetText(v string)
- func (o CreateTranscriptionResponse) ToMap() (map[string]interface{}, error)
- type CreateTranslationResponse
- func (o *CreateTranslationResponse) GetText() string
- func (o *CreateTranslationResponse) GetTextOk() (*string, bool)
- func (o CreateTranslationResponse) MarshalJSON() ([]byte, error)
- func (o *CreateTranslationResponse) SetText(v string)
- func (o CreateTranslationResponse) ToMap() (map[string]interface{}, error)
- type DeleteFileResponse
- func (o *DeleteFileResponse) GetDeleted() bool
- func (o *DeleteFileResponse) GetDeletedOk() (*bool, bool)
- func (o *DeleteFileResponse) GetId() string
- func (o *DeleteFileResponse) GetIdOk() (*string, bool)
- func (o *DeleteFileResponse) GetObject() string
- func (o *DeleteFileResponse) GetObjectOk() (*string, bool)
- func (o DeleteFileResponse) MarshalJSON() ([]byte, error)
- func (o *DeleteFileResponse) SetDeleted(v bool)
- func (o *DeleteFileResponse) SetId(v string)
- func (o *DeleteFileResponse) SetObject(v string)
- func (o DeleteFileResponse) ToMap() (map[string]interface{}, error)
- type DeleteModelResponse
- func (o *DeleteModelResponse) GetDeleted() bool
- func (o *DeleteModelResponse) GetDeletedOk() (*bool, bool)
- func (o *DeleteModelResponse) GetId() string
- func (o *DeleteModelResponse) GetIdOk() (*string, bool)
- func (o *DeleteModelResponse) GetObject() string
- func (o *DeleteModelResponse) GetObjectOk() (*string, bool)
- func (o DeleteModelResponse) MarshalJSON() ([]byte, error)
- func (o *DeleteModelResponse) SetDeleted(v bool)
- func (o *DeleteModelResponse) SetId(v string)
- func (o *DeleteModelResponse) SetObject(v string)
- func (o DeleteModelResponse) ToMap() (map[string]interface{}, error)
- type Engine
- func (o *Engine) GetCreated() int32
- func (o *Engine) GetCreatedOk() (*int32, bool)
- func (o *Engine) GetId() string
- func (o *Engine) GetIdOk() (*string, bool)
- func (o *Engine) GetObject() string
- func (o *Engine) GetObjectOk() (*string, bool)
- func (o *Engine) GetReady() bool
- func (o *Engine) GetReadyOk() (*bool, bool)
- func (o Engine) MarshalJSON() ([]byte, error)
- func (o *Engine) SetCreated(v int32)
- func (o *Engine) SetId(v string)
- func (o *Engine) SetObject(v string)
- func (o *Engine) SetReady(v bool)
- func (o Engine) ToMap() (map[string]interface{}, error)
- type FineTune
- func (o *FineTune) GetCreatedAt() int32
- func (o *FineTune) GetCreatedAtOk() (*int32, bool)
- func (o *FineTune) GetEvents() []FineTuneEvent
- func (o *FineTune) GetEventsOk() ([]FineTuneEvent, bool)
- func (o *FineTune) GetFineTunedModel() string
- func (o *FineTune) GetFineTunedModelOk() (*string, bool)
- func (o *FineTune) GetHyperparams() map[string]interface{}
- func (o *FineTune) GetHyperparamsOk() (map[string]interface{}, bool)
- func (o *FineTune) GetId() string
- func (o *FineTune) GetIdOk() (*string, bool)
- func (o *FineTune) GetModel() string
- func (o *FineTune) GetModelOk() (*string, bool)
- func (o *FineTune) GetObject() string
- func (o *FineTune) GetObjectOk() (*string, bool)
- func (o *FineTune) GetOrganizationId() string
- func (o *FineTune) GetOrganizationIdOk() (*string, bool)
- func (o *FineTune) GetResultFiles() []OpenAIFile
- func (o *FineTune) GetResultFilesOk() ([]OpenAIFile, bool)
- func (o *FineTune) GetStatus() string
- func (o *FineTune) GetStatusOk() (*string, bool)
- func (o *FineTune) GetTrainingFiles() []OpenAIFile
- func (o *FineTune) GetTrainingFilesOk() ([]OpenAIFile, bool)
- func (o *FineTune) GetUpdatedAt() int32
- func (o *FineTune) GetUpdatedAtOk() (*int32, bool)
- func (o *FineTune) GetValidationFiles() []OpenAIFile
- func (o *FineTune) GetValidationFilesOk() ([]OpenAIFile, bool)
- func (o *FineTune) HasEvents() bool
- func (o FineTune) MarshalJSON() ([]byte, error)
- func (o *FineTune) SetCreatedAt(v int32)
- func (o *FineTune) SetEvents(v []FineTuneEvent)
- func (o *FineTune) SetFineTunedModel(v string)
- func (o *FineTune) SetHyperparams(v map[string]interface{})
- func (o *FineTune) SetId(v string)
- func (o *FineTune) SetModel(v string)
- func (o *FineTune) SetObject(v string)
- func (o *FineTune) SetOrganizationId(v string)
- func (o *FineTune) SetResultFiles(v []OpenAIFile)
- func (o *FineTune) SetStatus(v string)
- func (o *FineTune) SetTrainingFiles(v []OpenAIFile)
- func (o *FineTune) SetUpdatedAt(v int32)
- func (o *FineTune) SetValidationFiles(v []OpenAIFile)
- func (o FineTune) ToMap() (map[string]interface{}, error)
- type FineTuneEvent
- func (o *FineTuneEvent) GetCreatedAt() int32
- func (o *FineTuneEvent) GetCreatedAtOk() (*int32, bool)
- func (o *FineTuneEvent) GetLevel() string
- func (o *FineTuneEvent) GetLevelOk() (*string, bool)
- func (o *FineTuneEvent) GetMessage() string
- func (o *FineTuneEvent) GetMessageOk() (*string, bool)
- func (o *FineTuneEvent) GetObject() string
- func (o *FineTuneEvent) GetObjectOk() (*string, bool)
- func (o FineTuneEvent) MarshalJSON() ([]byte, error)
- func (o *FineTuneEvent) SetCreatedAt(v int32)
- func (o *FineTuneEvent) SetLevel(v string)
- func (o *FineTuneEvent) SetMessage(v string)
- func (o *FineTuneEvent) SetObject(v string)
- func (o FineTuneEvent) ToMap() (map[string]interface{}, error)
- type GenericOpenAPIError
- type ImagesResponse
- func (o *ImagesResponse) GetCreated() int32
- func (o *ImagesResponse) GetCreatedOk() (*int32, bool)
- func (o *ImagesResponse) GetData() []ImagesResponseDataInner
- func (o *ImagesResponse) GetDataOk() ([]ImagesResponseDataInner, bool)
- func (o ImagesResponse) MarshalJSON() ([]byte, error)
- func (o *ImagesResponse) SetCreated(v int32)
- func (o *ImagesResponse) SetData(v []ImagesResponseDataInner)
- func (o ImagesResponse) ToMap() (map[string]interface{}, error)
- type ImagesResponseDataInner
- func (o *ImagesResponseDataInner) GetB64Json() string
- func (o *ImagesResponseDataInner) GetB64JsonOk() (*string, bool)
- func (o *ImagesResponseDataInner) GetUrl() string
- func (o *ImagesResponseDataInner) GetUrlOk() (*string, bool)
- func (o *ImagesResponseDataInner) HasB64Json() bool
- func (o *ImagesResponseDataInner) HasUrl() bool
- func (o ImagesResponseDataInner) MarshalJSON() ([]byte, error)
- func (o *ImagesResponseDataInner) SetB64Json(v string)
- func (o *ImagesResponseDataInner) SetUrl(v string)
- func (o ImagesResponseDataInner) ToMap() (map[string]interface{}, error)
- type ListEnginesResponse
- func (o *ListEnginesResponse) GetData() []Engine
- func (o *ListEnginesResponse) GetDataOk() ([]Engine, bool)
- func (o *ListEnginesResponse) GetObject() string
- func (o *ListEnginesResponse) GetObjectOk() (*string, bool)
- func (o ListEnginesResponse) MarshalJSON() ([]byte, error)
- func (o *ListEnginesResponse) SetData(v []Engine)
- func (o *ListEnginesResponse) SetObject(v string)
- func (o ListEnginesResponse) ToMap() (map[string]interface{}, error)
- type ListFilesResponse
- func (o *ListFilesResponse) GetData() []OpenAIFile
- func (o *ListFilesResponse) GetDataOk() ([]OpenAIFile, bool)
- func (o *ListFilesResponse) GetObject() string
- func (o *ListFilesResponse) GetObjectOk() (*string, bool)
- func (o ListFilesResponse) MarshalJSON() ([]byte, error)
- func (o *ListFilesResponse) SetData(v []OpenAIFile)
- func (o *ListFilesResponse) SetObject(v string)
- func (o ListFilesResponse) ToMap() (map[string]interface{}, error)
- type ListFineTuneEventsResponse
- func (o *ListFineTuneEventsResponse) GetData() []FineTuneEvent
- func (o *ListFineTuneEventsResponse) GetDataOk() ([]FineTuneEvent, bool)
- func (o *ListFineTuneEventsResponse) GetObject() string
- func (o *ListFineTuneEventsResponse) GetObjectOk() (*string, bool)
- func (o ListFineTuneEventsResponse) MarshalJSON() ([]byte, error)
- func (o *ListFineTuneEventsResponse) SetData(v []FineTuneEvent)
- func (o *ListFineTuneEventsResponse) SetObject(v string)
- func (o ListFineTuneEventsResponse) ToMap() (map[string]interface{}, error)
- type ListFineTunesResponse
- func (o *ListFineTunesResponse) GetData() []FineTune
- func (o *ListFineTunesResponse) GetDataOk() ([]FineTune, bool)
- func (o *ListFineTunesResponse) GetObject() string
- func (o *ListFineTunesResponse) GetObjectOk() (*string, bool)
- func (o ListFineTunesResponse) MarshalJSON() ([]byte, error)
- func (o *ListFineTunesResponse) SetData(v []FineTune)
- func (o *ListFineTunesResponse) SetObject(v string)
- func (o ListFineTunesResponse) ToMap() (map[string]interface{}, error)
- type ListModelsResponse
- func (o *ListModelsResponse) GetData() []Model
- func (o *ListModelsResponse) GetDataOk() ([]Model, bool)
- func (o *ListModelsResponse) GetObject() string
- func (o *ListModelsResponse) GetObjectOk() (*string, bool)
- func (o ListModelsResponse) MarshalJSON() ([]byte, error)
- func (o *ListModelsResponse) SetData(v []Model)
- func (o *ListModelsResponse) SetObject(v string)
- func (o ListModelsResponse) ToMap() (map[string]interface{}, error)
- type MappedNullable
- type Model
- func (o *Model) GetCreated() int32
- func (o *Model) GetCreatedOk() (*int32, bool)
- func (o *Model) GetId() string
- func (o *Model) GetIdOk() (*string, bool)
- func (o *Model) GetObject() string
- func (o *Model) GetObjectOk() (*string, bool)
- func (o *Model) GetOwnedBy() string
- func (o *Model) GetOwnedByOk() (*string, bool)
- func (o Model) MarshalJSON() ([]byte, error)
- func (o *Model) SetCreated(v int32)
- func (o *Model) SetId(v string)
- func (o *Model) SetObject(v string)
- func (o *Model) SetOwnedBy(v string)
- func (o Model) ToMap() (map[string]interface{}, error)
- type NullableBool
- type NullableChatCompletionRequestMessage
- func (v NullableChatCompletionRequestMessage) Get() *ChatCompletionRequestMessage
- func (v NullableChatCompletionRequestMessage) IsSet() bool
- func (v NullableChatCompletionRequestMessage) MarshalJSON() ([]byte, error)
- func (v *NullableChatCompletionRequestMessage) Set(val *ChatCompletionRequestMessage)
- func (v *NullableChatCompletionRequestMessage) UnmarshalJSON(src []byte) error
- func (v *NullableChatCompletionRequestMessage) Unset()
- type NullableChatCompletionResponseMessage
- func (v NullableChatCompletionResponseMessage) Get() *ChatCompletionResponseMessage
- func (v NullableChatCompletionResponseMessage) IsSet() bool
- func (v NullableChatCompletionResponseMessage) MarshalJSON() ([]byte, error)
- func (v *NullableChatCompletionResponseMessage) Set(val *ChatCompletionResponseMessage)
- func (v *NullableChatCompletionResponseMessage) UnmarshalJSON(src []byte) error
- func (v *NullableChatCompletionResponseMessage) Unset()
- type NullableCreateAnswerRequest
- func (v NullableCreateAnswerRequest) Get() *CreateAnswerRequest
- func (v NullableCreateAnswerRequest) IsSet() bool
- func (v NullableCreateAnswerRequest) MarshalJSON() ([]byte, error)
- func (v *NullableCreateAnswerRequest) Set(val *CreateAnswerRequest)
- func (v *NullableCreateAnswerRequest) UnmarshalJSON(src []byte) error
- func (v *NullableCreateAnswerRequest) Unset()
- type NullableCreateAnswerRequestStop
- func (v NullableCreateAnswerRequestStop) Get() *CreateAnswerRequestStop
- func (v NullableCreateAnswerRequestStop) IsSet() bool
- func (v NullableCreateAnswerRequestStop) MarshalJSON() ([]byte, error)
- func (v *NullableCreateAnswerRequestStop) Set(val *CreateAnswerRequestStop)
- func (v *NullableCreateAnswerRequestStop) UnmarshalJSON(src []byte) error
- func (v *NullableCreateAnswerRequestStop) Unset()
- type NullableCreateAnswerResponse
- func (v NullableCreateAnswerResponse) Get() *CreateAnswerResponse
- func (v NullableCreateAnswerResponse) IsSet() bool
- func (v NullableCreateAnswerResponse) MarshalJSON() ([]byte, error)
- func (v *NullableCreateAnswerResponse) Set(val *CreateAnswerResponse)
- func (v *NullableCreateAnswerResponse) UnmarshalJSON(src []byte) error
- func (v *NullableCreateAnswerResponse) Unset()
- type NullableCreateAnswerResponseSelectedDocumentsInner
- func (v NullableCreateAnswerResponseSelectedDocumentsInner) Get() *CreateAnswerResponseSelectedDocumentsInner
- func (v NullableCreateAnswerResponseSelectedDocumentsInner) IsSet() bool
- func (v NullableCreateAnswerResponseSelectedDocumentsInner) MarshalJSON() ([]byte, error)
- func (v *NullableCreateAnswerResponseSelectedDocumentsInner) Set(val *CreateAnswerResponseSelectedDocumentsInner)
- func (v *NullableCreateAnswerResponseSelectedDocumentsInner) UnmarshalJSON(src []byte) error
- func (v *NullableCreateAnswerResponseSelectedDocumentsInner) Unset()
- type NullableCreateChatCompletionRequest
- func (v NullableCreateChatCompletionRequest) Get() *CreateChatCompletionRequest
- func (v NullableCreateChatCompletionRequest) IsSet() bool
- func (v NullableCreateChatCompletionRequest) MarshalJSON() ([]byte, error)
- func (v *NullableCreateChatCompletionRequest) Set(val *CreateChatCompletionRequest)
- func (v *NullableCreateChatCompletionRequest) UnmarshalJSON(src []byte) error
- func (v *NullableCreateChatCompletionRequest) Unset()
- type NullableCreateChatCompletionRequestStop
- func (v NullableCreateChatCompletionRequestStop) Get() *CreateChatCompletionRequestStop
- func (v NullableCreateChatCompletionRequestStop) IsSet() bool
- func (v NullableCreateChatCompletionRequestStop) MarshalJSON() ([]byte, error)
- func (v *NullableCreateChatCompletionRequestStop) Set(val *CreateChatCompletionRequestStop)
- func (v *NullableCreateChatCompletionRequestStop) UnmarshalJSON(src []byte) error
- func (v *NullableCreateChatCompletionRequestStop) Unset()
- type NullableCreateChatCompletionResponse
- func (v NullableCreateChatCompletionResponse) Get() *CreateChatCompletionResponse
- func (v NullableCreateChatCompletionResponse) IsSet() bool
- func (v NullableCreateChatCompletionResponse) MarshalJSON() ([]byte, error)
- func (v *NullableCreateChatCompletionResponse) Set(val *CreateChatCompletionResponse)
- func (v *NullableCreateChatCompletionResponse) UnmarshalJSON(src []byte) error
- func (v *NullableCreateChatCompletionResponse) Unset()
- type NullableCreateChatCompletionResponseChoicesInner
- func (v NullableCreateChatCompletionResponseChoicesInner) Get() *CreateChatCompletionResponseChoicesInner
- func (v NullableCreateChatCompletionResponseChoicesInner) IsSet() bool
- func (v NullableCreateChatCompletionResponseChoicesInner) MarshalJSON() ([]byte, error)
- func (v *NullableCreateChatCompletionResponseChoicesInner) Set(val *CreateChatCompletionResponseChoicesInner)
- func (v *NullableCreateChatCompletionResponseChoicesInner) UnmarshalJSON(src []byte) error
- func (v *NullableCreateChatCompletionResponseChoicesInner) Unset()
- type NullableCreateClassificationRequest
- func (v NullableCreateClassificationRequest) Get() *CreateClassificationRequest
- func (v NullableCreateClassificationRequest) IsSet() bool
- func (v NullableCreateClassificationRequest) MarshalJSON() ([]byte, error)
- func (v *NullableCreateClassificationRequest) Set(val *CreateClassificationRequest)
- func (v *NullableCreateClassificationRequest) UnmarshalJSON(src []byte) error
- func (v *NullableCreateClassificationRequest) Unset()
- type NullableCreateClassificationResponse
- func (v NullableCreateClassificationResponse) Get() *CreateClassificationResponse
- func (v NullableCreateClassificationResponse) IsSet() bool
- func (v NullableCreateClassificationResponse) MarshalJSON() ([]byte, error)
- func (v *NullableCreateClassificationResponse) Set(val *CreateClassificationResponse)
- func (v *NullableCreateClassificationResponse) UnmarshalJSON(src []byte) error
- func (v *NullableCreateClassificationResponse) Unset()
- type NullableCreateClassificationResponseSelectedExamplesInner
- func (v NullableCreateClassificationResponseSelectedExamplesInner) Get() *CreateClassificationResponseSelectedExamplesInner
- func (v NullableCreateClassificationResponseSelectedExamplesInner) IsSet() bool
- func (v NullableCreateClassificationResponseSelectedExamplesInner) MarshalJSON() ([]byte, error)
- func (v *NullableCreateClassificationResponseSelectedExamplesInner) Set(val *CreateClassificationResponseSelectedExamplesInner)
- func (v *NullableCreateClassificationResponseSelectedExamplesInner) UnmarshalJSON(src []byte) error
- func (v *NullableCreateClassificationResponseSelectedExamplesInner) Unset()
- type NullableCreateCompletionRequest
- func (v NullableCreateCompletionRequest) Get() *CreateCompletionRequest
- func (v NullableCreateCompletionRequest) IsSet() bool
- func (v NullableCreateCompletionRequest) MarshalJSON() ([]byte, error)
- func (v *NullableCreateCompletionRequest) Set(val *CreateCompletionRequest)
- func (v *NullableCreateCompletionRequest) UnmarshalJSON(src []byte) error
- func (v *NullableCreateCompletionRequest) Unset()
- type NullableCreateCompletionRequestPrompt
- func (v NullableCreateCompletionRequestPrompt) Get() *CreateCompletionRequestPrompt
- func (v NullableCreateCompletionRequestPrompt) IsSet() bool
- func (v NullableCreateCompletionRequestPrompt) MarshalJSON() ([]byte, error)
- func (v *NullableCreateCompletionRequestPrompt) Set(val *CreateCompletionRequestPrompt)
- func (v *NullableCreateCompletionRequestPrompt) UnmarshalJSON(src []byte) error
- func (v *NullableCreateCompletionRequestPrompt) Unset()
- type NullableCreateCompletionRequestStop
- func (v NullableCreateCompletionRequestStop) Get() *CreateCompletionRequestStop
- func (v NullableCreateCompletionRequestStop) IsSet() bool
- func (v NullableCreateCompletionRequestStop) MarshalJSON() ([]byte, error)
- func (v *NullableCreateCompletionRequestStop) Set(val *CreateCompletionRequestStop)
- func (v *NullableCreateCompletionRequestStop) UnmarshalJSON(src []byte) error
- func (v *NullableCreateCompletionRequestStop) Unset()
- type NullableCreateCompletionResponse
- func (v NullableCreateCompletionResponse) Get() *CreateCompletionResponse
- func (v NullableCreateCompletionResponse) IsSet() bool
- func (v NullableCreateCompletionResponse) MarshalJSON() ([]byte, error)
- func (v *NullableCreateCompletionResponse) Set(val *CreateCompletionResponse)
- func (v *NullableCreateCompletionResponse) UnmarshalJSON(src []byte) error
- func (v *NullableCreateCompletionResponse) Unset()
- type NullableCreateCompletionResponseChoicesInner
- func (v NullableCreateCompletionResponseChoicesInner) Get() *CreateCompletionResponseChoicesInner
- func (v NullableCreateCompletionResponseChoicesInner) IsSet() bool
- func (v NullableCreateCompletionResponseChoicesInner) MarshalJSON() ([]byte, error)
- func (v *NullableCreateCompletionResponseChoicesInner) Set(val *CreateCompletionResponseChoicesInner)
- func (v *NullableCreateCompletionResponseChoicesInner) UnmarshalJSON(src []byte) error
- func (v *NullableCreateCompletionResponseChoicesInner) Unset()
- type NullableCreateCompletionResponseChoicesInnerLogprobs
- func (v NullableCreateCompletionResponseChoicesInnerLogprobs) Get() *CreateCompletionResponseChoicesInnerLogprobs
- func (v NullableCreateCompletionResponseChoicesInnerLogprobs) IsSet() bool
- func (v NullableCreateCompletionResponseChoicesInnerLogprobs) MarshalJSON() ([]byte, error)
- func (v *NullableCreateCompletionResponseChoicesInnerLogprobs) Set(val *CreateCompletionResponseChoicesInnerLogprobs)
- func (v *NullableCreateCompletionResponseChoicesInnerLogprobs) UnmarshalJSON(src []byte) error
- func (v *NullableCreateCompletionResponseChoicesInnerLogprobs) Unset()
- type NullableCreateCompletionResponseUsage
- func (v NullableCreateCompletionResponseUsage) Get() *CreateCompletionResponseUsage
- func (v NullableCreateCompletionResponseUsage) IsSet() bool
- func (v NullableCreateCompletionResponseUsage) MarshalJSON() ([]byte, error)
- func (v *NullableCreateCompletionResponseUsage) Set(val *CreateCompletionResponseUsage)
- func (v *NullableCreateCompletionResponseUsage) UnmarshalJSON(src []byte) error
- func (v *NullableCreateCompletionResponseUsage) Unset()
- type NullableCreateEditRequest
- func (v NullableCreateEditRequest) Get() *CreateEditRequest
- func (v NullableCreateEditRequest) IsSet() bool
- func (v NullableCreateEditRequest) MarshalJSON() ([]byte, error)
- func (v *NullableCreateEditRequest) Set(val *CreateEditRequest)
- func (v *NullableCreateEditRequest) UnmarshalJSON(src []byte) error
- func (v *NullableCreateEditRequest) Unset()
- type NullableCreateEditResponse
- func (v NullableCreateEditResponse) Get() *CreateEditResponse
- func (v NullableCreateEditResponse) IsSet() bool
- func (v NullableCreateEditResponse) MarshalJSON() ([]byte, error)
- func (v *NullableCreateEditResponse) Set(val *CreateEditResponse)
- func (v *NullableCreateEditResponse) UnmarshalJSON(src []byte) error
- func (v *NullableCreateEditResponse) Unset()
- type NullableCreateEmbeddingRequest
- func (v NullableCreateEmbeddingRequest) Get() *CreateEmbeddingRequest
- func (v NullableCreateEmbeddingRequest) IsSet() bool
- func (v NullableCreateEmbeddingRequest) MarshalJSON() ([]byte, error)
- func (v *NullableCreateEmbeddingRequest) Set(val *CreateEmbeddingRequest)
- func (v *NullableCreateEmbeddingRequest) UnmarshalJSON(src []byte) error
- func (v *NullableCreateEmbeddingRequest) Unset()
- type NullableCreateEmbeddingRequestInput
- func (v NullableCreateEmbeddingRequestInput) Get() *CreateEmbeddingRequestInput
- func (v NullableCreateEmbeddingRequestInput) IsSet() bool
- func (v NullableCreateEmbeddingRequestInput) MarshalJSON() ([]byte, error)
- func (v *NullableCreateEmbeddingRequestInput) Set(val *CreateEmbeddingRequestInput)
- func (v *NullableCreateEmbeddingRequestInput) UnmarshalJSON(src []byte) error
- func (v *NullableCreateEmbeddingRequestInput) Unset()
- type NullableCreateEmbeddingResponse
- func (v NullableCreateEmbeddingResponse) Get() *CreateEmbeddingResponse
- func (v NullableCreateEmbeddingResponse) IsSet() bool
- func (v NullableCreateEmbeddingResponse) MarshalJSON() ([]byte, error)
- func (v *NullableCreateEmbeddingResponse) Set(val *CreateEmbeddingResponse)
- func (v *NullableCreateEmbeddingResponse) UnmarshalJSON(src []byte) error
- func (v *NullableCreateEmbeddingResponse) Unset()
- type NullableCreateEmbeddingResponseDataInner
- func (v NullableCreateEmbeddingResponseDataInner) Get() *CreateEmbeddingResponseDataInner
- func (v NullableCreateEmbeddingResponseDataInner) IsSet() bool
- func (v NullableCreateEmbeddingResponseDataInner) MarshalJSON() ([]byte, error)
- func (v *NullableCreateEmbeddingResponseDataInner) Set(val *CreateEmbeddingResponseDataInner)
- func (v *NullableCreateEmbeddingResponseDataInner) UnmarshalJSON(src []byte) error
- func (v *NullableCreateEmbeddingResponseDataInner) Unset()
- type NullableCreateEmbeddingResponseUsage
- func (v NullableCreateEmbeddingResponseUsage) Get() *CreateEmbeddingResponseUsage
- func (v NullableCreateEmbeddingResponseUsage) IsSet() bool
- func (v NullableCreateEmbeddingResponseUsage) MarshalJSON() ([]byte, error)
- func (v *NullableCreateEmbeddingResponseUsage) Set(val *CreateEmbeddingResponseUsage)
- func (v *NullableCreateEmbeddingResponseUsage) UnmarshalJSON(src []byte) error
- func (v *NullableCreateEmbeddingResponseUsage) Unset()
- type NullableCreateFineTuneRequest
- func (v NullableCreateFineTuneRequest) Get() *CreateFineTuneRequest
- func (v NullableCreateFineTuneRequest) IsSet() bool
- func (v NullableCreateFineTuneRequest) MarshalJSON() ([]byte, error)
- func (v *NullableCreateFineTuneRequest) Set(val *CreateFineTuneRequest)
- func (v *NullableCreateFineTuneRequest) UnmarshalJSON(src []byte) error
- func (v *NullableCreateFineTuneRequest) Unset()
- type NullableCreateImageRequest
- func (v NullableCreateImageRequest) Get() *CreateImageRequest
- func (v NullableCreateImageRequest) IsSet() bool
- func (v NullableCreateImageRequest) MarshalJSON() ([]byte, error)
- func (v *NullableCreateImageRequest) Set(val *CreateImageRequest)
- func (v *NullableCreateImageRequest) UnmarshalJSON(src []byte) error
- func (v *NullableCreateImageRequest) Unset()
- type NullableCreateModerationRequest
- func (v NullableCreateModerationRequest) Get() *CreateModerationRequest
- func (v NullableCreateModerationRequest) IsSet() bool
- func (v NullableCreateModerationRequest) MarshalJSON() ([]byte, error)
- func (v *NullableCreateModerationRequest) Set(val *CreateModerationRequest)
- func (v *NullableCreateModerationRequest) UnmarshalJSON(src []byte) error
- func (v *NullableCreateModerationRequest) Unset()
- type NullableCreateModerationRequestInput
- func (v NullableCreateModerationRequestInput) Get() *CreateModerationRequestInput
- func (v NullableCreateModerationRequestInput) IsSet() bool
- func (v NullableCreateModerationRequestInput) MarshalJSON() ([]byte, error)
- func (v *NullableCreateModerationRequestInput) Set(val *CreateModerationRequestInput)
- func (v *NullableCreateModerationRequestInput) UnmarshalJSON(src []byte) error
- func (v *NullableCreateModerationRequestInput) Unset()
- type NullableCreateModerationResponse
- func (v NullableCreateModerationResponse) Get() *CreateModerationResponse
- func (v NullableCreateModerationResponse) IsSet() bool
- func (v NullableCreateModerationResponse) MarshalJSON() ([]byte, error)
- func (v *NullableCreateModerationResponse) Set(val *CreateModerationResponse)
- func (v *NullableCreateModerationResponse) UnmarshalJSON(src []byte) error
- func (v *NullableCreateModerationResponse) Unset()
- type NullableCreateModerationResponseResultsInner
- func (v NullableCreateModerationResponseResultsInner) Get() *CreateModerationResponseResultsInner
- func (v NullableCreateModerationResponseResultsInner) IsSet() bool
- func (v NullableCreateModerationResponseResultsInner) MarshalJSON() ([]byte, error)
- func (v *NullableCreateModerationResponseResultsInner) Set(val *CreateModerationResponseResultsInner)
- func (v *NullableCreateModerationResponseResultsInner) UnmarshalJSON(src []byte) error
- func (v *NullableCreateModerationResponseResultsInner) Unset()
- type NullableCreateModerationResponseResultsInnerCategories
- func (v NullableCreateModerationResponseResultsInnerCategories) Get() *CreateModerationResponseResultsInnerCategories
- func (v NullableCreateModerationResponseResultsInnerCategories) IsSet() bool
- func (v NullableCreateModerationResponseResultsInnerCategories) MarshalJSON() ([]byte, error)
- func (v *NullableCreateModerationResponseResultsInnerCategories) Set(val *CreateModerationResponseResultsInnerCategories)
- func (v *NullableCreateModerationResponseResultsInnerCategories) UnmarshalJSON(src []byte) error
- func (v *NullableCreateModerationResponseResultsInnerCategories) Unset()
- type NullableCreateModerationResponseResultsInnerCategoryScores
- func (v NullableCreateModerationResponseResultsInnerCategoryScores) Get() *CreateModerationResponseResultsInnerCategoryScores
- func (v NullableCreateModerationResponseResultsInnerCategoryScores) IsSet() bool
- func (v NullableCreateModerationResponseResultsInnerCategoryScores) MarshalJSON() ([]byte, error)
- func (v *NullableCreateModerationResponseResultsInnerCategoryScores) Set(val *CreateModerationResponseResultsInnerCategoryScores)
- func (v *NullableCreateModerationResponseResultsInnerCategoryScores) UnmarshalJSON(src []byte) error
- func (v *NullableCreateModerationResponseResultsInnerCategoryScores) Unset()
- type NullableCreateSearchRequest
- func (v NullableCreateSearchRequest) Get() *CreateSearchRequest
- func (v NullableCreateSearchRequest) IsSet() bool
- func (v NullableCreateSearchRequest) MarshalJSON() ([]byte, error)
- func (v *NullableCreateSearchRequest) Set(val *CreateSearchRequest)
- func (v *NullableCreateSearchRequest) UnmarshalJSON(src []byte) error
- func (v *NullableCreateSearchRequest) Unset()
- type NullableCreateSearchResponse
- func (v NullableCreateSearchResponse) Get() *CreateSearchResponse
- func (v NullableCreateSearchResponse) IsSet() bool
- func (v NullableCreateSearchResponse) MarshalJSON() ([]byte, error)
- func (v *NullableCreateSearchResponse) Set(val *CreateSearchResponse)
- func (v *NullableCreateSearchResponse) UnmarshalJSON(src []byte) error
- func (v *NullableCreateSearchResponse) Unset()
- type NullableCreateSearchResponseDataInner
- func (v NullableCreateSearchResponseDataInner) Get() *CreateSearchResponseDataInner
- func (v NullableCreateSearchResponseDataInner) IsSet() bool
- func (v NullableCreateSearchResponseDataInner) MarshalJSON() ([]byte, error)
- func (v *NullableCreateSearchResponseDataInner) Set(val *CreateSearchResponseDataInner)
- func (v *NullableCreateSearchResponseDataInner) UnmarshalJSON(src []byte) error
- func (v *NullableCreateSearchResponseDataInner) Unset()
- type NullableCreateTranscriptionResponse
- func (v NullableCreateTranscriptionResponse) Get() *CreateTranscriptionResponse
- func (v NullableCreateTranscriptionResponse) IsSet() bool
- func (v NullableCreateTranscriptionResponse) MarshalJSON() ([]byte, error)
- func (v *NullableCreateTranscriptionResponse) Set(val *CreateTranscriptionResponse)
- func (v *NullableCreateTranscriptionResponse) UnmarshalJSON(src []byte) error
- func (v *NullableCreateTranscriptionResponse) Unset()
- type NullableCreateTranslationResponse
- func (v NullableCreateTranslationResponse) Get() *CreateTranslationResponse
- func (v NullableCreateTranslationResponse) IsSet() bool
- func (v NullableCreateTranslationResponse) MarshalJSON() ([]byte, error)
- func (v *NullableCreateTranslationResponse) Set(val *CreateTranslationResponse)
- func (v *NullableCreateTranslationResponse) UnmarshalJSON(src []byte) error
- func (v *NullableCreateTranslationResponse) Unset()
- type NullableDeleteFileResponse
- func (v NullableDeleteFileResponse) Get() *DeleteFileResponse
- func (v NullableDeleteFileResponse) IsSet() bool
- func (v NullableDeleteFileResponse) MarshalJSON() ([]byte, error)
- func (v *NullableDeleteFileResponse) Set(val *DeleteFileResponse)
- func (v *NullableDeleteFileResponse) UnmarshalJSON(src []byte) error
- func (v *NullableDeleteFileResponse) Unset()
- type NullableDeleteModelResponse
- func (v NullableDeleteModelResponse) Get() *DeleteModelResponse
- func (v NullableDeleteModelResponse) IsSet() bool
- func (v NullableDeleteModelResponse) MarshalJSON() ([]byte, error)
- func (v *NullableDeleteModelResponse) Set(val *DeleteModelResponse)
- func (v *NullableDeleteModelResponse) UnmarshalJSON(src []byte) error
- func (v *NullableDeleteModelResponse) Unset()
- type NullableEngine
- type NullableFineTune
- type NullableFineTuneEvent
- func (v NullableFineTuneEvent) Get() *FineTuneEvent
- func (v NullableFineTuneEvent) IsSet() bool
- func (v NullableFineTuneEvent) MarshalJSON() ([]byte, error)
- func (v *NullableFineTuneEvent) Set(val *FineTuneEvent)
- func (v *NullableFineTuneEvent) UnmarshalJSON(src []byte) error
- func (v *NullableFineTuneEvent) Unset()
- type NullableFloat32
- type NullableFloat64
- type NullableImagesResponse
- func (v NullableImagesResponse) Get() *ImagesResponse
- func (v NullableImagesResponse) IsSet() bool
- func (v NullableImagesResponse) MarshalJSON() ([]byte, error)
- func (v *NullableImagesResponse) Set(val *ImagesResponse)
- func (v *NullableImagesResponse) UnmarshalJSON(src []byte) error
- func (v *NullableImagesResponse) Unset()
- type NullableImagesResponseDataInner
- func (v NullableImagesResponseDataInner) Get() *ImagesResponseDataInner
- func (v NullableImagesResponseDataInner) IsSet() bool
- func (v NullableImagesResponseDataInner) MarshalJSON() ([]byte, error)
- func (v *NullableImagesResponseDataInner) Set(val *ImagesResponseDataInner)
- func (v *NullableImagesResponseDataInner) UnmarshalJSON(src []byte) error
- func (v *NullableImagesResponseDataInner) Unset()
- type NullableInt
- type NullableInt32
- type NullableInt64
- type NullableListEnginesResponse
- func (v NullableListEnginesResponse) Get() *ListEnginesResponse
- func (v NullableListEnginesResponse) IsSet() bool
- func (v NullableListEnginesResponse) MarshalJSON() ([]byte, error)
- func (v *NullableListEnginesResponse) Set(val *ListEnginesResponse)
- func (v *NullableListEnginesResponse) UnmarshalJSON(src []byte) error
- func (v *NullableListEnginesResponse) Unset()
- type NullableListFilesResponse
- func (v NullableListFilesResponse) Get() *ListFilesResponse
- func (v NullableListFilesResponse) IsSet() bool
- func (v NullableListFilesResponse) MarshalJSON() ([]byte, error)
- func (v *NullableListFilesResponse) Set(val *ListFilesResponse)
- func (v *NullableListFilesResponse) UnmarshalJSON(src []byte) error
- func (v *NullableListFilesResponse) Unset()
- type NullableListFineTuneEventsResponse
- func (v NullableListFineTuneEventsResponse) Get() *ListFineTuneEventsResponse
- func (v NullableListFineTuneEventsResponse) IsSet() bool
- func (v NullableListFineTuneEventsResponse) MarshalJSON() ([]byte, error)
- func (v *NullableListFineTuneEventsResponse) Set(val *ListFineTuneEventsResponse)
- func (v *NullableListFineTuneEventsResponse) UnmarshalJSON(src []byte) error
- func (v *NullableListFineTuneEventsResponse) Unset()
- type NullableListFineTunesResponse
- func (v NullableListFineTunesResponse) Get() *ListFineTunesResponse
- func (v NullableListFineTunesResponse) IsSet() bool
- func (v NullableListFineTunesResponse) MarshalJSON() ([]byte, error)
- func (v *NullableListFineTunesResponse) Set(val *ListFineTunesResponse)
- func (v *NullableListFineTunesResponse) UnmarshalJSON(src []byte) error
- func (v *NullableListFineTunesResponse) Unset()
- type NullableListModelsResponse
- func (v NullableListModelsResponse) Get() *ListModelsResponse
- func (v NullableListModelsResponse) IsSet() bool
- func (v NullableListModelsResponse) MarshalJSON() ([]byte, error)
- func (v *NullableListModelsResponse) Set(val *ListModelsResponse)
- func (v *NullableListModelsResponse) UnmarshalJSON(src []byte) error
- func (v *NullableListModelsResponse) Unset()
- type NullableModel
- type NullableOpenAIFile
- type NullableString
- type NullableTime
- type OpenAIApiService
- func (a *OpenAIApiService) CancelFineTune(ctx context.Context, fineTuneId string) ApiCancelFineTuneRequest
- func (a *OpenAIApiService) CancelFineTuneExecute(r ApiCancelFineTuneRequest) (*FineTune, *http.Response, error)
- func (a *OpenAIApiService) CreateAnswer(ctx context.Context) ApiCreateAnswerRequest
- func (a *OpenAIApiService) CreateAnswerExecute(r ApiCreateAnswerRequest) (*CreateAnswerResponse, *http.Response, error)
- func (a *OpenAIApiService) CreateChatCompletion(ctx context.Context) ApiCreateChatCompletionRequest
- func (a *OpenAIApiService) CreateChatCompletionExecute(r ApiCreateChatCompletionRequest) (*CreateChatCompletionResponse, *http.Response, error)
- func (a *OpenAIApiService) CreateClassification(ctx context.Context) ApiCreateClassificationRequest
- func (a *OpenAIApiService) CreateClassificationExecute(r ApiCreateClassificationRequest) (*CreateClassificationResponse, *http.Response, error)
- func (a *OpenAIApiService) CreateCompletion(ctx context.Context) ApiCreateCompletionRequest
- func (a *OpenAIApiService) CreateCompletionExecute(r ApiCreateCompletionRequest) (*CreateCompletionResponse, *http.Response, error)
- func (a *OpenAIApiService) CreateEdit(ctx context.Context) ApiCreateEditRequest
- func (a *OpenAIApiService) CreateEditExecute(r ApiCreateEditRequest) (*CreateEditResponse, *http.Response, error)
- func (a *OpenAIApiService) CreateEmbedding(ctx context.Context) ApiCreateEmbeddingRequest
- func (a *OpenAIApiService) CreateEmbeddingExecute(r ApiCreateEmbeddingRequest) (*CreateEmbeddingResponse, *http.Response, error)
- func (a *OpenAIApiService) CreateFile(ctx context.Context) ApiCreateFileRequest
- func (a *OpenAIApiService) CreateFileExecute(r ApiCreateFileRequest) (*OpenAIFile, *http.Response, error)
- func (a *OpenAIApiService) CreateFineTune(ctx context.Context) ApiCreateFineTuneRequest
- func (a *OpenAIApiService) CreateFineTuneExecute(r ApiCreateFineTuneRequest) (*FineTune, *http.Response, error)
- func (a *OpenAIApiService) CreateImage(ctx context.Context) ApiCreateImageRequest
- func (a *OpenAIApiService) CreateImageEdit(ctx context.Context) ApiCreateImageEditRequest
- func (a *OpenAIApiService) CreateImageEditExecute(r ApiCreateImageEditRequest) (*ImagesResponse, *http.Response, error)
- func (a *OpenAIApiService) CreateImageExecute(r ApiCreateImageRequest) (*ImagesResponse, *http.Response, error)
- func (a *OpenAIApiService) CreateImageVariation(ctx context.Context) ApiCreateImageVariationRequest
- func (a *OpenAIApiService) CreateImageVariationExecute(r ApiCreateImageVariationRequest) (*ImagesResponse, *http.Response, error)
- func (a *OpenAIApiService) CreateModeration(ctx context.Context) ApiCreateModerationRequest
- func (a *OpenAIApiService) CreateModerationExecute(r ApiCreateModerationRequest) (*CreateModerationResponse, *http.Response, error)
- func (a *OpenAIApiService) CreateSearch(ctx context.Context, engineId string) ApiCreateSearchRequest
- func (a *OpenAIApiService) CreateSearchExecute(r ApiCreateSearchRequest) (*CreateSearchResponse, *http.Response, error)
- func (a *OpenAIApiService) CreateTranscription(ctx context.Context) ApiCreateTranscriptionRequest
- func (a *OpenAIApiService) CreateTranscriptionExecute(r ApiCreateTranscriptionRequest) (*CreateTranscriptionResponse, *http.Response, error)
- func (a *OpenAIApiService) CreateTranslation(ctx context.Context) ApiCreateTranslationRequest
- func (a *OpenAIApiService) CreateTranslationExecute(r ApiCreateTranslationRequest) (*CreateTranslationResponse, *http.Response, error)
- func (a *OpenAIApiService) DeleteFile(ctx context.Context, fileId string) ApiDeleteFileRequest
- func (a *OpenAIApiService) DeleteFileExecute(r ApiDeleteFileRequest) (*DeleteFileResponse, *http.Response, error)
- func (a *OpenAIApiService) DeleteModel(ctx context.Context, model string) ApiDeleteModelRequest
- func (a *OpenAIApiService) DeleteModelExecute(r ApiDeleteModelRequest) (*DeleteModelResponse, *http.Response, error)
- func (a *OpenAIApiService) DownloadFile(ctx context.Context, fileId string) ApiDownloadFileRequest
- func (a *OpenAIApiService) DownloadFileExecute(r ApiDownloadFileRequest) (string, *http.Response, error)
- func (a *OpenAIApiService) ListEngines(ctx context.Context) ApiListEnginesRequest
- func (a *OpenAIApiService) ListEnginesExecute(r ApiListEnginesRequest) (*ListEnginesResponse, *http.Response, error)
- func (a *OpenAIApiService) ListFiles(ctx context.Context) ApiListFilesRequest
- func (a *OpenAIApiService) ListFilesExecute(r ApiListFilesRequest) (*ListFilesResponse, *http.Response, error)
- func (a *OpenAIApiService) ListFineTuneEvents(ctx context.Context, fineTuneId string) ApiListFineTuneEventsRequest
- func (a *OpenAIApiService) ListFineTuneEventsExecute(r ApiListFineTuneEventsRequest) (*ListFineTuneEventsResponse, *http.Response, error)
- func (a *OpenAIApiService) ListFineTunes(ctx context.Context) ApiListFineTunesRequest
- func (a *OpenAIApiService) ListFineTunesExecute(r ApiListFineTunesRequest) (*ListFineTunesResponse, *http.Response, error)
- func (a *OpenAIApiService) ListModels(ctx context.Context) ApiListModelsRequest
- func (a *OpenAIApiService) ListModelsExecute(r ApiListModelsRequest) (*ListModelsResponse, *http.Response, error)
- func (a *OpenAIApiService) RetrieveEngine(ctx context.Context, engineId string) ApiRetrieveEngineRequest
- func (a *OpenAIApiService) RetrieveEngineExecute(r ApiRetrieveEngineRequest) (*Engine, *http.Response, error)
- func (a *OpenAIApiService) RetrieveFile(ctx context.Context, fileId string) ApiRetrieveFileRequest
- func (a *OpenAIApiService) RetrieveFileExecute(r ApiRetrieveFileRequest) (*OpenAIFile, *http.Response, error)
- func (a *OpenAIApiService) RetrieveFineTune(ctx context.Context, fineTuneId string) ApiRetrieveFineTuneRequest
- func (a *OpenAIApiService) RetrieveFineTuneExecute(r ApiRetrieveFineTuneRequest) (*FineTune, *http.Response, error)
- func (a *OpenAIApiService) RetrieveModel(ctx context.Context, model string) ApiRetrieveModelRequest
- func (a *OpenAIApiService) RetrieveModelExecute(r ApiRetrieveModelRequest) (*Model, *http.Response, error)
- type OpenAIFile
- func (o *OpenAIFile) GetBytes() int32
- func (o *OpenAIFile) GetBytesOk() (*int32, bool)
- func (o *OpenAIFile) GetCreatedAt() int32
- func (o *OpenAIFile) GetCreatedAtOk() (*int32, bool)
- func (o *OpenAIFile) GetFilename() string
- func (o *OpenAIFile) GetFilenameOk() (*string, bool)
- func (o *OpenAIFile) GetId() string
- func (o *OpenAIFile) GetIdOk() (*string, bool)
- func (o *OpenAIFile) GetObject() string
- func (o *OpenAIFile) GetObjectOk() (*string, bool)
- func (o *OpenAIFile) GetPurpose() string
- func (o *OpenAIFile) GetPurposeOk() (*string, bool)
- func (o *OpenAIFile) GetStatus() string
- func (o *OpenAIFile) GetStatusDetails() map[string]interface{}
- func (o *OpenAIFile) GetStatusDetailsOk() (map[string]interface{}, bool)
- func (o *OpenAIFile) GetStatusOk() (*string, bool)
- func (o *OpenAIFile) HasStatus() bool
- func (o *OpenAIFile) HasStatusDetails() bool
- func (o OpenAIFile) MarshalJSON() ([]byte, error)
- func (o *OpenAIFile) SetBytes(v int32)
- func (o *OpenAIFile) SetCreatedAt(v int32)
- func (o *OpenAIFile) SetFilename(v string)
- func (o *OpenAIFile) SetId(v string)
- func (o *OpenAIFile) SetObject(v string)
- func (o *OpenAIFile) SetPurpose(v string)
- func (o *OpenAIFile) SetStatus(v string)
- func (o *OpenAIFile) SetStatusDetails(v map[string]interface{})
- func (o OpenAIFile) ToMap() (map[string]interface{}, error)
- type ServerConfiguration
- type ServerConfigurations
- type ServerVariable
Constants ¶
This section is empty.
Variables ¶
var ( // ContextServerIndex uses a server configuration from the index. ContextServerIndex = contextKey("serverIndex") // ContextOperationServerIndices uses a server configuration from the index mapping. ContextOperationServerIndices = contextKey("serverOperationIndices") // ContextServerVariables overrides a server configuration variables. ContextServerVariables = contextKey("serverVariables") // ContextOperationServerVariables overrides a server configuration variables using operation specific values. ContextOperationServerVariables = contextKey("serverOperationVariables") )
Functions ¶
func CacheExpires ¶
CacheExpires helper function to determine remaining time before repeating a request.
func PtrFloat32 ¶
PtrFloat32 is a helper routine that returns a pointer to given float value.
func PtrFloat64 ¶
PtrFloat64 is a helper routine that returns a pointer to given float value.
Types ¶
type APIClient ¶
type APIClient struct { OpenAIApi *OpenAIApiService // contains filtered or unexported fields }
APIClient manages communication with the OpenAI API API v1.2.0 In most cases there should be only one, shared, APIClient.
func NewAPIClient ¶
func NewAPIClient(cfg *Configuration) *APIClient
NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.
func (*APIClient) GetConfig ¶
func (c *APIClient) GetConfig() *Configuration
Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior
type APIKey ¶
APIKey provides API key based authentication to a request passed via context using ContextAPIKey
type APIResponse ¶
type APIResponse struct { *http.Response `json:"-"` Message string `json:"message,omitempty"` // Operation is the name of the OpenAPI operation. Operation string `json:"operation,omitempty"` // RequestURL is the request URL. This value is always available, even if the // embedded *http.Response is nil. RequestURL string `json:"url,omitempty"` // Method is the HTTP method used for the request. This value is always // available, even if the embedded *http.Response is nil. Method string `json:"method,omitempty"` // Payload holds the contents of the response body (which may be nil or empty). // This is provided here as the raw response.Body() reader will have already // been drained. Payload []byte `json:"-"` }
APIResponse stores the API response returned by the server.
func NewAPIResponse ¶
func NewAPIResponse(r *http.Response) *APIResponse
NewAPIResponse returns a new APIResponse object.
func NewAPIResponseWithError ¶
func NewAPIResponseWithError(errorMessage string) *APIResponse
NewAPIResponseWithError returns a new APIResponse object with the provided error message.
type ApiCancelFineTuneRequest ¶
type ApiCancelFineTuneRequest struct { ApiService *OpenAIApiService // contains filtered or unexported fields }
type ApiCreateAnswerRequest ¶
type ApiCreateAnswerRequest struct { ApiService *OpenAIApiService // contains filtered or unexported fields }
func (ApiCreateAnswerRequest) CreateAnswerRequest ¶
func (r ApiCreateAnswerRequest) CreateAnswerRequest(createAnswerRequest CreateAnswerRequest) ApiCreateAnswerRequest
func (ApiCreateAnswerRequest) Execute ¶
func (r ApiCreateAnswerRequest) Execute() (*CreateAnswerResponse, *http.Response, error)
type ApiCreateChatCompletionRequest ¶
type ApiCreateChatCompletionRequest struct { ApiService *OpenAIApiService // contains filtered or unexported fields }
func (ApiCreateChatCompletionRequest) CreateChatCompletionRequest ¶
func (r ApiCreateChatCompletionRequest) CreateChatCompletionRequest(createChatCompletionRequest CreateChatCompletionRequest) ApiCreateChatCompletionRequest
func (ApiCreateChatCompletionRequest) Execute ¶
func (r ApiCreateChatCompletionRequest) Execute() (*CreateChatCompletionResponse, *http.Response, error)
type ApiCreateClassificationRequest ¶
type ApiCreateClassificationRequest struct { ApiService *OpenAIApiService // contains filtered or unexported fields }
func (ApiCreateClassificationRequest) CreateClassificationRequest ¶
func (r ApiCreateClassificationRequest) CreateClassificationRequest(createClassificationRequest CreateClassificationRequest) ApiCreateClassificationRequest
func (ApiCreateClassificationRequest) Execute ¶
func (r ApiCreateClassificationRequest) Execute() (*CreateClassificationResponse, *http.Response, error)
type ApiCreateCompletionRequest ¶
type ApiCreateCompletionRequest struct { ApiService *OpenAIApiService // contains filtered or unexported fields }
func (ApiCreateCompletionRequest) CreateCompletionRequest ¶
func (r ApiCreateCompletionRequest) CreateCompletionRequest(createCompletionRequest CreateCompletionRequest) ApiCreateCompletionRequest
func (ApiCreateCompletionRequest) Execute ¶
func (r ApiCreateCompletionRequest) Execute() (*CreateCompletionResponse, *http.Response, error)
type ApiCreateEditRequest ¶
type ApiCreateEditRequest struct { ApiService *OpenAIApiService // contains filtered or unexported fields }
func (ApiCreateEditRequest) CreateEditRequest ¶
func (r ApiCreateEditRequest) CreateEditRequest(createEditRequest CreateEditRequest) ApiCreateEditRequest
func (ApiCreateEditRequest) Execute ¶
func (r ApiCreateEditRequest) Execute() (*CreateEditResponse, *http.Response, error)
type ApiCreateEmbeddingRequest ¶
type ApiCreateEmbeddingRequest struct { ApiService *OpenAIApiService // contains filtered or unexported fields }
func (ApiCreateEmbeddingRequest) CreateEmbeddingRequest ¶
func (r ApiCreateEmbeddingRequest) CreateEmbeddingRequest(createEmbeddingRequest CreateEmbeddingRequest) ApiCreateEmbeddingRequest
func (ApiCreateEmbeddingRequest) Execute ¶
func (r ApiCreateEmbeddingRequest) Execute() (*CreateEmbeddingResponse, *http.Response, error)
type ApiCreateFileRequest ¶
type ApiCreateFileRequest struct { ApiService *OpenAIApiService // contains filtered or unexported fields }
func (ApiCreateFileRequest) Execute ¶
func (r ApiCreateFileRequest) Execute() (*OpenAIFile, *http.Response, error)
func (ApiCreateFileRequest) File ¶
func (r ApiCreateFileRequest) File(file *os.File) ApiCreateFileRequest
Name of the [JSON Lines](https://jsonlines.readthedocs.io/en/latest/) file to be uploaded. If the `purpose` is set to \\\"fine-tune\\\", each line is a JSON record with \\\"prompt\\\" and \\\"completion\\\" fields representing your [training examples](/docs/guides/fine-tuning/prepare-training-data).
func (ApiCreateFileRequest) Purpose ¶
func (r ApiCreateFileRequest) Purpose(purpose string) ApiCreateFileRequest
The intended purpose of the uploaded documents. Use \\\"fine-tune\\\" for [Fine-tuning](/docs/api-reference/fine-tunes). This allows us to validate the format of the uploaded file.
type ApiCreateFineTuneRequest ¶
type ApiCreateFineTuneRequest struct { ApiService *OpenAIApiService // contains filtered or unexported fields }
func (ApiCreateFineTuneRequest) CreateFineTuneRequest ¶
func (r ApiCreateFineTuneRequest) CreateFineTuneRequest(createFineTuneRequest CreateFineTuneRequest) ApiCreateFineTuneRequest
type ApiCreateImageEditRequest ¶
type ApiCreateImageEditRequest struct { ApiService *OpenAIApiService // contains filtered or unexported fields }
func (ApiCreateImageEditRequest) Execute ¶
func (r ApiCreateImageEditRequest) Execute() (*ImagesResponse, *http.Response, error)
func (ApiCreateImageEditRequest) Image ¶
func (r ApiCreateImageEditRequest) Image(image *os.File) ApiCreateImageEditRequest
The image to edit. Must be a valid PNG file, less than 4MB, and square. If mask is not provided, image must have transparency, which will be used as the mask.
func (ApiCreateImageEditRequest) Mask ¶
func (r ApiCreateImageEditRequest) Mask(mask *os.File) ApiCreateImageEditRequest
An additional image whose fully transparent areas (e.g. where alpha is zero) indicate where `image` should be edited. Must be a valid PNG file, less than 4MB, and have the same dimensions as `image`.
func (ApiCreateImageEditRequest) N ¶
func (r ApiCreateImageEditRequest) N(n int32) ApiCreateImageEditRequest
The number of images to generate. Must be between 1 and 10.
func (ApiCreateImageEditRequest) Prompt ¶
func (r ApiCreateImageEditRequest) Prompt(prompt string) ApiCreateImageEditRequest
A text description of the desired image(s). The maximum length is 1000 characters.
func (ApiCreateImageEditRequest) ResponseFormat ¶
func (r ApiCreateImageEditRequest) ResponseFormat(responseFormat string) ApiCreateImageEditRequest
The format in which the generated images are returned. Must be one of `url` or `b64_json`.
func (ApiCreateImageEditRequest) Size ¶
func (r ApiCreateImageEditRequest) Size(size string) ApiCreateImageEditRequest
The size of the generated images. Must be one of `256x256`, `512x512`, or `1024x1024`.
func (ApiCreateImageEditRequest) User ¶
func (r ApiCreateImageEditRequest) User(user string) ApiCreateImageEditRequest
A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices/end-user-ids).
type ApiCreateImageRequest ¶
type ApiCreateImageRequest struct { ApiService *OpenAIApiService // contains filtered or unexported fields }
func (ApiCreateImageRequest) CreateImageRequest ¶
func (r ApiCreateImageRequest) CreateImageRequest(createImageRequest CreateImageRequest) ApiCreateImageRequest
func (ApiCreateImageRequest) Execute ¶
func (r ApiCreateImageRequest) Execute() (*ImagesResponse, *http.Response, error)
type ApiCreateImageVariationRequest ¶
type ApiCreateImageVariationRequest struct { ApiService *OpenAIApiService // contains filtered or unexported fields }
func (ApiCreateImageVariationRequest) Execute ¶
func (r ApiCreateImageVariationRequest) Execute() (*ImagesResponse, *http.Response, error)
func (ApiCreateImageVariationRequest) Image ¶
func (r ApiCreateImageVariationRequest) Image(image *os.File) ApiCreateImageVariationRequest
The image to use as the basis for the variation(s). Must be a valid PNG file, less than 4MB, and square.
func (ApiCreateImageVariationRequest) N ¶
The number of images to generate. Must be between 1 and 10.
func (ApiCreateImageVariationRequest) ResponseFormat ¶
func (r ApiCreateImageVariationRequest) ResponseFormat(responseFormat string) ApiCreateImageVariationRequest
The format in which the generated images are returned. Must be one of `url` or `b64_json`.
func (ApiCreateImageVariationRequest) Size ¶
func (r ApiCreateImageVariationRequest) Size(size string) ApiCreateImageVariationRequest
The size of the generated images. Must be one of `256x256`, `512x512`, or `1024x1024`.
func (ApiCreateImageVariationRequest) User ¶
func (r ApiCreateImageVariationRequest) User(user string) ApiCreateImageVariationRequest
A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices/end-user-ids).
type ApiCreateModerationRequest ¶
type ApiCreateModerationRequest struct { ApiService *OpenAIApiService // contains filtered or unexported fields }
func (ApiCreateModerationRequest) CreateModerationRequest ¶
func (r ApiCreateModerationRequest) CreateModerationRequest(createModerationRequest CreateModerationRequest) ApiCreateModerationRequest
func (ApiCreateModerationRequest) Execute ¶
func (r ApiCreateModerationRequest) Execute() (*CreateModerationResponse, *http.Response, error)
type ApiCreateSearchRequest ¶
type ApiCreateSearchRequest struct { ApiService *OpenAIApiService // contains filtered or unexported fields }
func (ApiCreateSearchRequest) CreateSearchRequest ¶
func (r ApiCreateSearchRequest) CreateSearchRequest(createSearchRequest CreateSearchRequest) ApiCreateSearchRequest
func (ApiCreateSearchRequest) Execute ¶
func (r ApiCreateSearchRequest) Execute() (*CreateSearchResponse, *http.Response, error)
type ApiCreateTranscriptionRequest ¶
type ApiCreateTranscriptionRequest struct { ApiService *OpenAIApiService // contains filtered or unexported fields }
func (ApiCreateTranscriptionRequest) Execute ¶
func (r ApiCreateTranscriptionRequest) Execute() (*CreateTranscriptionResponse, *http.Response, error)
func (ApiCreateTranscriptionRequest) File ¶
func (r ApiCreateTranscriptionRequest) File(file *os.File) ApiCreateTranscriptionRequest
The audio file to transcribe, in one of these formats: mp3, mp4, mpeg, mpga, m4a, wav, or webm.
func (ApiCreateTranscriptionRequest) Language ¶
func (r ApiCreateTranscriptionRequest) Language(language string) ApiCreateTranscriptionRequest
The language of the input audio. Supplying the input language in [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format will improve accuracy and latency.
func (ApiCreateTranscriptionRequest) Model ¶
func (r ApiCreateTranscriptionRequest) Model(model string) ApiCreateTranscriptionRequest
ID of the model to use. Only `whisper-1` is currently available.
func (ApiCreateTranscriptionRequest) Prompt ¶
func (r ApiCreateTranscriptionRequest) Prompt(prompt string) ApiCreateTranscriptionRequest
An optional text to guide the model's style or continue a previous audio segment. The [prompt](/docs/guides/speech-to-text/prompting) should match the audio language.
func (ApiCreateTranscriptionRequest) ResponseFormat ¶
func (r ApiCreateTranscriptionRequest) ResponseFormat(responseFormat string) ApiCreateTranscriptionRequest
The format of the transcript output, in one of these options: json, text, srt, verbose_json, or vtt.
func (ApiCreateTranscriptionRequest) Temperature ¶
func (r ApiCreateTranscriptionRequest) Temperature(temperature float32) ApiCreateTranscriptionRequest
The sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. If set to 0, the model will use [log probability](https://en.wikipedia.org/wiki/Log_probability) to automatically increase the temperature until certain thresholds are hit.
type ApiCreateTranslationRequest ¶
type ApiCreateTranslationRequest struct { ApiService *OpenAIApiService // contains filtered or unexported fields }
func (ApiCreateTranslationRequest) Execute ¶
func (r ApiCreateTranslationRequest) Execute() (*CreateTranslationResponse, *http.Response, error)
func (ApiCreateTranslationRequest) File ¶
func (r ApiCreateTranslationRequest) File(file *os.File) ApiCreateTranslationRequest
The audio file to translate, in one of these formats: mp3, mp4, mpeg, mpga, m4a, wav, or webm.
func (ApiCreateTranslationRequest) Model ¶
func (r ApiCreateTranslationRequest) Model(model string) ApiCreateTranslationRequest
ID of the model to use. Only `whisper-1` is currently available.
func (ApiCreateTranslationRequest) Prompt ¶
func (r ApiCreateTranslationRequest) Prompt(prompt string) ApiCreateTranslationRequest
An optional text to guide the model's style or continue a previous audio segment. The [prompt](/docs/guides/speech-to-text/prompting) should be in English.
func (ApiCreateTranslationRequest) ResponseFormat ¶
func (r ApiCreateTranslationRequest) ResponseFormat(responseFormat string) ApiCreateTranslationRequest
The format of the transcript output, in one of these options: json, text, srt, verbose_json, or vtt.
func (ApiCreateTranslationRequest) Temperature ¶
func (r ApiCreateTranslationRequest) Temperature(temperature float32) ApiCreateTranslationRequest
The sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. If set to 0, the model will use [log probability](https://en.wikipedia.org/wiki/Log_probability) to automatically increase the temperature until certain thresholds are hit.
type ApiDeleteFileRequest ¶
type ApiDeleteFileRequest struct { ApiService *OpenAIApiService // contains filtered or unexported fields }
func (ApiDeleteFileRequest) Execute ¶
func (r ApiDeleteFileRequest) Execute() (*DeleteFileResponse, *http.Response, error)
type ApiDeleteModelRequest ¶
type ApiDeleteModelRequest struct { ApiService *OpenAIApiService // contains filtered or unexported fields }
func (ApiDeleteModelRequest) Execute ¶
func (r ApiDeleteModelRequest) Execute() (*DeleteModelResponse, *http.Response, error)
type ApiDownloadFileRequest ¶
type ApiDownloadFileRequest struct { ApiService *OpenAIApiService // contains filtered or unexported fields }
type ApiListEnginesRequest ¶
type ApiListEnginesRequest struct { ApiService *OpenAIApiService // contains filtered or unexported fields }
func (ApiListEnginesRequest) Execute ¶
func (r ApiListEnginesRequest) Execute() (*ListEnginesResponse, *http.Response, error)
type ApiListFilesRequest ¶
type ApiListFilesRequest struct { ApiService *OpenAIApiService // contains filtered or unexported fields }
func (ApiListFilesRequest) Execute ¶
func (r ApiListFilesRequest) Execute() (*ListFilesResponse, *http.Response, error)
type ApiListFineTuneEventsRequest ¶
type ApiListFineTuneEventsRequest struct { ApiService *OpenAIApiService // contains filtered or unexported fields }
func (ApiListFineTuneEventsRequest) Execute ¶
func (r ApiListFineTuneEventsRequest) Execute() (*ListFineTuneEventsResponse, *http.Response, error)
func (ApiListFineTuneEventsRequest) Stream ¶
func (r ApiListFineTuneEventsRequest) Stream(stream bool) ApiListFineTuneEventsRequest
Whether to stream events for the fine-tune job. If set to true, events will be sent as data-only [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format) as they become available. The stream will terminate with a `data: [DONE]` message when the job is finished (succeeded, cancelled, or failed). If set to false, only events generated so far will be returned.
type ApiListFineTunesRequest ¶
type ApiListFineTunesRequest struct { ApiService *OpenAIApiService // contains filtered or unexported fields }
func (ApiListFineTunesRequest) Execute ¶
func (r ApiListFineTunesRequest) Execute() (*ListFineTunesResponse, *http.Response, error)
type ApiListModelsRequest ¶
type ApiListModelsRequest struct { ApiService *OpenAIApiService // contains filtered or unexported fields }
func (ApiListModelsRequest) Execute ¶
func (r ApiListModelsRequest) Execute() (*ListModelsResponse, *http.Response, error)
type ApiRetrieveEngineRequest ¶
type ApiRetrieveEngineRequest struct { ApiService *OpenAIApiService // contains filtered or unexported fields }
type ApiRetrieveFileRequest ¶
type ApiRetrieveFileRequest struct { ApiService *OpenAIApiService // contains filtered or unexported fields }
func (ApiRetrieveFileRequest) Execute ¶
func (r ApiRetrieveFileRequest) Execute() (*OpenAIFile, *http.Response, error)
type ApiRetrieveFineTuneRequest ¶
type ApiRetrieveFineTuneRequest struct { ApiService *OpenAIApiService // contains filtered or unexported fields }
type ApiRetrieveModelRequest ¶
type ApiRetrieveModelRequest struct { ApiService *OpenAIApiService // contains filtered or unexported fields }
type BasicAuth ¶
type BasicAuth struct { UserName string `json:"userName,omitempty"` Password string `json:"password,omitempty"` }
BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth
type ChatCompletionRequestMessage ¶
type ChatCompletionRequestMessage struct { // The role of the author of this message. Role string `json:"role"` // The contents of the message Content string `json:"content"` // The name of the user in a multi-user chat Name *string `json:"name,omitempty"` }
ChatCompletionRequestMessage struct for ChatCompletionRequestMessage
func NewChatCompletionRequestMessage ¶
func NewChatCompletionRequestMessage(role string, content string) *ChatCompletionRequestMessage
NewChatCompletionRequestMessage instantiates a new ChatCompletionRequestMessage 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 NewChatCompletionRequestMessageWithDefaults ¶
func NewChatCompletionRequestMessageWithDefaults() *ChatCompletionRequestMessage
NewChatCompletionRequestMessageWithDefaults instantiates a new ChatCompletionRequestMessage 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 (*ChatCompletionRequestMessage) GetContent ¶
func (o *ChatCompletionRequestMessage) GetContent() string
GetContent returns the Content field value
func (*ChatCompletionRequestMessage) GetContentOk ¶
func (o *ChatCompletionRequestMessage) GetContentOk() (*string, bool)
GetContentOk returns a tuple with the Content field value and a boolean to check if the value has been set.
func (*ChatCompletionRequestMessage) GetName ¶
func (o *ChatCompletionRequestMessage) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (*ChatCompletionRequestMessage) GetNameOk ¶
func (o *ChatCompletionRequestMessage) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ChatCompletionRequestMessage) GetRole ¶
func (o *ChatCompletionRequestMessage) GetRole() string
GetRole returns the Role field value
func (*ChatCompletionRequestMessage) GetRoleOk ¶
func (o *ChatCompletionRequestMessage) GetRoleOk() (*string, bool)
GetRoleOk returns a tuple with the Role field value and a boolean to check if the value has been set.
func (*ChatCompletionRequestMessage) HasName ¶
func (o *ChatCompletionRequestMessage) HasName() bool
HasName returns a boolean if a field has been set.
func (ChatCompletionRequestMessage) MarshalJSON ¶
func (o ChatCompletionRequestMessage) MarshalJSON() ([]byte, error)
func (*ChatCompletionRequestMessage) SetContent ¶
func (o *ChatCompletionRequestMessage) SetContent(v string)
SetContent sets field value
func (*ChatCompletionRequestMessage) SetName ¶
func (o *ChatCompletionRequestMessage) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (*ChatCompletionRequestMessage) SetRole ¶
func (o *ChatCompletionRequestMessage) SetRole(v string)
SetRole sets field value
func (ChatCompletionRequestMessage) ToMap ¶
func (o ChatCompletionRequestMessage) ToMap() (map[string]interface{}, error)
type ChatCompletionResponseMessage ¶
type ChatCompletionResponseMessage struct { // The role of the author of this message. Role string `json:"role"` // The contents of the message Content string `json:"content"` }
ChatCompletionResponseMessage struct for ChatCompletionResponseMessage
func NewChatCompletionResponseMessage ¶
func NewChatCompletionResponseMessage(role string, content string) *ChatCompletionResponseMessage
NewChatCompletionResponseMessage instantiates a new ChatCompletionResponseMessage 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 NewChatCompletionResponseMessageWithDefaults ¶
func NewChatCompletionResponseMessageWithDefaults() *ChatCompletionResponseMessage
NewChatCompletionResponseMessageWithDefaults instantiates a new ChatCompletionResponseMessage 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 (*ChatCompletionResponseMessage) GetContent ¶
func (o *ChatCompletionResponseMessage) GetContent() string
GetContent returns the Content field value
func (*ChatCompletionResponseMessage) GetContentOk ¶
func (o *ChatCompletionResponseMessage) GetContentOk() (*string, bool)
GetContentOk returns a tuple with the Content field value and a boolean to check if the value has been set.
func (*ChatCompletionResponseMessage) GetRole ¶
func (o *ChatCompletionResponseMessage) GetRole() string
GetRole returns the Role field value
func (*ChatCompletionResponseMessage) GetRoleOk ¶
func (o *ChatCompletionResponseMessage) GetRoleOk() (*string, bool)
GetRoleOk returns a tuple with the Role field value and a boolean to check if the value has been set.
func (ChatCompletionResponseMessage) MarshalJSON ¶
func (o ChatCompletionResponseMessage) MarshalJSON() ([]byte, error)
func (*ChatCompletionResponseMessage) SetContent ¶
func (o *ChatCompletionResponseMessage) SetContent(v string)
SetContent sets field value
func (*ChatCompletionResponseMessage) SetRole ¶
func (o *ChatCompletionResponseMessage) SetRole(v string)
SetRole sets field value
func (ChatCompletionResponseMessage) ToMap ¶
func (o ChatCompletionResponseMessage) ToMap() (map[string]interface{}, error)
type Configuration ¶
type Configuration struct { Host string `json:"host,omitempty"` Scheme string `json:"scheme,omitempty"` DefaultHeader map[string]string `json:"defaultHeader,omitempty"` UserAgent string `json:"userAgent,omitempty"` Debug bool `json:"debug,omitempty"` Servers ServerConfigurations OperationServers map[string]ServerConfigurations HTTPClient *http.Client }
Configuration stores the configuration of the API client
func NewConfiguration ¶
func NewConfiguration() *Configuration
NewConfiguration returns a new Configuration object
func (*Configuration) AddDefaultHeader ¶
func (c *Configuration) AddDefaultHeader(key string, value string)
AddDefaultHeader adds a new HTTP header to the default header in the request
func (*Configuration) ServerURLWithContext ¶
ServerURLWithContext returns a new server URL given an endpoint
type CreateAnswerRequest ¶
type CreateAnswerRequest struct { // ID of the model to use for completion. You can select one of `ada`, `babbage`, `curie`, or `davinci`. Model string `json:"model"` // Question to get answered. Question string `json:"question"` // List of (question, answer) pairs that will help steer the model towards the tone and answer format you'd like. We recommend adding 2 to 3 examples. Examples [][]string `json:"examples"` // A text snippet containing the contextual information used to generate the answers for the `examples` you provide. ExamplesContext string `json:"examples_context"` // List of documents from which the answer for the input `question` should be derived. If this is an empty list, the question will be answered based on the question-answer examples. You should specify either `documents` or a `file`, but not both. Documents []string `json:"documents,omitempty"` // The ID of an uploaded file that contains documents to search over. See [upload file](/docs/api-reference/files/upload) for how to upload a file of the desired format and purpose. You should specify either `documents` or a `file`, but not both. File NullableString `json:"file,omitempty"` // ID of the model to use for [Search](/docs/api-reference/searches/create). You can select one of `ada`, `babbage`, `curie`, or `davinci`. SearchModel NullableString `json:"search_model,omitempty"` // The maximum number of documents to be ranked by [Search](/docs/api-reference/searches/create) when using `file`. Setting it to a higher value leads to improved accuracy but with increased latency and cost. MaxRerank NullableInt32 `json:"max_rerank,omitempty"` // What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. Temperature NullableFloat32 `json:"temperature,omitempty"` // Include the log probabilities on the `logprobs` most likely tokens, as well the chosen tokens. For example, if `logprobs` is 5, the API will return a list of the 5 most likely tokens. The API will always return the `logprob` of the sampled token, so there may be up to `logprobs+1` elements in the response. The maximum value for `logprobs` is 5. If you need more than this, please contact us through our [Help center](https://help.openai.com) and describe your use case. When `logprobs` is set, `completion` will be automatically added into `expand` to get the logprobs. Logprobs NullableInt32 `json:"logprobs,omitempty"` // The maximum number of tokens allowed for the generated answer MaxTokens NullableInt32 `json:"max_tokens,omitempty"` Stop NullableCreateAnswerRequestStop `json:"stop,omitempty"` // How many answers to generate for each question. N NullableInt32 `json:"n,omitempty"` // Modify the likelihood of specified tokens appearing in the completion. Accepts a json object that maps tokens (specified by their token ID in the GPT tokenizer) to an associated bias value from -100 to 100. You can use this [tokenizer tool](/tokenizer?view=bpe) (which works for both GPT-2 and GPT-3) to convert text to token IDs. Mathematically, the bias is added to the logits generated by the model prior to sampling. The exact effect will vary per model, but values between -1 and 1 should decrease or increase likelihood of selection; values like -100 or 100 should result in a ban or exclusive selection of the relevant token. As an example, you can pass `{\"50256\": -100}` to prevent the <|endoftext|> token from being generated. LogitBias map[string]interface{} `json:"logit_bias,omitempty"` // A special boolean flag for showing metadata. If set to `true`, each document entry in the returned JSON will contain a \"metadata\" field. This flag only takes effect when `file` is set. ReturnMetadata NullableBool `json:"return_metadata,omitempty"` // If set to `true`, the returned JSON will include a \"prompt\" field containing the final prompt that was used to request a completion. This is mainly useful for debugging purposes. ReturnPrompt NullableBool `json:"return_prompt,omitempty"` // If an object name is in the list, we provide the full information of the object; otherwise, we only provide the object ID. Currently we support `completion` and `file` objects for expansion. Expand []interface{} `json:"expand,omitempty"` // A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices/end-user-ids). User *string `json:"user,omitempty"` }
CreateAnswerRequest struct for CreateAnswerRequest
func NewCreateAnswerRequest ¶
func NewCreateAnswerRequest(model string, question string, examples [][]string, examplesContext string) *CreateAnswerRequest
NewCreateAnswerRequest instantiates a new CreateAnswerRequest 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 NewCreateAnswerRequestWithDefaults ¶
func NewCreateAnswerRequestWithDefaults() *CreateAnswerRequest
NewCreateAnswerRequestWithDefaults instantiates a new CreateAnswerRequest 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 (*CreateAnswerRequest) GetDocuments ¶
func (o *CreateAnswerRequest) GetDocuments() []string
GetDocuments returns the Documents field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateAnswerRequest) GetDocumentsOk ¶
func (o *CreateAnswerRequest) GetDocumentsOk() ([]string, bool)
GetDocumentsOk returns a tuple with the Documents field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateAnswerRequest) GetExamples ¶
func (o *CreateAnswerRequest) GetExamples() [][]string
GetExamples returns the Examples field value
func (*CreateAnswerRequest) GetExamplesContext ¶
func (o *CreateAnswerRequest) GetExamplesContext() string
GetExamplesContext returns the ExamplesContext field value
func (*CreateAnswerRequest) GetExamplesContextOk ¶
func (o *CreateAnswerRequest) GetExamplesContextOk() (*string, bool)
GetExamplesContextOk returns a tuple with the ExamplesContext field value and a boolean to check if the value has been set.
func (*CreateAnswerRequest) GetExamplesOk ¶
func (o *CreateAnswerRequest) GetExamplesOk() ([][]string, bool)
GetExamplesOk returns a tuple with the Examples field value and a boolean to check if the value has been set.
func (*CreateAnswerRequest) GetExpand ¶
func (o *CreateAnswerRequest) GetExpand() []interface{}
GetExpand returns the Expand field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateAnswerRequest) GetExpandOk ¶
func (o *CreateAnswerRequest) GetExpandOk() ([]interface{}, bool)
GetExpandOk returns a tuple with the Expand field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateAnswerRequest) GetFile ¶
func (o *CreateAnswerRequest) GetFile() string
GetFile returns the File field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateAnswerRequest) GetFileOk ¶
func (o *CreateAnswerRequest) GetFileOk() (*string, bool)
GetFileOk returns a tuple with the File field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateAnswerRequest) GetLogitBias ¶
func (o *CreateAnswerRequest) GetLogitBias() map[string]interface{}
GetLogitBias returns the LogitBias field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateAnswerRequest) GetLogitBiasOk ¶
func (o *CreateAnswerRequest) GetLogitBiasOk() (map[string]interface{}, bool)
GetLogitBiasOk returns a tuple with the LogitBias field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateAnswerRequest) GetLogprobs ¶
func (o *CreateAnswerRequest) GetLogprobs() int32
GetLogprobs returns the Logprobs field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateAnswerRequest) GetLogprobsOk ¶
func (o *CreateAnswerRequest) GetLogprobsOk() (*int32, bool)
GetLogprobsOk returns a tuple with the Logprobs field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateAnswerRequest) GetMaxRerank ¶
func (o *CreateAnswerRequest) GetMaxRerank() int32
GetMaxRerank returns the MaxRerank field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateAnswerRequest) GetMaxRerankOk ¶
func (o *CreateAnswerRequest) GetMaxRerankOk() (*int32, bool)
GetMaxRerankOk returns a tuple with the MaxRerank field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateAnswerRequest) GetMaxTokens ¶
func (o *CreateAnswerRequest) GetMaxTokens() int32
GetMaxTokens returns the MaxTokens field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateAnswerRequest) GetMaxTokensOk ¶
func (o *CreateAnswerRequest) GetMaxTokensOk() (*int32, bool)
GetMaxTokensOk returns a tuple with the MaxTokens field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateAnswerRequest) GetModel ¶
func (o *CreateAnswerRequest) GetModel() string
GetModel returns the Model field value
func (*CreateAnswerRequest) GetModelOk ¶
func (o *CreateAnswerRequest) GetModelOk() (*string, bool)
GetModelOk returns a tuple with the Model field value and a boolean to check if the value has been set.
func (*CreateAnswerRequest) GetN ¶
func (o *CreateAnswerRequest) GetN() int32
GetN returns the N field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateAnswerRequest) GetNOk ¶
func (o *CreateAnswerRequest) GetNOk() (*int32, bool)
GetNOk returns a tuple with the N field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateAnswerRequest) GetQuestion ¶
func (o *CreateAnswerRequest) GetQuestion() string
GetQuestion returns the Question field value
func (*CreateAnswerRequest) GetQuestionOk ¶
func (o *CreateAnswerRequest) GetQuestionOk() (*string, bool)
GetQuestionOk returns a tuple with the Question field value and a boolean to check if the value has been set.
func (*CreateAnswerRequest) GetReturnMetadata ¶
func (o *CreateAnswerRequest) GetReturnMetadata() bool
GetReturnMetadata returns the ReturnMetadata field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateAnswerRequest) GetReturnMetadataOk ¶
func (o *CreateAnswerRequest) GetReturnMetadataOk() (*bool, bool)
GetReturnMetadataOk returns a tuple with the ReturnMetadata field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateAnswerRequest) GetReturnPrompt ¶
func (o *CreateAnswerRequest) GetReturnPrompt() bool
GetReturnPrompt returns the ReturnPrompt field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateAnswerRequest) GetReturnPromptOk ¶
func (o *CreateAnswerRequest) GetReturnPromptOk() (*bool, bool)
GetReturnPromptOk returns a tuple with the ReturnPrompt field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateAnswerRequest) GetSearchModel ¶
func (o *CreateAnswerRequest) GetSearchModel() string
GetSearchModel returns the SearchModel field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateAnswerRequest) GetSearchModelOk ¶
func (o *CreateAnswerRequest) GetSearchModelOk() (*string, bool)
GetSearchModelOk returns a tuple with the SearchModel field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateAnswerRequest) GetStop ¶
func (o *CreateAnswerRequest) GetStop() CreateAnswerRequestStop
GetStop returns the Stop field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateAnswerRequest) GetStopOk ¶
func (o *CreateAnswerRequest) GetStopOk() (*CreateAnswerRequestStop, bool)
GetStopOk returns a tuple with the Stop field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateAnswerRequest) GetTemperature ¶
func (o *CreateAnswerRequest) GetTemperature() float32
GetTemperature returns the Temperature field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateAnswerRequest) GetTemperatureOk ¶
func (o *CreateAnswerRequest) GetTemperatureOk() (*float32, bool)
GetTemperatureOk returns a tuple with the Temperature field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateAnswerRequest) GetUser ¶
func (o *CreateAnswerRequest) GetUser() string
GetUser returns the User field value if set, zero value otherwise.
func (*CreateAnswerRequest) GetUserOk ¶
func (o *CreateAnswerRequest) GetUserOk() (*string, bool)
GetUserOk returns a tuple with the User field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateAnswerRequest) HasDocuments ¶
func (o *CreateAnswerRequest) HasDocuments() bool
HasDocuments returns a boolean if a field has been set.
func (*CreateAnswerRequest) HasExpand ¶
func (o *CreateAnswerRequest) HasExpand() bool
HasExpand returns a boolean if a field has been set.
func (*CreateAnswerRequest) HasFile ¶
func (o *CreateAnswerRequest) HasFile() bool
HasFile returns a boolean if a field has been set.
func (*CreateAnswerRequest) HasLogitBias ¶
func (o *CreateAnswerRequest) HasLogitBias() bool
HasLogitBias returns a boolean if a field has been set.
func (*CreateAnswerRequest) HasLogprobs ¶
func (o *CreateAnswerRequest) HasLogprobs() bool
HasLogprobs returns a boolean if a field has been set.
func (*CreateAnswerRequest) HasMaxRerank ¶
func (o *CreateAnswerRequest) HasMaxRerank() bool
HasMaxRerank returns a boolean if a field has been set.
func (*CreateAnswerRequest) HasMaxTokens ¶
func (o *CreateAnswerRequest) HasMaxTokens() bool
HasMaxTokens returns a boolean if a field has been set.
func (*CreateAnswerRequest) HasN ¶
func (o *CreateAnswerRequest) HasN() bool
HasN returns a boolean if a field has been set.
func (*CreateAnswerRequest) HasReturnMetadata ¶
func (o *CreateAnswerRequest) HasReturnMetadata() bool
HasReturnMetadata returns a boolean if a field has been set.
func (*CreateAnswerRequest) HasReturnPrompt ¶
func (o *CreateAnswerRequest) HasReturnPrompt() bool
HasReturnPrompt returns a boolean if a field has been set.
func (*CreateAnswerRequest) HasSearchModel ¶
func (o *CreateAnswerRequest) HasSearchModel() bool
HasSearchModel returns a boolean if a field has been set.
func (*CreateAnswerRequest) HasStop ¶
func (o *CreateAnswerRequest) HasStop() bool
HasStop returns a boolean if a field has been set.
func (*CreateAnswerRequest) HasTemperature ¶
func (o *CreateAnswerRequest) HasTemperature() bool
HasTemperature returns a boolean if a field has been set.
func (*CreateAnswerRequest) HasUser ¶
func (o *CreateAnswerRequest) HasUser() bool
HasUser returns a boolean if a field has been set.
func (CreateAnswerRequest) MarshalJSON ¶
func (o CreateAnswerRequest) MarshalJSON() ([]byte, error)
func (*CreateAnswerRequest) SetDocuments ¶
func (o *CreateAnswerRequest) SetDocuments(v []string)
SetDocuments gets a reference to the given []string and assigns it to the Documents field.
func (*CreateAnswerRequest) SetExamples ¶
func (o *CreateAnswerRequest) SetExamples(v [][]string)
SetExamples sets field value
func (*CreateAnswerRequest) SetExamplesContext ¶
func (o *CreateAnswerRequest) SetExamplesContext(v string)
SetExamplesContext sets field value
func (*CreateAnswerRequest) SetExpand ¶
func (o *CreateAnswerRequest) SetExpand(v []interface{})
SetExpand gets a reference to the given []interface{} and assigns it to the Expand field.
func (*CreateAnswerRequest) SetFile ¶
func (o *CreateAnswerRequest) SetFile(v string)
SetFile gets a reference to the given NullableString and assigns it to the File field.
func (*CreateAnswerRequest) SetFileNil ¶
func (o *CreateAnswerRequest) SetFileNil()
SetFileNil sets the value for File to be an explicit nil
func (*CreateAnswerRequest) SetLogitBias ¶
func (o *CreateAnswerRequest) SetLogitBias(v map[string]interface{})
SetLogitBias gets a reference to the given map[string]interface{} and assigns it to the LogitBias field.
func (*CreateAnswerRequest) SetLogprobs ¶
func (o *CreateAnswerRequest) SetLogprobs(v int32)
SetLogprobs gets a reference to the given NullableInt32 and assigns it to the Logprobs field.
func (*CreateAnswerRequest) SetLogprobsNil ¶
func (o *CreateAnswerRequest) SetLogprobsNil()
SetLogprobsNil sets the value for Logprobs to be an explicit nil
func (*CreateAnswerRequest) SetMaxRerank ¶
func (o *CreateAnswerRequest) SetMaxRerank(v int32)
SetMaxRerank gets a reference to the given NullableInt32 and assigns it to the MaxRerank field.
func (*CreateAnswerRequest) SetMaxRerankNil ¶
func (o *CreateAnswerRequest) SetMaxRerankNil()
SetMaxRerankNil sets the value for MaxRerank to be an explicit nil
func (*CreateAnswerRequest) SetMaxTokens ¶
func (o *CreateAnswerRequest) SetMaxTokens(v int32)
SetMaxTokens gets a reference to the given NullableInt32 and assigns it to the MaxTokens field.
func (*CreateAnswerRequest) SetMaxTokensNil ¶
func (o *CreateAnswerRequest) SetMaxTokensNil()
SetMaxTokensNil sets the value for MaxTokens to be an explicit nil
func (*CreateAnswerRequest) SetModel ¶
func (o *CreateAnswerRequest) SetModel(v string)
SetModel sets field value
func (*CreateAnswerRequest) SetN ¶
func (o *CreateAnswerRequest) SetN(v int32)
SetN gets a reference to the given NullableInt32 and assigns it to the N field.
func (*CreateAnswerRequest) SetNNil ¶
func (o *CreateAnswerRequest) SetNNil()
SetNNil sets the value for N to be an explicit nil
func (*CreateAnswerRequest) SetQuestion ¶
func (o *CreateAnswerRequest) SetQuestion(v string)
SetQuestion sets field value
func (*CreateAnswerRequest) SetReturnMetadata ¶
func (o *CreateAnswerRequest) SetReturnMetadata(v bool)
SetReturnMetadata gets a reference to the given NullableBool and assigns it to the ReturnMetadata field.
func (*CreateAnswerRequest) SetReturnMetadataNil ¶
func (o *CreateAnswerRequest) SetReturnMetadataNil()
SetReturnMetadataNil sets the value for ReturnMetadata to be an explicit nil
func (*CreateAnswerRequest) SetReturnPrompt ¶
func (o *CreateAnswerRequest) SetReturnPrompt(v bool)
SetReturnPrompt gets a reference to the given NullableBool and assigns it to the ReturnPrompt field.
func (*CreateAnswerRequest) SetReturnPromptNil ¶
func (o *CreateAnswerRequest) SetReturnPromptNil()
SetReturnPromptNil sets the value for ReturnPrompt to be an explicit nil
func (*CreateAnswerRequest) SetSearchModel ¶
func (o *CreateAnswerRequest) SetSearchModel(v string)
SetSearchModel gets a reference to the given NullableString and assigns it to the SearchModel field.
func (*CreateAnswerRequest) SetSearchModelNil ¶
func (o *CreateAnswerRequest) SetSearchModelNil()
SetSearchModelNil sets the value for SearchModel to be an explicit nil
func (*CreateAnswerRequest) SetStop ¶
func (o *CreateAnswerRequest) SetStop(v CreateAnswerRequestStop)
SetStop gets a reference to the given NullableCreateAnswerRequestStop and assigns it to the Stop field.
func (*CreateAnswerRequest) SetStopNil ¶
func (o *CreateAnswerRequest) SetStopNil()
SetStopNil sets the value for Stop to be an explicit nil
func (*CreateAnswerRequest) SetTemperature ¶
func (o *CreateAnswerRequest) SetTemperature(v float32)
SetTemperature gets a reference to the given NullableFloat32 and assigns it to the Temperature field.
func (*CreateAnswerRequest) SetTemperatureNil ¶
func (o *CreateAnswerRequest) SetTemperatureNil()
SetTemperatureNil sets the value for Temperature to be an explicit nil
func (*CreateAnswerRequest) SetUser ¶
func (o *CreateAnswerRequest) SetUser(v string)
SetUser gets a reference to the given string and assigns it to the User field.
func (CreateAnswerRequest) ToMap ¶
func (o CreateAnswerRequest) ToMap() (map[string]interface{}, error)
func (*CreateAnswerRequest) UnsetFile ¶
func (o *CreateAnswerRequest) UnsetFile()
UnsetFile ensures that no value is present for File, not even an explicit nil
func (*CreateAnswerRequest) UnsetLogprobs ¶
func (o *CreateAnswerRequest) UnsetLogprobs()
UnsetLogprobs ensures that no value is present for Logprobs, not even an explicit nil
func (*CreateAnswerRequest) UnsetMaxRerank ¶
func (o *CreateAnswerRequest) UnsetMaxRerank()
UnsetMaxRerank ensures that no value is present for MaxRerank, not even an explicit nil
func (*CreateAnswerRequest) UnsetMaxTokens ¶
func (o *CreateAnswerRequest) UnsetMaxTokens()
UnsetMaxTokens ensures that no value is present for MaxTokens, not even an explicit nil
func (*CreateAnswerRequest) UnsetN ¶
func (o *CreateAnswerRequest) UnsetN()
UnsetN ensures that no value is present for N, not even an explicit nil
func (*CreateAnswerRequest) UnsetReturnMetadata ¶
func (o *CreateAnswerRequest) UnsetReturnMetadata()
UnsetReturnMetadata ensures that no value is present for ReturnMetadata, not even an explicit nil
func (*CreateAnswerRequest) UnsetReturnPrompt ¶
func (o *CreateAnswerRequest) UnsetReturnPrompt()
UnsetReturnPrompt ensures that no value is present for ReturnPrompt, not even an explicit nil
func (*CreateAnswerRequest) UnsetSearchModel ¶
func (o *CreateAnswerRequest) UnsetSearchModel()
UnsetSearchModel ensures that no value is present for SearchModel, not even an explicit nil
func (*CreateAnswerRequest) UnsetStop ¶
func (o *CreateAnswerRequest) UnsetStop()
UnsetStop ensures that no value is present for Stop, not even an explicit nil
func (*CreateAnswerRequest) UnsetTemperature ¶
func (o *CreateAnswerRequest) UnsetTemperature()
UnsetTemperature ensures that no value is present for Temperature, not even an explicit nil
type CreateAnswerRequestStop ¶
CreateAnswerRequestStop - Up to 4 sequences where the API will stop generating further tokens. The returned text will not contain the stop sequence.
func ArrayOfStringAsCreateAnswerRequestStop ¶
func ArrayOfStringAsCreateAnswerRequestStop(v *[]string) CreateAnswerRequestStop
[]stringAsCreateAnswerRequestStop is a convenience function that returns []string wrapped in CreateAnswerRequestStop
func StringAsCreateAnswerRequestStop ¶
func StringAsCreateAnswerRequestStop(v *string) CreateAnswerRequestStop
stringAsCreateAnswerRequestStop is a convenience function that returns string wrapped in CreateAnswerRequestStop
func (*CreateAnswerRequestStop) GetActualInstance ¶
func (obj *CreateAnswerRequestStop) GetActualInstance() interface{}
Get the actual instance
func (CreateAnswerRequestStop) MarshalJSON ¶
func (src CreateAnswerRequestStop) MarshalJSON() ([]byte, error)
Marshal data from the first non-nil pointers in the struct to JSON
func (*CreateAnswerRequestStop) UnmarshalJSON ¶
func (dst *CreateAnswerRequestStop) UnmarshalJSON(data []byte) error
Unmarshal JSON data into one of the pointers in the struct
type CreateAnswerResponse ¶
type CreateAnswerResponse struct { Object *string `json:"object,omitempty"` Model *string `json:"model,omitempty"` SearchModel *string `json:"search_model,omitempty"` Completion *string `json:"completion,omitempty"` Answers []string `json:"answers,omitempty"` SelectedDocuments []CreateAnswerResponseSelectedDocumentsInner `json:"selected_documents,omitempty"` }
CreateAnswerResponse struct for CreateAnswerResponse
func NewCreateAnswerResponse ¶
func NewCreateAnswerResponse() *CreateAnswerResponse
NewCreateAnswerResponse instantiates a new CreateAnswerResponse 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 NewCreateAnswerResponseWithDefaults ¶
func NewCreateAnswerResponseWithDefaults() *CreateAnswerResponse
NewCreateAnswerResponseWithDefaults instantiates a new CreateAnswerResponse 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 (*CreateAnswerResponse) GetAnswers ¶
func (o *CreateAnswerResponse) GetAnswers() []string
GetAnswers returns the Answers field value if set, zero value otherwise.
func (*CreateAnswerResponse) GetAnswersOk ¶
func (o *CreateAnswerResponse) GetAnswersOk() ([]string, bool)
GetAnswersOk returns a tuple with the Answers field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateAnswerResponse) GetCompletion ¶
func (o *CreateAnswerResponse) GetCompletion() string
GetCompletion returns the Completion field value if set, zero value otherwise.
func (*CreateAnswerResponse) GetCompletionOk ¶
func (o *CreateAnswerResponse) GetCompletionOk() (*string, bool)
GetCompletionOk returns a tuple with the Completion field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateAnswerResponse) GetModel ¶
func (o *CreateAnswerResponse) GetModel() string
GetModel returns the Model field value if set, zero value otherwise.
func (*CreateAnswerResponse) GetModelOk ¶
func (o *CreateAnswerResponse) GetModelOk() (*string, bool)
GetModelOk returns a tuple with the Model field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateAnswerResponse) GetObject ¶
func (o *CreateAnswerResponse) GetObject() string
GetObject returns the Object field value if set, zero value otherwise.
func (*CreateAnswerResponse) GetObjectOk ¶
func (o *CreateAnswerResponse) GetObjectOk() (*string, bool)
GetObjectOk returns a tuple with the Object field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateAnswerResponse) GetSearchModel ¶
func (o *CreateAnswerResponse) GetSearchModel() string
GetSearchModel returns the SearchModel field value if set, zero value otherwise.
func (*CreateAnswerResponse) GetSearchModelOk ¶
func (o *CreateAnswerResponse) GetSearchModelOk() (*string, bool)
GetSearchModelOk returns a tuple with the SearchModel field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateAnswerResponse) GetSelectedDocuments ¶
func (o *CreateAnswerResponse) GetSelectedDocuments() []CreateAnswerResponseSelectedDocumentsInner
GetSelectedDocuments returns the SelectedDocuments field value if set, zero value otherwise.
func (*CreateAnswerResponse) GetSelectedDocumentsOk ¶
func (o *CreateAnswerResponse) GetSelectedDocumentsOk() ([]CreateAnswerResponseSelectedDocumentsInner, bool)
GetSelectedDocumentsOk returns a tuple with the SelectedDocuments field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateAnswerResponse) HasAnswers ¶
func (o *CreateAnswerResponse) HasAnswers() bool
HasAnswers returns a boolean if a field has been set.
func (*CreateAnswerResponse) HasCompletion ¶
func (o *CreateAnswerResponse) HasCompletion() bool
HasCompletion returns a boolean if a field has been set.
func (*CreateAnswerResponse) HasModel ¶
func (o *CreateAnswerResponse) HasModel() bool
HasModel returns a boolean if a field has been set.
func (*CreateAnswerResponse) HasObject ¶
func (o *CreateAnswerResponse) HasObject() bool
HasObject returns a boolean if a field has been set.
func (*CreateAnswerResponse) HasSearchModel ¶
func (o *CreateAnswerResponse) HasSearchModel() bool
HasSearchModel returns a boolean if a field has been set.
func (*CreateAnswerResponse) HasSelectedDocuments ¶
func (o *CreateAnswerResponse) HasSelectedDocuments() bool
HasSelectedDocuments returns a boolean if a field has been set.
func (CreateAnswerResponse) MarshalJSON ¶
func (o CreateAnswerResponse) MarshalJSON() ([]byte, error)
func (*CreateAnswerResponse) SetAnswers ¶
func (o *CreateAnswerResponse) SetAnswers(v []string)
SetAnswers gets a reference to the given []string and assigns it to the Answers field.
func (*CreateAnswerResponse) SetCompletion ¶
func (o *CreateAnswerResponse) SetCompletion(v string)
SetCompletion gets a reference to the given string and assigns it to the Completion field.
func (*CreateAnswerResponse) SetModel ¶
func (o *CreateAnswerResponse) SetModel(v string)
SetModel gets a reference to the given string and assigns it to the Model field.
func (*CreateAnswerResponse) SetObject ¶
func (o *CreateAnswerResponse) SetObject(v string)
SetObject gets a reference to the given string and assigns it to the Object field.
func (*CreateAnswerResponse) SetSearchModel ¶
func (o *CreateAnswerResponse) SetSearchModel(v string)
SetSearchModel gets a reference to the given string and assigns it to the SearchModel field.
func (*CreateAnswerResponse) SetSelectedDocuments ¶
func (o *CreateAnswerResponse) SetSelectedDocuments(v []CreateAnswerResponseSelectedDocumentsInner)
SetSelectedDocuments gets a reference to the given []CreateAnswerResponseSelectedDocumentsInner and assigns it to the SelectedDocuments field.
func (CreateAnswerResponse) ToMap ¶
func (o CreateAnswerResponse) ToMap() (map[string]interface{}, error)
type CreateAnswerResponseSelectedDocumentsInner ¶
type CreateAnswerResponseSelectedDocumentsInner struct { Document *int32 `json:"document,omitempty"` Text *string `json:"text,omitempty"` }
CreateAnswerResponseSelectedDocumentsInner struct for CreateAnswerResponseSelectedDocumentsInner
func NewCreateAnswerResponseSelectedDocumentsInner ¶
func NewCreateAnswerResponseSelectedDocumentsInner() *CreateAnswerResponseSelectedDocumentsInner
NewCreateAnswerResponseSelectedDocumentsInner instantiates a new CreateAnswerResponseSelectedDocumentsInner 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 NewCreateAnswerResponseSelectedDocumentsInnerWithDefaults ¶
func NewCreateAnswerResponseSelectedDocumentsInnerWithDefaults() *CreateAnswerResponseSelectedDocumentsInner
NewCreateAnswerResponseSelectedDocumentsInnerWithDefaults instantiates a new CreateAnswerResponseSelectedDocumentsInner 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 (*CreateAnswerResponseSelectedDocumentsInner) GetDocument ¶
func (o *CreateAnswerResponseSelectedDocumentsInner) GetDocument() int32
GetDocument returns the Document field value if set, zero value otherwise.
func (*CreateAnswerResponseSelectedDocumentsInner) GetDocumentOk ¶
func (o *CreateAnswerResponseSelectedDocumentsInner) GetDocumentOk() (*int32, bool)
GetDocumentOk returns a tuple with the Document field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateAnswerResponseSelectedDocumentsInner) GetText ¶
func (o *CreateAnswerResponseSelectedDocumentsInner) GetText() string
GetText returns the Text field value if set, zero value otherwise.
func (*CreateAnswerResponseSelectedDocumentsInner) GetTextOk ¶
func (o *CreateAnswerResponseSelectedDocumentsInner) GetTextOk() (*string, bool)
GetTextOk returns a tuple with the Text field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateAnswerResponseSelectedDocumentsInner) HasDocument ¶
func (o *CreateAnswerResponseSelectedDocumentsInner) HasDocument() bool
HasDocument returns a boolean if a field has been set.
func (*CreateAnswerResponseSelectedDocumentsInner) HasText ¶
func (o *CreateAnswerResponseSelectedDocumentsInner) HasText() bool
HasText returns a boolean if a field has been set.
func (CreateAnswerResponseSelectedDocumentsInner) MarshalJSON ¶
func (o CreateAnswerResponseSelectedDocumentsInner) MarshalJSON() ([]byte, error)
func (*CreateAnswerResponseSelectedDocumentsInner) SetDocument ¶
func (o *CreateAnswerResponseSelectedDocumentsInner) SetDocument(v int32)
SetDocument gets a reference to the given int32 and assigns it to the Document field.
func (*CreateAnswerResponseSelectedDocumentsInner) SetText ¶
func (o *CreateAnswerResponseSelectedDocumentsInner) SetText(v string)
SetText gets a reference to the given string and assigns it to the Text field.
func (CreateAnswerResponseSelectedDocumentsInner) ToMap ¶
func (o CreateAnswerResponseSelectedDocumentsInner) ToMap() (map[string]interface{}, error)
type CreateChatCompletionRequest ¶
type CreateChatCompletionRequest struct { // ID of the model to use. Currently, only `gpt-3.5-turbo` and `gpt-3.5-turbo-0301` are supported. Model string `json:"model"` // The messages to generate chat completions for, in the [chat format](/docs/guides/chat/introduction). Messages []ChatCompletionRequestMessage `json:"messages"` // What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. We generally recommend altering this or `top_p` but not both. Temperature NullableFloat32 `json:"temperature,omitempty"` // An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. We generally recommend altering this or `temperature` but not both. TopP NullableFloat32 `json:"top_p,omitempty"` // How many chat completion choices to generate for each input message. N NullableInt32 `json:"n,omitempty"` // If set, partial message deltas will be sent, like in ChatGPT. Tokens will be sent as data-only [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format) as they become available, with the stream terminated by a `data: [DONE]` message. Stream NullableBool `json:"stream,omitempty"` Stop *CreateChatCompletionRequestStop `json:"stop,omitempty"` // The maximum number of tokens allowed for the generated answer. By default, the number of tokens the model can return will be (4096 - prompt tokens). MaxTokens *int32 `json:"max_tokens,omitempty"` // Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics. [See more information about frequency and presence penalties.](/docs/api-reference/parameter-details) PresencePenalty NullableFloat32 `json:"presence_penalty,omitempty"` // Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim. [See more information about frequency and presence penalties.](/docs/api-reference/parameter-details) FrequencyPenalty NullableFloat32 `json:"frequency_penalty,omitempty"` // Modify the likelihood of specified tokens appearing in the completion. Accepts a json object that maps tokens (specified by their token ID in the tokenizer) to an associated bias value from -100 to 100. Mathematically, the bias is added to the logits generated by the model prior to sampling. The exact effect will vary per model, but values between -1 and 1 should decrease or increase likelihood of selection; values like -100 or 100 should result in a ban or exclusive selection of the relevant token. LogitBias map[string]interface{} `json:"logit_bias,omitempty"` // A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices/end-user-ids). User *string `json:"user,omitempty"` }
CreateChatCompletionRequest struct for CreateChatCompletionRequest
func NewCreateChatCompletionRequest ¶
func NewCreateChatCompletionRequest(model string, messages []ChatCompletionRequestMessage) *CreateChatCompletionRequest
NewCreateChatCompletionRequest instantiates a new CreateChatCompletionRequest 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 NewCreateChatCompletionRequestWithDefaults ¶
func NewCreateChatCompletionRequestWithDefaults() *CreateChatCompletionRequest
NewCreateChatCompletionRequestWithDefaults instantiates a new CreateChatCompletionRequest 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 (*CreateChatCompletionRequest) GetFrequencyPenalty ¶
func (o *CreateChatCompletionRequest) GetFrequencyPenalty() float32
GetFrequencyPenalty returns the FrequencyPenalty field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateChatCompletionRequest) GetFrequencyPenaltyOk ¶
func (o *CreateChatCompletionRequest) GetFrequencyPenaltyOk() (*float32, bool)
GetFrequencyPenaltyOk returns a tuple with the FrequencyPenalty field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateChatCompletionRequest) GetLogitBias ¶
func (o *CreateChatCompletionRequest) GetLogitBias() map[string]interface{}
GetLogitBias returns the LogitBias field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateChatCompletionRequest) GetLogitBiasOk ¶
func (o *CreateChatCompletionRequest) GetLogitBiasOk() (map[string]interface{}, bool)
GetLogitBiasOk returns a tuple with the LogitBias field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateChatCompletionRequest) GetMaxTokens ¶
func (o *CreateChatCompletionRequest) GetMaxTokens() int32
GetMaxTokens returns the MaxTokens field value if set, zero value otherwise.
func (*CreateChatCompletionRequest) GetMaxTokensOk ¶
func (o *CreateChatCompletionRequest) GetMaxTokensOk() (*int32, bool)
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 (*CreateChatCompletionRequest) GetMessages ¶
func (o *CreateChatCompletionRequest) GetMessages() []ChatCompletionRequestMessage
GetMessages returns the Messages field value
func (*CreateChatCompletionRequest) GetMessagesOk ¶
func (o *CreateChatCompletionRequest) GetMessagesOk() ([]ChatCompletionRequestMessage, bool)
GetMessagesOk returns a tuple with the Messages field value and a boolean to check if the value has been set.
func (*CreateChatCompletionRequest) GetModel ¶
func (o *CreateChatCompletionRequest) GetModel() string
GetModel returns the Model field value
func (*CreateChatCompletionRequest) GetModelOk ¶
func (o *CreateChatCompletionRequest) GetModelOk() (*string, bool)
GetModelOk returns a tuple with the Model field value and a boolean to check if the value has been set.
func (*CreateChatCompletionRequest) GetN ¶
func (o *CreateChatCompletionRequest) GetN() int32
GetN returns the N field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateChatCompletionRequest) GetNOk ¶
func (o *CreateChatCompletionRequest) GetNOk() (*int32, bool)
GetNOk returns a tuple with the N field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateChatCompletionRequest) GetPresencePenalty ¶
func (o *CreateChatCompletionRequest) GetPresencePenalty() float32
GetPresencePenalty returns the PresencePenalty field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateChatCompletionRequest) GetPresencePenaltyOk ¶
func (o *CreateChatCompletionRequest) GetPresencePenaltyOk() (*float32, bool)
GetPresencePenaltyOk returns a tuple with the PresencePenalty field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateChatCompletionRequest) GetStop ¶
func (o *CreateChatCompletionRequest) GetStop() CreateChatCompletionRequestStop
GetStop returns the Stop field value if set, zero value otherwise.
func (*CreateChatCompletionRequest) GetStopOk ¶
func (o *CreateChatCompletionRequest) GetStopOk() (*CreateChatCompletionRequestStop, bool)
GetStopOk returns a tuple with the Stop field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateChatCompletionRequest) GetStream ¶
func (o *CreateChatCompletionRequest) GetStream() bool
GetStream returns the Stream field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateChatCompletionRequest) GetStreamOk ¶
func (o *CreateChatCompletionRequest) GetStreamOk() (*bool, bool)
GetStreamOk returns a tuple with the Stream field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateChatCompletionRequest) GetTemperature ¶
func (o *CreateChatCompletionRequest) GetTemperature() float32
GetTemperature returns the Temperature field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateChatCompletionRequest) GetTemperatureOk ¶
func (o *CreateChatCompletionRequest) GetTemperatureOk() (*float32, bool)
GetTemperatureOk returns a tuple with the Temperature field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateChatCompletionRequest) GetTopP ¶
func (o *CreateChatCompletionRequest) GetTopP() float32
GetTopP returns the TopP field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateChatCompletionRequest) GetTopPOk ¶
func (o *CreateChatCompletionRequest) GetTopPOk() (*float32, bool)
GetTopPOk returns a tuple with the TopP field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateChatCompletionRequest) GetUser ¶
func (o *CreateChatCompletionRequest) GetUser() string
GetUser returns the User field value if set, zero value otherwise.
func (*CreateChatCompletionRequest) GetUserOk ¶
func (o *CreateChatCompletionRequest) GetUserOk() (*string, bool)
GetUserOk returns a tuple with the User field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateChatCompletionRequest) HasFrequencyPenalty ¶
func (o *CreateChatCompletionRequest) HasFrequencyPenalty() bool
HasFrequencyPenalty returns a boolean if a field has been set.
func (*CreateChatCompletionRequest) HasLogitBias ¶
func (o *CreateChatCompletionRequest) HasLogitBias() bool
HasLogitBias returns a boolean if a field has been set.
func (*CreateChatCompletionRequest) HasMaxTokens ¶
func (o *CreateChatCompletionRequest) HasMaxTokens() bool
HasMaxTokens returns a boolean if a field has been set.
func (*CreateChatCompletionRequest) HasN ¶
func (o *CreateChatCompletionRequest) HasN() bool
HasN returns a boolean if a field has been set.
func (*CreateChatCompletionRequest) HasPresencePenalty ¶
func (o *CreateChatCompletionRequest) HasPresencePenalty() bool
HasPresencePenalty returns a boolean if a field has been set.
func (*CreateChatCompletionRequest) HasStop ¶
func (o *CreateChatCompletionRequest) HasStop() bool
HasStop returns a boolean if a field has been set.
func (*CreateChatCompletionRequest) HasStream ¶
func (o *CreateChatCompletionRequest) HasStream() bool
HasStream returns a boolean if a field has been set.
func (*CreateChatCompletionRequest) HasTemperature ¶
func (o *CreateChatCompletionRequest) HasTemperature() bool
HasTemperature returns a boolean if a field has been set.
func (*CreateChatCompletionRequest) HasTopP ¶
func (o *CreateChatCompletionRequest) HasTopP() bool
HasTopP returns a boolean if a field has been set.
func (*CreateChatCompletionRequest) HasUser ¶
func (o *CreateChatCompletionRequest) HasUser() bool
HasUser returns a boolean if a field has been set.
func (CreateChatCompletionRequest) MarshalJSON ¶
func (o CreateChatCompletionRequest) MarshalJSON() ([]byte, error)
func (*CreateChatCompletionRequest) SetFrequencyPenalty ¶
func (o *CreateChatCompletionRequest) SetFrequencyPenalty(v float32)
SetFrequencyPenalty gets a reference to the given NullableFloat32 and assigns it to the FrequencyPenalty field.
func (*CreateChatCompletionRequest) SetFrequencyPenaltyNil ¶
func (o *CreateChatCompletionRequest) SetFrequencyPenaltyNil()
SetFrequencyPenaltyNil sets the value for FrequencyPenalty to be an explicit nil
func (*CreateChatCompletionRequest) SetLogitBias ¶
func (o *CreateChatCompletionRequest) SetLogitBias(v map[string]interface{})
SetLogitBias gets a reference to the given map[string]interface{} and assigns it to the LogitBias field.
func (*CreateChatCompletionRequest) SetMaxTokens ¶
func (o *CreateChatCompletionRequest) SetMaxTokens(v int32)
SetMaxTokens gets a reference to the given int32 and assigns it to the MaxTokens field.
func (*CreateChatCompletionRequest) SetMessages ¶
func (o *CreateChatCompletionRequest) SetMessages(v []ChatCompletionRequestMessage)
SetMessages sets field value
func (*CreateChatCompletionRequest) SetModel ¶
func (o *CreateChatCompletionRequest) SetModel(v string)
SetModel sets field value
func (*CreateChatCompletionRequest) SetN ¶
func (o *CreateChatCompletionRequest) SetN(v int32)
SetN gets a reference to the given NullableInt32 and assigns it to the N field.
func (*CreateChatCompletionRequest) SetNNil ¶
func (o *CreateChatCompletionRequest) SetNNil()
SetNNil sets the value for N to be an explicit nil
func (*CreateChatCompletionRequest) SetPresencePenalty ¶
func (o *CreateChatCompletionRequest) SetPresencePenalty(v float32)
SetPresencePenalty gets a reference to the given NullableFloat32 and assigns it to the PresencePenalty field.
func (*CreateChatCompletionRequest) SetPresencePenaltyNil ¶
func (o *CreateChatCompletionRequest) SetPresencePenaltyNil()
SetPresencePenaltyNil sets the value for PresencePenalty to be an explicit nil
func (*CreateChatCompletionRequest) SetStop ¶
func (o *CreateChatCompletionRequest) SetStop(v CreateChatCompletionRequestStop)
SetStop gets a reference to the given CreateChatCompletionRequestStop and assigns it to the Stop field.
func (*CreateChatCompletionRequest) SetStream ¶
func (o *CreateChatCompletionRequest) SetStream(v bool)
SetStream gets a reference to the given NullableBool and assigns it to the Stream field.
func (*CreateChatCompletionRequest) SetStreamNil ¶
func (o *CreateChatCompletionRequest) SetStreamNil()
SetStreamNil sets the value for Stream to be an explicit nil
func (*CreateChatCompletionRequest) SetTemperature ¶
func (o *CreateChatCompletionRequest) SetTemperature(v float32)
SetTemperature gets a reference to the given NullableFloat32 and assigns it to the Temperature field.
func (*CreateChatCompletionRequest) SetTemperatureNil ¶
func (o *CreateChatCompletionRequest) SetTemperatureNil()
SetTemperatureNil sets the value for Temperature to be an explicit nil
func (*CreateChatCompletionRequest) SetTopP ¶
func (o *CreateChatCompletionRequest) SetTopP(v float32)
SetTopP gets a reference to the given NullableFloat32 and assigns it to the TopP field.
func (*CreateChatCompletionRequest) SetTopPNil ¶
func (o *CreateChatCompletionRequest) SetTopPNil()
SetTopPNil sets the value for TopP to be an explicit nil
func (*CreateChatCompletionRequest) SetUser ¶
func (o *CreateChatCompletionRequest) SetUser(v string)
SetUser gets a reference to the given string and assigns it to the User field.
func (CreateChatCompletionRequest) ToMap ¶
func (o CreateChatCompletionRequest) ToMap() (map[string]interface{}, error)
func (*CreateChatCompletionRequest) UnsetFrequencyPenalty ¶
func (o *CreateChatCompletionRequest) UnsetFrequencyPenalty()
UnsetFrequencyPenalty ensures that no value is present for FrequencyPenalty, not even an explicit nil
func (*CreateChatCompletionRequest) UnsetN ¶
func (o *CreateChatCompletionRequest) UnsetN()
UnsetN ensures that no value is present for N, not even an explicit nil
func (*CreateChatCompletionRequest) UnsetPresencePenalty ¶
func (o *CreateChatCompletionRequest) UnsetPresencePenalty()
UnsetPresencePenalty ensures that no value is present for PresencePenalty, not even an explicit nil
func (*CreateChatCompletionRequest) UnsetStream ¶
func (o *CreateChatCompletionRequest) UnsetStream()
UnsetStream ensures that no value is present for Stream, not even an explicit nil
func (*CreateChatCompletionRequest) UnsetTemperature ¶
func (o *CreateChatCompletionRequest) UnsetTemperature()
UnsetTemperature ensures that no value is present for Temperature, not even an explicit nil
func (*CreateChatCompletionRequest) UnsetTopP ¶
func (o *CreateChatCompletionRequest) UnsetTopP()
UnsetTopP ensures that no value is present for TopP, not even an explicit nil
type CreateChatCompletionRequestStop ¶
CreateChatCompletionRequestStop - Up to 4 sequences where the API will stop generating further tokens.
func ArrayOfStringAsCreateChatCompletionRequestStop ¶
func ArrayOfStringAsCreateChatCompletionRequestStop(v *[]string) CreateChatCompletionRequestStop
[]stringAsCreateChatCompletionRequestStop is a convenience function that returns []string wrapped in CreateChatCompletionRequestStop
func StringAsCreateChatCompletionRequestStop ¶
func StringAsCreateChatCompletionRequestStop(v *string) CreateChatCompletionRequestStop
stringAsCreateChatCompletionRequestStop is a convenience function that returns string wrapped in CreateChatCompletionRequestStop
func (*CreateChatCompletionRequestStop) GetActualInstance ¶
func (obj *CreateChatCompletionRequestStop) GetActualInstance() interface{}
Get the actual instance
func (CreateChatCompletionRequestStop) MarshalJSON ¶
func (src CreateChatCompletionRequestStop) MarshalJSON() ([]byte, error)
Marshal data from the first non-nil pointers in the struct to JSON
func (*CreateChatCompletionRequestStop) UnmarshalJSON ¶
func (dst *CreateChatCompletionRequestStop) UnmarshalJSON(data []byte) error
Unmarshal JSON data into one of the pointers in the struct
type CreateChatCompletionResponse ¶
type CreateChatCompletionResponse struct { Id string `json:"id"` Object string `json:"object"` Created int32 `json:"created"` Model string `json:"model"` Choices []CreateChatCompletionResponseChoicesInner `json:"choices"` Usage *CreateCompletionResponseUsage `json:"usage,omitempty"` }
CreateChatCompletionResponse struct for CreateChatCompletionResponse
func NewCreateChatCompletionResponse ¶
func NewCreateChatCompletionResponse(id string, object string, created int32, model string, choices []CreateChatCompletionResponseChoicesInner) *CreateChatCompletionResponse
NewCreateChatCompletionResponse instantiates a new CreateChatCompletionResponse 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 NewCreateChatCompletionResponseWithDefaults ¶
func NewCreateChatCompletionResponseWithDefaults() *CreateChatCompletionResponse
NewCreateChatCompletionResponseWithDefaults instantiates a new CreateChatCompletionResponse 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 (*CreateChatCompletionResponse) GetChoices ¶
func (o *CreateChatCompletionResponse) GetChoices() []CreateChatCompletionResponseChoicesInner
GetChoices returns the Choices field value
func (*CreateChatCompletionResponse) GetChoicesOk ¶
func (o *CreateChatCompletionResponse) GetChoicesOk() ([]CreateChatCompletionResponseChoicesInner, bool)
GetChoicesOk returns a tuple with the Choices field value and a boolean to check if the value has been set.
func (*CreateChatCompletionResponse) GetCreated ¶
func (o *CreateChatCompletionResponse) GetCreated() int32
GetCreated returns the Created field value
func (*CreateChatCompletionResponse) GetCreatedOk ¶
func (o *CreateChatCompletionResponse) GetCreatedOk() (*int32, bool)
GetCreatedOk returns a tuple with the Created field value and a boolean to check if the value has been set.
func (*CreateChatCompletionResponse) GetId ¶
func (o *CreateChatCompletionResponse) GetId() string
GetId returns the Id field value
func (*CreateChatCompletionResponse) GetIdOk ¶
func (o *CreateChatCompletionResponse) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (*CreateChatCompletionResponse) GetModel ¶
func (o *CreateChatCompletionResponse) GetModel() string
GetModel returns the Model field value
func (*CreateChatCompletionResponse) GetModelOk ¶
func (o *CreateChatCompletionResponse) GetModelOk() (*string, bool)
GetModelOk returns a tuple with the Model field value and a boolean to check if the value has been set.
func (*CreateChatCompletionResponse) GetObject ¶
func (o *CreateChatCompletionResponse) GetObject() string
GetObject returns the Object field value
func (*CreateChatCompletionResponse) GetObjectOk ¶
func (o *CreateChatCompletionResponse) GetObjectOk() (*string, bool)
GetObjectOk returns a tuple with the Object field value and a boolean to check if the value has been set.
func (*CreateChatCompletionResponse) GetUsage ¶
func (o *CreateChatCompletionResponse) GetUsage() CreateCompletionResponseUsage
GetUsage returns the Usage field value if set, zero value otherwise.
func (*CreateChatCompletionResponse) GetUsageOk ¶
func (o *CreateChatCompletionResponse) GetUsageOk() (*CreateCompletionResponseUsage, bool)
GetUsageOk returns a tuple with the Usage field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateChatCompletionResponse) HasUsage ¶
func (o *CreateChatCompletionResponse) HasUsage() bool
HasUsage returns a boolean if a field has been set.
func (CreateChatCompletionResponse) MarshalJSON ¶
func (o CreateChatCompletionResponse) MarshalJSON() ([]byte, error)
func (*CreateChatCompletionResponse) SetChoices ¶
func (o *CreateChatCompletionResponse) SetChoices(v []CreateChatCompletionResponseChoicesInner)
SetChoices sets field value
func (*CreateChatCompletionResponse) SetCreated ¶
func (o *CreateChatCompletionResponse) SetCreated(v int32)
SetCreated sets field value
func (*CreateChatCompletionResponse) SetId ¶
func (o *CreateChatCompletionResponse) SetId(v string)
SetId sets field value
func (*CreateChatCompletionResponse) SetModel ¶
func (o *CreateChatCompletionResponse) SetModel(v string)
SetModel sets field value
func (*CreateChatCompletionResponse) SetObject ¶
func (o *CreateChatCompletionResponse) SetObject(v string)
SetObject sets field value
func (*CreateChatCompletionResponse) SetUsage ¶
func (o *CreateChatCompletionResponse) SetUsage(v CreateCompletionResponseUsage)
SetUsage gets a reference to the given CreateCompletionResponseUsage and assigns it to the Usage field.
func (CreateChatCompletionResponse) ToMap ¶
func (o CreateChatCompletionResponse) ToMap() (map[string]interface{}, error)
type CreateChatCompletionResponseChoicesInner ¶
type CreateChatCompletionResponseChoicesInner struct { Index *int32 `json:"index,omitempty"` Message *ChatCompletionResponseMessage `json:"message,omitempty"` FinishReason *string `json:"finish_reason,omitempty"` }
CreateChatCompletionResponseChoicesInner struct for CreateChatCompletionResponseChoicesInner
func NewCreateChatCompletionResponseChoicesInner ¶
func NewCreateChatCompletionResponseChoicesInner() *CreateChatCompletionResponseChoicesInner
NewCreateChatCompletionResponseChoicesInner instantiates a new CreateChatCompletionResponseChoicesInner 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 NewCreateChatCompletionResponseChoicesInnerWithDefaults ¶
func NewCreateChatCompletionResponseChoicesInnerWithDefaults() *CreateChatCompletionResponseChoicesInner
NewCreateChatCompletionResponseChoicesInnerWithDefaults instantiates a new CreateChatCompletionResponseChoicesInner 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 (*CreateChatCompletionResponseChoicesInner) GetFinishReason ¶
func (o *CreateChatCompletionResponseChoicesInner) GetFinishReason() string
GetFinishReason returns the FinishReason field value if set, zero value otherwise.
func (*CreateChatCompletionResponseChoicesInner) GetFinishReasonOk ¶
func (o *CreateChatCompletionResponseChoicesInner) GetFinishReasonOk() (*string, bool)
GetFinishReasonOk returns a tuple with the FinishReason field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateChatCompletionResponseChoicesInner) GetIndex ¶
func (o *CreateChatCompletionResponseChoicesInner) GetIndex() int32
GetIndex returns the Index field value if set, zero value otherwise.
func (*CreateChatCompletionResponseChoicesInner) GetIndexOk ¶
func (o *CreateChatCompletionResponseChoicesInner) GetIndexOk() (*int32, bool)
GetIndexOk returns a tuple with the Index field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateChatCompletionResponseChoicesInner) GetMessage ¶
func (o *CreateChatCompletionResponseChoicesInner) GetMessage() ChatCompletionResponseMessage
GetMessage returns the Message field value if set, zero value otherwise.
func (*CreateChatCompletionResponseChoicesInner) GetMessageOk ¶
func (o *CreateChatCompletionResponseChoicesInner) GetMessageOk() (*ChatCompletionResponseMessage, bool)
GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateChatCompletionResponseChoicesInner) HasFinishReason ¶
func (o *CreateChatCompletionResponseChoicesInner) HasFinishReason() bool
HasFinishReason returns a boolean if a field has been set.
func (*CreateChatCompletionResponseChoicesInner) HasIndex ¶
func (o *CreateChatCompletionResponseChoicesInner) HasIndex() bool
HasIndex returns a boolean if a field has been set.
func (*CreateChatCompletionResponseChoicesInner) HasMessage ¶
func (o *CreateChatCompletionResponseChoicesInner) HasMessage() bool
HasMessage returns a boolean if a field has been set.
func (CreateChatCompletionResponseChoicesInner) MarshalJSON ¶
func (o CreateChatCompletionResponseChoicesInner) MarshalJSON() ([]byte, error)
func (*CreateChatCompletionResponseChoicesInner) SetFinishReason ¶
func (o *CreateChatCompletionResponseChoicesInner) SetFinishReason(v string)
SetFinishReason gets a reference to the given string and assigns it to the FinishReason field.
func (*CreateChatCompletionResponseChoicesInner) SetIndex ¶
func (o *CreateChatCompletionResponseChoicesInner) SetIndex(v int32)
SetIndex gets a reference to the given int32 and assigns it to the Index field.
func (*CreateChatCompletionResponseChoicesInner) SetMessage ¶
func (o *CreateChatCompletionResponseChoicesInner) SetMessage(v ChatCompletionResponseMessage)
SetMessage gets a reference to the given ChatCompletionResponseMessage and assigns it to the Message field.
func (CreateChatCompletionResponseChoicesInner) ToMap ¶
func (o CreateChatCompletionResponseChoicesInner) ToMap() (map[string]interface{}, error)
type CreateClassificationRequest ¶
type CreateClassificationRequest struct { // ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models/overview) for descriptions of them. Model string `json:"model"` // Query to be classified. Query string `json:"query"` // A list of examples with labels, in the following format: `[[\"The movie is so interesting.\", \"Positive\"], [\"It is quite boring.\", \"Negative\"], ...]` All the label strings will be normalized to be capitalized. You should specify either `examples` or `file`, but not both. Examples [][]string `json:"examples,omitempty"` // The ID of the uploaded file that contains training examples. See [upload file](/docs/api-reference/files/upload) for how to upload a file of the desired format and purpose. You should specify either `examples` or `file`, but not both. File NullableString `json:"file,omitempty"` // The set of categories being classified. If not specified, candidate labels will be automatically collected from the examples you provide. All the label strings will be normalized to be capitalized. Labels []string `json:"labels,omitempty"` // ID of the model to use for [Search](/docs/api-reference/searches/create). You can select one of `ada`, `babbage`, `curie`, or `davinci`. SearchModel NullableString `json:"search_model,omitempty"` // What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. Temperature NullableFloat32 `json:"temperature,omitempty"` // Include the log probabilities on the `logprobs` most likely tokens, as well the chosen tokens. For example, if `logprobs` is 5, the API will return a list of the 5 most likely tokens. The API will always return the `logprob` of the sampled token, so there may be up to `logprobs+1` elements in the response. The maximum value for `logprobs` is 5. If you need more than this, please contact us through our [Help center](https://help.openai.com) and describe your use case. When `logprobs` is set, `completion` will be automatically added into `expand` to get the logprobs. Logprobs NullableInt32 `json:"logprobs,omitempty"` // The maximum number of examples to be ranked by [Search](/docs/api-reference/searches/create) when using `file`. Setting it to a higher value leads to improved accuracy but with increased latency and cost. MaxExamples NullableInt32 `json:"max_examples,omitempty"` // Modify the likelihood of specified tokens appearing in the completion. Accepts a json object that maps tokens (specified by their token ID in the GPT tokenizer) to an associated bias value from -100 to 100. You can use this [tokenizer tool](/tokenizer?view=bpe) (which works for both GPT-2 and GPT-3) to convert text to token IDs. Mathematically, the bias is added to the logits generated by the model prior to sampling. The exact effect will vary per model, but values between -1 and 1 should decrease or increase likelihood of selection; values like -100 or 100 should result in a ban or exclusive selection of the relevant token. As an example, you can pass `{\"50256\": -100}` to prevent the <|endoftext|> token from being generated. LogitBias map[string]interface{} `json:"logit_bias,omitempty"` // If set to `true`, the returned JSON will include a \"prompt\" field containing the final prompt that was used to request a completion. This is mainly useful for debugging purposes. ReturnPrompt NullableBool `json:"return_prompt,omitempty"` // A special boolean flag for showing metadata. If set to `true`, each document entry in the returned JSON will contain a \"metadata\" field. This flag only takes effect when `file` is set. ReturnMetadata NullableBool `json:"return_metadata,omitempty"` // If an object name is in the list, we provide the full information of the object; otherwise, we only provide the object ID. Currently we support `completion` and `file` objects for expansion. Expand []interface{} `json:"expand,omitempty"` // A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices/end-user-ids). User *string `json:"user,omitempty"` }
CreateClassificationRequest struct for CreateClassificationRequest
func NewCreateClassificationRequest ¶
func NewCreateClassificationRequest(model string, query string) *CreateClassificationRequest
NewCreateClassificationRequest instantiates a new CreateClassificationRequest 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 NewCreateClassificationRequestWithDefaults ¶
func NewCreateClassificationRequestWithDefaults() *CreateClassificationRequest
NewCreateClassificationRequestWithDefaults instantiates a new CreateClassificationRequest 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 (*CreateClassificationRequest) GetExamples ¶
func (o *CreateClassificationRequest) GetExamples() [][]string
GetExamples returns the Examples field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateClassificationRequest) GetExamplesOk ¶
func (o *CreateClassificationRequest) GetExamplesOk() ([][]string, bool)
GetExamplesOk returns a tuple with the Examples field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateClassificationRequest) GetExpand ¶
func (o *CreateClassificationRequest) GetExpand() []interface{}
GetExpand returns the Expand field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateClassificationRequest) GetExpandOk ¶
func (o *CreateClassificationRequest) GetExpandOk() ([]interface{}, bool)
GetExpandOk returns a tuple with the Expand field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateClassificationRequest) GetFile ¶
func (o *CreateClassificationRequest) GetFile() string
GetFile returns the File field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateClassificationRequest) GetFileOk ¶
func (o *CreateClassificationRequest) GetFileOk() (*string, bool)
GetFileOk returns a tuple with the File field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateClassificationRequest) GetLabels ¶
func (o *CreateClassificationRequest) GetLabels() []string
GetLabels returns the Labels field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateClassificationRequest) GetLabelsOk ¶
func (o *CreateClassificationRequest) GetLabelsOk() ([]string, bool)
GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateClassificationRequest) GetLogitBias ¶
func (o *CreateClassificationRequest) GetLogitBias() map[string]interface{}
GetLogitBias returns the LogitBias field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateClassificationRequest) GetLogitBiasOk ¶
func (o *CreateClassificationRequest) GetLogitBiasOk() (map[string]interface{}, bool)
GetLogitBiasOk returns a tuple with the LogitBias field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateClassificationRequest) GetLogprobs ¶
func (o *CreateClassificationRequest) GetLogprobs() int32
GetLogprobs returns the Logprobs field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateClassificationRequest) GetLogprobsOk ¶
func (o *CreateClassificationRequest) GetLogprobsOk() (*int32, bool)
GetLogprobsOk returns a tuple with the Logprobs field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateClassificationRequest) GetMaxExamples ¶
func (o *CreateClassificationRequest) GetMaxExamples() int32
GetMaxExamples returns the MaxExamples field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateClassificationRequest) GetMaxExamplesOk ¶
func (o *CreateClassificationRequest) GetMaxExamplesOk() (*int32, bool)
GetMaxExamplesOk returns a tuple with the MaxExamples field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateClassificationRequest) GetModel ¶
func (o *CreateClassificationRequest) GetModel() string
GetModel returns the Model field value
func (*CreateClassificationRequest) GetModelOk ¶
func (o *CreateClassificationRequest) GetModelOk() (*string, bool)
GetModelOk returns a tuple with the Model field value and a boolean to check if the value has been set.
func (*CreateClassificationRequest) GetQuery ¶
func (o *CreateClassificationRequest) GetQuery() string
GetQuery returns the Query field value
func (*CreateClassificationRequest) GetQueryOk ¶
func (o *CreateClassificationRequest) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value and a boolean to check if the value has been set.
func (*CreateClassificationRequest) GetReturnMetadata ¶
func (o *CreateClassificationRequest) GetReturnMetadata() bool
GetReturnMetadata returns the ReturnMetadata field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateClassificationRequest) GetReturnMetadataOk ¶
func (o *CreateClassificationRequest) GetReturnMetadataOk() (*bool, bool)
GetReturnMetadataOk returns a tuple with the ReturnMetadata field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateClassificationRequest) GetReturnPrompt ¶
func (o *CreateClassificationRequest) GetReturnPrompt() bool
GetReturnPrompt returns the ReturnPrompt field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateClassificationRequest) GetReturnPromptOk ¶
func (o *CreateClassificationRequest) GetReturnPromptOk() (*bool, bool)
GetReturnPromptOk returns a tuple with the ReturnPrompt field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateClassificationRequest) GetSearchModel ¶
func (o *CreateClassificationRequest) GetSearchModel() string
GetSearchModel returns the SearchModel field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateClassificationRequest) GetSearchModelOk ¶
func (o *CreateClassificationRequest) GetSearchModelOk() (*string, bool)
GetSearchModelOk returns a tuple with the SearchModel field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateClassificationRequest) GetTemperature ¶
func (o *CreateClassificationRequest) GetTemperature() float32
GetTemperature returns the Temperature field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateClassificationRequest) GetTemperatureOk ¶
func (o *CreateClassificationRequest) GetTemperatureOk() (*float32, bool)
GetTemperatureOk returns a tuple with the Temperature field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateClassificationRequest) GetUser ¶
func (o *CreateClassificationRequest) GetUser() string
GetUser returns the User field value if set, zero value otherwise.
func (*CreateClassificationRequest) GetUserOk ¶
func (o *CreateClassificationRequest) GetUserOk() (*string, bool)
GetUserOk returns a tuple with the User field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateClassificationRequest) HasExamples ¶
func (o *CreateClassificationRequest) HasExamples() bool
HasExamples returns a boolean if a field has been set.
func (*CreateClassificationRequest) HasExpand ¶
func (o *CreateClassificationRequest) HasExpand() bool
HasExpand returns a boolean if a field has been set.
func (*CreateClassificationRequest) HasFile ¶
func (o *CreateClassificationRequest) HasFile() bool
HasFile returns a boolean if a field has been set.
func (*CreateClassificationRequest) HasLabels ¶
func (o *CreateClassificationRequest) HasLabels() bool
HasLabels returns a boolean if a field has been set.
func (*CreateClassificationRequest) HasLogitBias ¶
func (o *CreateClassificationRequest) HasLogitBias() bool
HasLogitBias returns a boolean if a field has been set.
func (*CreateClassificationRequest) HasLogprobs ¶
func (o *CreateClassificationRequest) HasLogprobs() bool
HasLogprobs returns a boolean if a field has been set.
func (*CreateClassificationRequest) HasMaxExamples ¶
func (o *CreateClassificationRequest) HasMaxExamples() bool
HasMaxExamples returns a boolean if a field has been set.
func (*CreateClassificationRequest) HasReturnMetadata ¶
func (o *CreateClassificationRequest) HasReturnMetadata() bool
HasReturnMetadata returns a boolean if a field has been set.
func (*CreateClassificationRequest) HasReturnPrompt ¶
func (o *CreateClassificationRequest) HasReturnPrompt() bool
HasReturnPrompt returns a boolean if a field has been set.
func (*CreateClassificationRequest) HasSearchModel ¶
func (o *CreateClassificationRequest) HasSearchModel() bool
HasSearchModel returns a boolean if a field has been set.
func (*CreateClassificationRequest) HasTemperature ¶
func (o *CreateClassificationRequest) HasTemperature() bool
HasTemperature returns a boolean if a field has been set.
func (*CreateClassificationRequest) HasUser ¶
func (o *CreateClassificationRequest) HasUser() bool
HasUser returns a boolean if a field has been set.
func (CreateClassificationRequest) MarshalJSON ¶
func (o CreateClassificationRequest) MarshalJSON() ([]byte, error)
func (*CreateClassificationRequest) SetExamples ¶
func (o *CreateClassificationRequest) SetExamples(v [][]string)
SetExamples gets a reference to the given [][]string and assigns it to the Examples field.
func (*CreateClassificationRequest) SetExpand ¶
func (o *CreateClassificationRequest) SetExpand(v []interface{})
SetExpand gets a reference to the given []interface{} and assigns it to the Expand field.
func (*CreateClassificationRequest) SetFile ¶
func (o *CreateClassificationRequest) SetFile(v string)
SetFile gets a reference to the given NullableString and assigns it to the File field.
func (*CreateClassificationRequest) SetFileNil ¶
func (o *CreateClassificationRequest) SetFileNil()
SetFileNil sets the value for File to be an explicit nil
func (*CreateClassificationRequest) SetLabels ¶
func (o *CreateClassificationRequest) SetLabels(v []string)
SetLabels gets a reference to the given []string and assigns it to the Labels field.
func (*CreateClassificationRequest) SetLogitBias ¶
func (o *CreateClassificationRequest) SetLogitBias(v map[string]interface{})
SetLogitBias gets a reference to the given map[string]interface{} and assigns it to the LogitBias field.
func (*CreateClassificationRequest) SetLogprobs ¶
func (o *CreateClassificationRequest) SetLogprobs(v int32)
SetLogprobs gets a reference to the given NullableInt32 and assigns it to the Logprobs field.
func (*CreateClassificationRequest) SetLogprobsNil ¶
func (o *CreateClassificationRequest) SetLogprobsNil()
SetLogprobsNil sets the value for Logprobs to be an explicit nil
func (*CreateClassificationRequest) SetMaxExamples ¶
func (o *CreateClassificationRequest) SetMaxExamples(v int32)
SetMaxExamples gets a reference to the given NullableInt32 and assigns it to the MaxExamples field.
func (*CreateClassificationRequest) SetMaxExamplesNil ¶
func (o *CreateClassificationRequest) SetMaxExamplesNil()
SetMaxExamplesNil sets the value for MaxExamples to be an explicit nil
func (*CreateClassificationRequest) SetModel ¶
func (o *CreateClassificationRequest) SetModel(v string)
SetModel sets field value
func (*CreateClassificationRequest) SetQuery ¶
func (o *CreateClassificationRequest) SetQuery(v string)
SetQuery sets field value
func (*CreateClassificationRequest) SetReturnMetadata ¶
func (o *CreateClassificationRequest) SetReturnMetadata(v bool)
SetReturnMetadata gets a reference to the given NullableBool and assigns it to the ReturnMetadata field.
func (*CreateClassificationRequest) SetReturnMetadataNil ¶
func (o *CreateClassificationRequest) SetReturnMetadataNil()
SetReturnMetadataNil sets the value for ReturnMetadata to be an explicit nil
func (*CreateClassificationRequest) SetReturnPrompt ¶
func (o *CreateClassificationRequest) SetReturnPrompt(v bool)
SetReturnPrompt gets a reference to the given NullableBool and assigns it to the ReturnPrompt field.
func (*CreateClassificationRequest) SetReturnPromptNil ¶
func (o *CreateClassificationRequest) SetReturnPromptNil()
SetReturnPromptNil sets the value for ReturnPrompt to be an explicit nil
func (*CreateClassificationRequest) SetSearchModel ¶
func (o *CreateClassificationRequest) SetSearchModel(v string)
SetSearchModel gets a reference to the given NullableString and assigns it to the SearchModel field.
func (*CreateClassificationRequest) SetSearchModelNil ¶
func (o *CreateClassificationRequest) SetSearchModelNil()
SetSearchModelNil sets the value for SearchModel to be an explicit nil
func (*CreateClassificationRequest) SetTemperature ¶
func (o *CreateClassificationRequest) SetTemperature(v float32)
SetTemperature gets a reference to the given NullableFloat32 and assigns it to the Temperature field.
func (*CreateClassificationRequest) SetTemperatureNil ¶
func (o *CreateClassificationRequest) SetTemperatureNil()
SetTemperatureNil sets the value for Temperature to be an explicit nil
func (*CreateClassificationRequest) SetUser ¶
func (o *CreateClassificationRequest) SetUser(v string)
SetUser gets a reference to the given string and assigns it to the User field.
func (CreateClassificationRequest) ToMap ¶
func (o CreateClassificationRequest) ToMap() (map[string]interface{}, error)
func (*CreateClassificationRequest) UnsetFile ¶
func (o *CreateClassificationRequest) UnsetFile()
UnsetFile ensures that no value is present for File, not even an explicit nil
func (*CreateClassificationRequest) UnsetLogprobs ¶
func (o *CreateClassificationRequest) UnsetLogprobs()
UnsetLogprobs ensures that no value is present for Logprobs, not even an explicit nil
func (*CreateClassificationRequest) UnsetMaxExamples ¶
func (o *CreateClassificationRequest) UnsetMaxExamples()
UnsetMaxExamples ensures that no value is present for MaxExamples, not even an explicit nil
func (*CreateClassificationRequest) UnsetReturnMetadata ¶
func (o *CreateClassificationRequest) UnsetReturnMetadata()
UnsetReturnMetadata ensures that no value is present for ReturnMetadata, not even an explicit nil
func (*CreateClassificationRequest) UnsetReturnPrompt ¶
func (o *CreateClassificationRequest) UnsetReturnPrompt()
UnsetReturnPrompt ensures that no value is present for ReturnPrompt, not even an explicit nil
func (*CreateClassificationRequest) UnsetSearchModel ¶
func (o *CreateClassificationRequest) UnsetSearchModel()
UnsetSearchModel ensures that no value is present for SearchModel, not even an explicit nil
func (*CreateClassificationRequest) UnsetTemperature ¶
func (o *CreateClassificationRequest) UnsetTemperature()
UnsetTemperature ensures that no value is present for Temperature, not even an explicit nil
type CreateClassificationResponse ¶
type CreateClassificationResponse struct { Object *string `json:"object,omitempty"` Model *string `json:"model,omitempty"` SearchModel *string `json:"search_model,omitempty"` Completion *string `json:"completion,omitempty"` Label *string `json:"label,omitempty"` SelectedExamples []CreateClassificationResponseSelectedExamplesInner `json:"selected_examples,omitempty"` }
CreateClassificationResponse struct for CreateClassificationResponse
func NewCreateClassificationResponse ¶
func NewCreateClassificationResponse() *CreateClassificationResponse
NewCreateClassificationResponse instantiates a new CreateClassificationResponse 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 NewCreateClassificationResponseWithDefaults ¶
func NewCreateClassificationResponseWithDefaults() *CreateClassificationResponse
NewCreateClassificationResponseWithDefaults instantiates a new CreateClassificationResponse 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 (*CreateClassificationResponse) GetCompletion ¶
func (o *CreateClassificationResponse) GetCompletion() string
GetCompletion returns the Completion field value if set, zero value otherwise.
func (*CreateClassificationResponse) GetCompletionOk ¶
func (o *CreateClassificationResponse) GetCompletionOk() (*string, bool)
GetCompletionOk returns a tuple with the Completion field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateClassificationResponse) GetLabel ¶
func (o *CreateClassificationResponse) GetLabel() string
GetLabel returns the Label field value if set, zero value otherwise.
func (*CreateClassificationResponse) GetLabelOk ¶
func (o *CreateClassificationResponse) GetLabelOk() (*string, bool)
GetLabelOk returns a tuple with the Label field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateClassificationResponse) GetModel ¶
func (o *CreateClassificationResponse) GetModel() string
GetModel returns the Model field value if set, zero value otherwise.
func (*CreateClassificationResponse) GetModelOk ¶
func (o *CreateClassificationResponse) GetModelOk() (*string, bool)
GetModelOk returns a tuple with the Model field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateClassificationResponse) GetObject ¶
func (o *CreateClassificationResponse) GetObject() string
GetObject returns the Object field value if set, zero value otherwise.
func (*CreateClassificationResponse) GetObjectOk ¶
func (o *CreateClassificationResponse) GetObjectOk() (*string, bool)
GetObjectOk returns a tuple with the Object field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateClassificationResponse) GetSearchModel ¶
func (o *CreateClassificationResponse) GetSearchModel() string
GetSearchModel returns the SearchModel field value if set, zero value otherwise.
func (*CreateClassificationResponse) GetSearchModelOk ¶
func (o *CreateClassificationResponse) GetSearchModelOk() (*string, bool)
GetSearchModelOk returns a tuple with the SearchModel field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateClassificationResponse) GetSelectedExamples ¶
func (o *CreateClassificationResponse) GetSelectedExamples() []CreateClassificationResponseSelectedExamplesInner
GetSelectedExamples returns the SelectedExamples field value if set, zero value otherwise.
func (*CreateClassificationResponse) GetSelectedExamplesOk ¶
func (o *CreateClassificationResponse) GetSelectedExamplesOk() ([]CreateClassificationResponseSelectedExamplesInner, bool)
GetSelectedExamplesOk returns a tuple with the SelectedExamples field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateClassificationResponse) HasCompletion ¶
func (o *CreateClassificationResponse) HasCompletion() bool
HasCompletion returns a boolean if a field has been set.
func (*CreateClassificationResponse) HasLabel ¶
func (o *CreateClassificationResponse) HasLabel() bool
HasLabel returns a boolean if a field has been set.
func (*CreateClassificationResponse) HasModel ¶
func (o *CreateClassificationResponse) HasModel() bool
HasModel returns a boolean if a field has been set.
func (*CreateClassificationResponse) HasObject ¶
func (o *CreateClassificationResponse) HasObject() bool
HasObject returns a boolean if a field has been set.
func (*CreateClassificationResponse) HasSearchModel ¶
func (o *CreateClassificationResponse) HasSearchModel() bool
HasSearchModel returns a boolean if a field has been set.
func (*CreateClassificationResponse) HasSelectedExamples ¶
func (o *CreateClassificationResponse) HasSelectedExamples() bool
HasSelectedExamples returns a boolean if a field has been set.
func (CreateClassificationResponse) MarshalJSON ¶
func (o CreateClassificationResponse) MarshalJSON() ([]byte, error)
func (*CreateClassificationResponse) SetCompletion ¶
func (o *CreateClassificationResponse) SetCompletion(v string)
SetCompletion gets a reference to the given string and assigns it to the Completion field.
func (*CreateClassificationResponse) SetLabel ¶
func (o *CreateClassificationResponse) SetLabel(v string)
SetLabel gets a reference to the given string and assigns it to the Label field.
func (*CreateClassificationResponse) SetModel ¶
func (o *CreateClassificationResponse) SetModel(v string)
SetModel gets a reference to the given string and assigns it to the Model field.
func (*CreateClassificationResponse) SetObject ¶
func (o *CreateClassificationResponse) SetObject(v string)
SetObject gets a reference to the given string and assigns it to the Object field.
func (*CreateClassificationResponse) SetSearchModel ¶
func (o *CreateClassificationResponse) SetSearchModel(v string)
SetSearchModel gets a reference to the given string and assigns it to the SearchModel field.
func (*CreateClassificationResponse) SetSelectedExamples ¶
func (o *CreateClassificationResponse) SetSelectedExamples(v []CreateClassificationResponseSelectedExamplesInner)
SetSelectedExamples gets a reference to the given []CreateClassificationResponseSelectedExamplesInner and assigns it to the SelectedExamples field.
func (CreateClassificationResponse) ToMap ¶
func (o CreateClassificationResponse) ToMap() (map[string]interface{}, error)
type CreateClassificationResponseSelectedExamplesInner ¶
type CreateClassificationResponseSelectedExamplesInner struct { Document *int32 `json:"document,omitempty"` Text *string `json:"text,omitempty"` Label *string `json:"label,omitempty"` }
CreateClassificationResponseSelectedExamplesInner struct for CreateClassificationResponseSelectedExamplesInner
func NewCreateClassificationResponseSelectedExamplesInner ¶
func NewCreateClassificationResponseSelectedExamplesInner() *CreateClassificationResponseSelectedExamplesInner
NewCreateClassificationResponseSelectedExamplesInner instantiates a new CreateClassificationResponseSelectedExamplesInner 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 NewCreateClassificationResponseSelectedExamplesInnerWithDefaults ¶
func NewCreateClassificationResponseSelectedExamplesInnerWithDefaults() *CreateClassificationResponseSelectedExamplesInner
NewCreateClassificationResponseSelectedExamplesInnerWithDefaults instantiates a new CreateClassificationResponseSelectedExamplesInner 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 (*CreateClassificationResponseSelectedExamplesInner) GetDocument ¶
func (o *CreateClassificationResponseSelectedExamplesInner) GetDocument() int32
GetDocument returns the Document field value if set, zero value otherwise.
func (*CreateClassificationResponseSelectedExamplesInner) GetDocumentOk ¶
func (o *CreateClassificationResponseSelectedExamplesInner) GetDocumentOk() (*int32, bool)
GetDocumentOk returns a tuple with the Document field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateClassificationResponseSelectedExamplesInner) GetLabel ¶
func (o *CreateClassificationResponseSelectedExamplesInner) GetLabel() string
GetLabel returns the Label field value if set, zero value otherwise.
func (*CreateClassificationResponseSelectedExamplesInner) GetLabelOk ¶
func (o *CreateClassificationResponseSelectedExamplesInner) GetLabelOk() (*string, bool)
GetLabelOk returns a tuple with the Label field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateClassificationResponseSelectedExamplesInner) GetText ¶
func (o *CreateClassificationResponseSelectedExamplesInner) GetText() string
GetText returns the Text field value if set, zero value otherwise.
func (*CreateClassificationResponseSelectedExamplesInner) GetTextOk ¶
func (o *CreateClassificationResponseSelectedExamplesInner) GetTextOk() (*string, bool)
GetTextOk returns a tuple with the Text field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateClassificationResponseSelectedExamplesInner) HasDocument ¶
func (o *CreateClassificationResponseSelectedExamplesInner) HasDocument() bool
HasDocument returns a boolean if a field has been set.
func (*CreateClassificationResponseSelectedExamplesInner) HasLabel ¶
func (o *CreateClassificationResponseSelectedExamplesInner) HasLabel() bool
HasLabel returns a boolean if a field has been set.
func (*CreateClassificationResponseSelectedExamplesInner) HasText ¶
func (o *CreateClassificationResponseSelectedExamplesInner) HasText() bool
HasText returns a boolean if a field has been set.
func (CreateClassificationResponseSelectedExamplesInner) MarshalJSON ¶
func (o CreateClassificationResponseSelectedExamplesInner) MarshalJSON() ([]byte, error)
func (*CreateClassificationResponseSelectedExamplesInner) SetDocument ¶
func (o *CreateClassificationResponseSelectedExamplesInner) SetDocument(v int32)
SetDocument gets a reference to the given int32 and assigns it to the Document field.
func (*CreateClassificationResponseSelectedExamplesInner) SetLabel ¶
func (o *CreateClassificationResponseSelectedExamplesInner) SetLabel(v string)
SetLabel gets a reference to the given string and assigns it to the Label field.
func (*CreateClassificationResponseSelectedExamplesInner) SetText ¶
func (o *CreateClassificationResponseSelectedExamplesInner) SetText(v string)
SetText gets a reference to the given string and assigns it to the Text field.
func (CreateClassificationResponseSelectedExamplesInner) ToMap ¶
func (o CreateClassificationResponseSelectedExamplesInner) ToMap() (map[string]interface{}, error)
type CreateCompletionRequest ¶
type CreateCompletionRequest struct { // ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models/overview) for descriptions of them. Model string `json:"model"` Prompt NullableCreateCompletionRequestPrompt `json:"prompt,omitempty"` // The suffix that comes after a completion of inserted text. Suffix NullableString `json:"suffix,omitempty"` // The maximum number of [tokens](/tokenizer) to generate in the completion. The token count of your prompt plus `max_tokens` cannot exceed the model's context length. Most models have a context length of 2048 tokens (except for the newest models, which support 4096). MaxTokens NullableInt32 `json:"max_tokens,omitempty"` // What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. We generally recommend altering this or `top_p` but not both. Temperature NullableFloat32 `json:"temperature,omitempty"` // An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. We generally recommend altering this or `temperature` but not both. TopP NullableFloat32 `json:"top_p,omitempty"` // How many completions to generate for each prompt. **Note:** Because this parameter generates many completions, it can quickly consume your token quota. Use carefully and ensure that you have reasonable settings for `max_tokens` and `stop`. N NullableInt32 `json:"n,omitempty"` // Whether to stream back partial progress. If set, tokens will be sent as data-only [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format) as they become available, with the stream terminated by a `data: [DONE]` message. Stream NullableBool `json:"stream,omitempty"` // Include the log probabilities on the `logprobs` most likely tokens, as well the chosen tokens. For example, if `logprobs` is 5, the API will return a list of the 5 most likely tokens. The API will always return the `logprob` of the sampled token, so there may be up to `logprobs+1` elements in the response. The maximum value for `logprobs` is 5. If you need more than this, please contact us through our [Help center](https://help.openai.com) and describe your use case. Logprobs NullableInt32 `json:"logprobs,omitempty"` // Echo back the prompt in addition to the completion Echo NullableBool `json:"echo,omitempty"` Stop NullableCreateCompletionRequestStop `json:"stop,omitempty"` // Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics. [See more information about frequency and presence penalties.](/docs/api-reference/parameter-details) PresencePenalty NullableFloat32 `json:"presence_penalty,omitempty"` // Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim. [See more information about frequency and presence penalties.](/docs/api-reference/parameter-details) FrequencyPenalty NullableFloat32 `json:"frequency_penalty,omitempty"` // Generates `best_of` completions server-side and returns the \"best\" (the one with the highest log probability per token). Results cannot be streamed. When used with `n`, `best_of` controls the number of candidate completions and `n` specifies how many to return – `best_of` must be greater than `n`. **Note:** Because this parameter generates many completions, it can quickly consume your token quota. Use carefully and ensure that you have reasonable settings for `max_tokens` and `stop`. BestOf NullableInt32 `json:"best_of,omitempty"` // Modify the likelihood of specified tokens appearing in the completion. Accepts a json object that maps tokens (specified by their token ID in the GPT tokenizer) to an associated bias value from -100 to 100. You can use this [tokenizer tool](/tokenizer?view=bpe) (which works for both GPT-2 and GPT-3) to convert text to token IDs. Mathematically, the bias is added to the logits generated by the model prior to sampling. The exact effect will vary per model, but values between -1 and 1 should decrease or increase likelihood of selection; values like -100 or 100 should result in a ban or exclusive selection of the relevant token. As an example, you can pass `{\"50256\": -100}` to prevent the <|endoftext|> token from being generated. LogitBias map[string]interface{} `json:"logit_bias,omitempty"` // A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices/end-user-ids). User *string `json:"user,omitempty"` }
CreateCompletionRequest struct for CreateCompletionRequest
func NewCreateCompletionRequest ¶
func NewCreateCompletionRequest(model string) *CreateCompletionRequest
NewCreateCompletionRequest instantiates a new CreateCompletionRequest 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 NewCreateCompletionRequestWithDefaults ¶
func NewCreateCompletionRequestWithDefaults() *CreateCompletionRequest
NewCreateCompletionRequestWithDefaults instantiates a new CreateCompletionRequest 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 (*CreateCompletionRequest) GetBestOf ¶
func (o *CreateCompletionRequest) GetBestOf() int32
GetBestOf returns the BestOf field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateCompletionRequest) GetBestOfOk ¶
func (o *CreateCompletionRequest) GetBestOfOk() (*int32, bool)
GetBestOfOk returns a tuple with the BestOf field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateCompletionRequest) GetEcho ¶
func (o *CreateCompletionRequest) GetEcho() bool
GetEcho returns the Echo field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateCompletionRequest) GetEchoOk ¶
func (o *CreateCompletionRequest) GetEchoOk() (*bool, bool)
GetEchoOk returns a tuple with the Echo field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateCompletionRequest) GetFrequencyPenalty ¶
func (o *CreateCompletionRequest) GetFrequencyPenalty() float32
GetFrequencyPenalty returns the FrequencyPenalty field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateCompletionRequest) GetFrequencyPenaltyOk ¶
func (o *CreateCompletionRequest) GetFrequencyPenaltyOk() (*float32, bool)
GetFrequencyPenaltyOk returns a tuple with the FrequencyPenalty field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateCompletionRequest) GetLogitBias ¶
func (o *CreateCompletionRequest) GetLogitBias() map[string]interface{}
GetLogitBias returns the LogitBias field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateCompletionRequest) GetLogitBiasOk ¶
func (o *CreateCompletionRequest) GetLogitBiasOk() (map[string]interface{}, bool)
GetLogitBiasOk returns a tuple with the LogitBias field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateCompletionRequest) GetLogprobs ¶
func (o *CreateCompletionRequest) GetLogprobs() int32
GetLogprobs returns the Logprobs field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateCompletionRequest) GetLogprobsOk ¶
func (o *CreateCompletionRequest) GetLogprobsOk() (*int32, bool)
GetLogprobsOk returns a tuple with the Logprobs field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateCompletionRequest) GetMaxTokens ¶
func (o *CreateCompletionRequest) GetMaxTokens() int32
GetMaxTokens returns the MaxTokens field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateCompletionRequest) GetMaxTokensOk ¶
func (o *CreateCompletionRequest) GetMaxTokensOk() (*int32, bool)
GetMaxTokensOk returns a tuple with the MaxTokens field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateCompletionRequest) GetModel ¶
func (o *CreateCompletionRequest) GetModel() string
GetModel returns the Model field value
func (*CreateCompletionRequest) GetModelOk ¶
func (o *CreateCompletionRequest) GetModelOk() (*string, bool)
GetModelOk returns a tuple with the Model field value and a boolean to check if the value has been set.
func (*CreateCompletionRequest) GetN ¶
func (o *CreateCompletionRequest) GetN() int32
GetN returns the N field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateCompletionRequest) GetNOk ¶
func (o *CreateCompletionRequest) GetNOk() (*int32, bool)
GetNOk returns a tuple with the N field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateCompletionRequest) GetPresencePenalty ¶
func (o *CreateCompletionRequest) GetPresencePenalty() float32
GetPresencePenalty returns the PresencePenalty field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateCompletionRequest) GetPresencePenaltyOk ¶
func (o *CreateCompletionRequest) GetPresencePenaltyOk() (*float32, bool)
GetPresencePenaltyOk returns a tuple with the PresencePenalty field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateCompletionRequest) GetPrompt ¶
func (o *CreateCompletionRequest) GetPrompt() CreateCompletionRequestPrompt
GetPrompt returns the Prompt field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateCompletionRequest) GetPromptOk ¶
func (o *CreateCompletionRequest) GetPromptOk() (*CreateCompletionRequestPrompt, bool)
GetPromptOk returns a tuple with the Prompt field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateCompletionRequest) GetStop ¶
func (o *CreateCompletionRequest) GetStop() CreateCompletionRequestStop
GetStop returns the Stop field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateCompletionRequest) GetStopOk ¶
func (o *CreateCompletionRequest) GetStopOk() (*CreateCompletionRequestStop, bool)
GetStopOk returns a tuple with the Stop field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateCompletionRequest) GetStream ¶
func (o *CreateCompletionRequest) GetStream() bool
GetStream returns the Stream field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateCompletionRequest) GetStreamOk ¶
func (o *CreateCompletionRequest) GetStreamOk() (*bool, bool)
GetStreamOk returns a tuple with the Stream field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateCompletionRequest) GetSuffix ¶
func (o *CreateCompletionRequest) GetSuffix() string
GetSuffix returns the Suffix field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateCompletionRequest) GetSuffixOk ¶
func (o *CreateCompletionRequest) GetSuffixOk() (*string, bool)
GetSuffixOk returns a tuple with the Suffix field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateCompletionRequest) GetTemperature ¶
func (o *CreateCompletionRequest) GetTemperature() float32
GetTemperature returns the Temperature field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateCompletionRequest) GetTemperatureOk ¶
func (o *CreateCompletionRequest) GetTemperatureOk() (*float32, bool)
GetTemperatureOk returns a tuple with the Temperature field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateCompletionRequest) GetTopP ¶
func (o *CreateCompletionRequest) GetTopP() float32
GetTopP returns the TopP field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateCompletionRequest) GetTopPOk ¶
func (o *CreateCompletionRequest) GetTopPOk() (*float32, bool)
GetTopPOk returns a tuple with the TopP field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateCompletionRequest) GetUser ¶
func (o *CreateCompletionRequest) GetUser() string
GetUser returns the User field value if set, zero value otherwise.
func (*CreateCompletionRequest) GetUserOk ¶
func (o *CreateCompletionRequest) GetUserOk() (*string, bool)
GetUserOk returns a tuple with the User field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateCompletionRequest) HasBestOf ¶
func (o *CreateCompletionRequest) HasBestOf() bool
HasBestOf returns a boolean if a field has been set.
func (*CreateCompletionRequest) HasEcho ¶
func (o *CreateCompletionRequest) HasEcho() bool
HasEcho returns a boolean if a field has been set.
func (*CreateCompletionRequest) HasFrequencyPenalty ¶
func (o *CreateCompletionRequest) HasFrequencyPenalty() bool
HasFrequencyPenalty returns a boolean if a field has been set.
func (*CreateCompletionRequest) HasLogitBias ¶
func (o *CreateCompletionRequest) HasLogitBias() bool
HasLogitBias returns a boolean if a field has been set.
func (*CreateCompletionRequest) HasLogprobs ¶
func (o *CreateCompletionRequest) HasLogprobs() bool
HasLogprobs returns a boolean if a field has been set.
func (*CreateCompletionRequest) HasMaxTokens ¶
func (o *CreateCompletionRequest) HasMaxTokens() bool
HasMaxTokens returns a boolean if a field has been set.
func (*CreateCompletionRequest) HasN ¶
func (o *CreateCompletionRequest) HasN() bool
HasN returns a boolean if a field has been set.
func (*CreateCompletionRequest) HasPresencePenalty ¶
func (o *CreateCompletionRequest) HasPresencePenalty() bool
HasPresencePenalty returns a boolean if a field has been set.
func (*CreateCompletionRequest) HasPrompt ¶
func (o *CreateCompletionRequest) HasPrompt() bool
HasPrompt returns a boolean if a field has been set.
func (*CreateCompletionRequest) HasStop ¶
func (o *CreateCompletionRequest) HasStop() bool
HasStop returns a boolean if a field has been set.
func (*CreateCompletionRequest) HasStream ¶
func (o *CreateCompletionRequest) HasStream() bool
HasStream returns a boolean if a field has been set.
func (*CreateCompletionRequest) HasSuffix ¶
func (o *CreateCompletionRequest) HasSuffix() bool
HasSuffix returns a boolean if a field has been set.
func (*CreateCompletionRequest) HasTemperature ¶
func (o *CreateCompletionRequest) HasTemperature() bool
HasTemperature returns a boolean if a field has been set.
func (*CreateCompletionRequest) HasTopP ¶
func (o *CreateCompletionRequest) HasTopP() bool
HasTopP returns a boolean if a field has been set.
func (*CreateCompletionRequest) HasUser ¶
func (o *CreateCompletionRequest) HasUser() bool
HasUser returns a boolean if a field has been set.
func (CreateCompletionRequest) MarshalJSON ¶
func (o CreateCompletionRequest) MarshalJSON() ([]byte, error)
func (*CreateCompletionRequest) SetBestOf ¶
func (o *CreateCompletionRequest) SetBestOf(v int32)
SetBestOf gets a reference to the given NullableInt32 and assigns it to the BestOf field.
func (*CreateCompletionRequest) SetBestOfNil ¶
func (o *CreateCompletionRequest) SetBestOfNil()
SetBestOfNil sets the value for BestOf to be an explicit nil
func (*CreateCompletionRequest) SetEcho ¶
func (o *CreateCompletionRequest) SetEcho(v bool)
SetEcho gets a reference to the given NullableBool and assigns it to the Echo field.
func (*CreateCompletionRequest) SetEchoNil ¶
func (o *CreateCompletionRequest) SetEchoNil()
SetEchoNil sets the value for Echo to be an explicit nil
func (*CreateCompletionRequest) SetFrequencyPenalty ¶
func (o *CreateCompletionRequest) SetFrequencyPenalty(v float32)
SetFrequencyPenalty gets a reference to the given NullableFloat32 and assigns it to the FrequencyPenalty field.
func (*CreateCompletionRequest) SetFrequencyPenaltyNil ¶
func (o *CreateCompletionRequest) SetFrequencyPenaltyNil()
SetFrequencyPenaltyNil sets the value for FrequencyPenalty to be an explicit nil
func (*CreateCompletionRequest) SetLogitBias ¶
func (o *CreateCompletionRequest) SetLogitBias(v map[string]interface{})
SetLogitBias gets a reference to the given map[string]interface{} and assigns it to the LogitBias field.
func (*CreateCompletionRequest) SetLogprobs ¶
func (o *CreateCompletionRequest) SetLogprobs(v int32)
SetLogprobs gets a reference to the given NullableInt32 and assigns it to the Logprobs field.
func (*CreateCompletionRequest) SetLogprobsNil ¶
func (o *CreateCompletionRequest) SetLogprobsNil()
SetLogprobsNil sets the value for Logprobs to be an explicit nil
func (*CreateCompletionRequest) SetMaxTokens ¶
func (o *CreateCompletionRequest) SetMaxTokens(v int32)
SetMaxTokens gets a reference to the given NullableInt32 and assigns it to the MaxTokens field.
func (*CreateCompletionRequest) SetMaxTokensNil ¶
func (o *CreateCompletionRequest) SetMaxTokensNil()
SetMaxTokensNil sets the value for MaxTokens to be an explicit nil
func (*CreateCompletionRequest) SetModel ¶
func (o *CreateCompletionRequest) SetModel(v string)
SetModel sets field value
func (*CreateCompletionRequest) SetN ¶
func (o *CreateCompletionRequest) SetN(v int32)
SetN gets a reference to the given NullableInt32 and assigns it to the N field.
func (*CreateCompletionRequest) SetNNil ¶
func (o *CreateCompletionRequest) SetNNil()
SetNNil sets the value for N to be an explicit nil
func (*CreateCompletionRequest) SetPresencePenalty ¶
func (o *CreateCompletionRequest) SetPresencePenalty(v float32)
SetPresencePenalty gets a reference to the given NullableFloat32 and assigns it to the PresencePenalty field.
func (*CreateCompletionRequest) SetPresencePenaltyNil ¶
func (o *CreateCompletionRequest) SetPresencePenaltyNil()
SetPresencePenaltyNil sets the value for PresencePenalty to be an explicit nil
func (*CreateCompletionRequest) SetPrompt ¶
func (o *CreateCompletionRequest) SetPrompt(v CreateCompletionRequestPrompt)
SetPrompt gets a reference to the given NullableCreateCompletionRequestPrompt and assigns it to the Prompt field.
func (*CreateCompletionRequest) SetPromptNil ¶
func (o *CreateCompletionRequest) SetPromptNil()
SetPromptNil sets the value for Prompt to be an explicit nil
func (*CreateCompletionRequest) SetStop ¶
func (o *CreateCompletionRequest) SetStop(v CreateCompletionRequestStop)
SetStop gets a reference to the given NullableCreateCompletionRequestStop and assigns it to the Stop field.
func (*CreateCompletionRequest) SetStopNil ¶
func (o *CreateCompletionRequest) SetStopNil()
SetStopNil sets the value for Stop to be an explicit nil
func (*CreateCompletionRequest) SetStream ¶
func (o *CreateCompletionRequest) SetStream(v bool)
SetStream gets a reference to the given NullableBool and assigns it to the Stream field.
func (*CreateCompletionRequest) SetStreamNil ¶
func (o *CreateCompletionRequest) SetStreamNil()
SetStreamNil sets the value for Stream to be an explicit nil
func (*CreateCompletionRequest) SetSuffix ¶
func (o *CreateCompletionRequest) SetSuffix(v string)
SetSuffix gets a reference to the given NullableString and assigns it to the Suffix field.
func (*CreateCompletionRequest) SetSuffixNil ¶
func (o *CreateCompletionRequest) SetSuffixNil()
SetSuffixNil sets the value for Suffix to be an explicit nil
func (*CreateCompletionRequest) SetTemperature ¶
func (o *CreateCompletionRequest) SetTemperature(v float32)
SetTemperature gets a reference to the given NullableFloat32 and assigns it to the Temperature field.
func (*CreateCompletionRequest) SetTemperatureNil ¶
func (o *CreateCompletionRequest) SetTemperatureNil()
SetTemperatureNil sets the value for Temperature to be an explicit nil
func (*CreateCompletionRequest) SetTopP ¶
func (o *CreateCompletionRequest) SetTopP(v float32)
SetTopP gets a reference to the given NullableFloat32 and assigns it to the TopP field.
func (*CreateCompletionRequest) SetTopPNil ¶
func (o *CreateCompletionRequest) SetTopPNil()
SetTopPNil sets the value for TopP to be an explicit nil
func (*CreateCompletionRequest) SetUser ¶
func (o *CreateCompletionRequest) SetUser(v string)
SetUser gets a reference to the given string and assigns it to the User field.
func (CreateCompletionRequest) ToMap ¶
func (o CreateCompletionRequest) ToMap() (map[string]interface{}, error)
func (*CreateCompletionRequest) UnsetBestOf ¶
func (o *CreateCompletionRequest) UnsetBestOf()
UnsetBestOf ensures that no value is present for BestOf, not even an explicit nil
func (*CreateCompletionRequest) UnsetEcho ¶
func (o *CreateCompletionRequest) UnsetEcho()
UnsetEcho ensures that no value is present for Echo, not even an explicit nil
func (*CreateCompletionRequest) UnsetFrequencyPenalty ¶
func (o *CreateCompletionRequest) UnsetFrequencyPenalty()
UnsetFrequencyPenalty ensures that no value is present for FrequencyPenalty, not even an explicit nil
func (*CreateCompletionRequest) UnsetLogprobs ¶
func (o *CreateCompletionRequest) UnsetLogprobs()
UnsetLogprobs ensures that no value is present for Logprobs, not even an explicit nil
func (*CreateCompletionRequest) UnsetMaxTokens ¶
func (o *CreateCompletionRequest) UnsetMaxTokens()
UnsetMaxTokens ensures that no value is present for MaxTokens, not even an explicit nil
func (*CreateCompletionRequest) UnsetN ¶
func (o *CreateCompletionRequest) UnsetN()
UnsetN ensures that no value is present for N, not even an explicit nil
func (*CreateCompletionRequest) UnsetPresencePenalty ¶
func (o *CreateCompletionRequest) UnsetPresencePenalty()
UnsetPresencePenalty ensures that no value is present for PresencePenalty, not even an explicit nil
func (*CreateCompletionRequest) UnsetPrompt ¶
func (o *CreateCompletionRequest) UnsetPrompt()
UnsetPrompt ensures that no value is present for Prompt, not even an explicit nil
func (*CreateCompletionRequest) UnsetStop ¶
func (o *CreateCompletionRequest) UnsetStop()
UnsetStop ensures that no value is present for Stop, not even an explicit nil
func (*CreateCompletionRequest) UnsetStream ¶
func (o *CreateCompletionRequest) UnsetStream()
UnsetStream ensures that no value is present for Stream, not even an explicit nil
func (*CreateCompletionRequest) UnsetSuffix ¶
func (o *CreateCompletionRequest) UnsetSuffix()
UnsetSuffix ensures that no value is present for Suffix, not even an explicit nil
func (*CreateCompletionRequest) UnsetTemperature ¶
func (o *CreateCompletionRequest) UnsetTemperature()
UnsetTemperature ensures that no value is present for Temperature, not even an explicit nil
func (*CreateCompletionRequest) UnsetTopP ¶
func (o *CreateCompletionRequest) UnsetTopP()
UnsetTopP ensures that no value is present for TopP, not even an explicit nil
type CreateCompletionRequestPrompt ¶
type CreateCompletionRequestPrompt struct { ArrayOfArrayOfInt32 *[][]int32 ArrayOfInt32 *[]int32 ArrayOfString *[]string String *string }
CreateCompletionRequestPrompt - The prompt(s) to generate completions for, encoded as a string, array of strings, array of tokens, or array of token arrays. Note that <|endoftext|> is the document separator that the model sees during training, so if a prompt is not specified the model will generate as if from the beginning of a new document.
func ArrayOfArrayOfInt32AsCreateCompletionRequestPrompt ¶
func ArrayOfArrayOfInt32AsCreateCompletionRequestPrompt(v *[][]int32) CreateCompletionRequestPrompt
[][]int32AsCreateCompletionRequestPrompt is a convenience function that returns [][]int32 wrapped in CreateCompletionRequestPrompt
func ArrayOfInt32AsCreateCompletionRequestPrompt ¶
func ArrayOfInt32AsCreateCompletionRequestPrompt(v *[]int32) CreateCompletionRequestPrompt
[]int32AsCreateCompletionRequestPrompt is a convenience function that returns []int32 wrapped in CreateCompletionRequestPrompt
func ArrayOfStringAsCreateCompletionRequestPrompt ¶
func ArrayOfStringAsCreateCompletionRequestPrompt(v *[]string) CreateCompletionRequestPrompt
[]stringAsCreateCompletionRequestPrompt is a convenience function that returns []string wrapped in CreateCompletionRequestPrompt
func StringAsCreateCompletionRequestPrompt ¶
func StringAsCreateCompletionRequestPrompt(v *string) CreateCompletionRequestPrompt
stringAsCreateCompletionRequestPrompt is a convenience function that returns string wrapped in CreateCompletionRequestPrompt
func (*CreateCompletionRequestPrompt) GetActualInstance ¶
func (obj *CreateCompletionRequestPrompt) GetActualInstance() interface{}
Get the actual instance
func (CreateCompletionRequestPrompt) MarshalJSON ¶
func (src CreateCompletionRequestPrompt) MarshalJSON() ([]byte, error)
Marshal data from the first non-nil pointers in the struct to JSON
func (*CreateCompletionRequestPrompt) UnmarshalJSON ¶
func (dst *CreateCompletionRequestPrompt) UnmarshalJSON(data []byte) error
Unmarshal JSON data into one of the pointers in the struct
type CreateCompletionRequestStop ¶
CreateCompletionRequestStop - Up to 4 sequences where the API will stop generating further tokens. The returned text will not contain the stop sequence.
func ArrayOfStringAsCreateCompletionRequestStop ¶
func ArrayOfStringAsCreateCompletionRequestStop(v *[]string) CreateCompletionRequestStop
[]stringAsCreateCompletionRequestStop is a convenience function that returns []string wrapped in CreateCompletionRequestStop
func StringAsCreateCompletionRequestStop ¶
func StringAsCreateCompletionRequestStop(v *string) CreateCompletionRequestStop
stringAsCreateCompletionRequestStop is a convenience function that returns string wrapped in CreateCompletionRequestStop
func (*CreateCompletionRequestStop) GetActualInstance ¶
func (obj *CreateCompletionRequestStop) GetActualInstance() interface{}
Get the actual instance
func (CreateCompletionRequestStop) MarshalJSON ¶
func (src CreateCompletionRequestStop) MarshalJSON() ([]byte, error)
Marshal data from the first non-nil pointers in the struct to JSON
func (*CreateCompletionRequestStop) UnmarshalJSON ¶
func (dst *CreateCompletionRequestStop) UnmarshalJSON(data []byte) error
Unmarshal JSON data into one of the pointers in the struct
type CreateCompletionResponse ¶
type CreateCompletionResponse struct { Id string `json:"id"` Object string `json:"object"` Created int32 `json:"created"` Model string `json:"model"` Choices []CreateCompletionResponseChoicesInner `json:"choices"` Usage *CreateCompletionResponseUsage `json:"usage,omitempty"` }
CreateCompletionResponse struct for CreateCompletionResponse
func NewCreateCompletionResponse ¶
func NewCreateCompletionResponse(id string, object string, created int32, model string, choices []CreateCompletionResponseChoicesInner) *CreateCompletionResponse
NewCreateCompletionResponse instantiates a new CreateCompletionResponse 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 NewCreateCompletionResponseWithDefaults ¶
func NewCreateCompletionResponseWithDefaults() *CreateCompletionResponse
NewCreateCompletionResponseWithDefaults instantiates a new CreateCompletionResponse 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 (*CreateCompletionResponse) GetChoices ¶
func (o *CreateCompletionResponse) GetChoices() []CreateCompletionResponseChoicesInner
GetChoices returns the Choices field value
func (*CreateCompletionResponse) GetChoicesOk ¶
func (o *CreateCompletionResponse) GetChoicesOk() ([]CreateCompletionResponseChoicesInner, bool)
GetChoicesOk returns a tuple with the Choices field value and a boolean to check if the value has been set.
func (*CreateCompletionResponse) GetCreated ¶
func (o *CreateCompletionResponse) GetCreated() int32
GetCreated returns the Created field value
func (*CreateCompletionResponse) GetCreatedOk ¶
func (o *CreateCompletionResponse) GetCreatedOk() (*int32, bool)
GetCreatedOk returns a tuple with the Created field value and a boolean to check if the value has been set.
func (*CreateCompletionResponse) GetId ¶
func (o *CreateCompletionResponse) GetId() string
GetId returns the Id field value
func (*CreateCompletionResponse) GetIdOk ¶
func (o *CreateCompletionResponse) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (*CreateCompletionResponse) GetModel ¶
func (o *CreateCompletionResponse) GetModel() string
GetModel returns the Model field value
func (*CreateCompletionResponse) GetModelOk ¶
func (o *CreateCompletionResponse) GetModelOk() (*string, bool)
GetModelOk returns a tuple with the Model field value and a boolean to check if the value has been set.
func (*CreateCompletionResponse) GetObject ¶
func (o *CreateCompletionResponse) GetObject() string
GetObject returns the Object field value
func (*CreateCompletionResponse) GetObjectOk ¶
func (o *CreateCompletionResponse) GetObjectOk() (*string, bool)
GetObjectOk returns a tuple with the Object field value and a boolean to check if the value has been set.
func (*CreateCompletionResponse) GetUsage ¶
func (o *CreateCompletionResponse) GetUsage() CreateCompletionResponseUsage
GetUsage returns the Usage field value if set, zero value otherwise.
func (*CreateCompletionResponse) GetUsageOk ¶
func (o *CreateCompletionResponse) GetUsageOk() (*CreateCompletionResponseUsage, bool)
GetUsageOk returns a tuple with the Usage field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateCompletionResponse) HasUsage ¶
func (o *CreateCompletionResponse) HasUsage() bool
HasUsage returns a boolean if a field has been set.
func (CreateCompletionResponse) MarshalJSON ¶
func (o CreateCompletionResponse) MarshalJSON() ([]byte, error)
func (*CreateCompletionResponse) SetChoices ¶
func (o *CreateCompletionResponse) SetChoices(v []CreateCompletionResponseChoicesInner)
SetChoices sets field value
func (*CreateCompletionResponse) SetCreated ¶
func (o *CreateCompletionResponse) SetCreated(v int32)
SetCreated sets field value
func (*CreateCompletionResponse) SetId ¶
func (o *CreateCompletionResponse) SetId(v string)
SetId sets field value
func (*CreateCompletionResponse) SetModel ¶
func (o *CreateCompletionResponse) SetModel(v string)
SetModel sets field value
func (*CreateCompletionResponse) SetObject ¶
func (o *CreateCompletionResponse) SetObject(v string)
SetObject sets field value
func (*CreateCompletionResponse) SetUsage ¶
func (o *CreateCompletionResponse) SetUsage(v CreateCompletionResponseUsage)
SetUsage gets a reference to the given CreateCompletionResponseUsage and assigns it to the Usage field.
func (CreateCompletionResponse) ToMap ¶
func (o CreateCompletionResponse) ToMap() (map[string]interface{}, error)
type CreateCompletionResponseChoicesInner ¶
type CreateCompletionResponseChoicesInner struct { Text *string `json:"text,omitempty"` Index *int32 `json:"index,omitempty"` Logprobs NullableCreateCompletionResponseChoicesInnerLogprobs `json:"logprobs,omitempty"` FinishReason *string `json:"finish_reason,omitempty"` }
CreateCompletionResponseChoicesInner struct for CreateCompletionResponseChoicesInner
func NewCreateCompletionResponseChoicesInner ¶
func NewCreateCompletionResponseChoicesInner() *CreateCompletionResponseChoicesInner
NewCreateCompletionResponseChoicesInner instantiates a new CreateCompletionResponseChoicesInner 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 NewCreateCompletionResponseChoicesInnerWithDefaults ¶
func NewCreateCompletionResponseChoicesInnerWithDefaults() *CreateCompletionResponseChoicesInner
NewCreateCompletionResponseChoicesInnerWithDefaults instantiates a new CreateCompletionResponseChoicesInner 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 (*CreateCompletionResponseChoicesInner) GetFinishReason ¶
func (o *CreateCompletionResponseChoicesInner) GetFinishReason() string
GetFinishReason returns the FinishReason field value if set, zero value otherwise.
func (*CreateCompletionResponseChoicesInner) GetFinishReasonOk ¶
func (o *CreateCompletionResponseChoicesInner) GetFinishReasonOk() (*string, bool)
GetFinishReasonOk returns a tuple with the FinishReason field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateCompletionResponseChoicesInner) GetIndex ¶
func (o *CreateCompletionResponseChoicesInner) GetIndex() int32
GetIndex returns the Index field value if set, zero value otherwise.
func (*CreateCompletionResponseChoicesInner) GetIndexOk ¶
func (o *CreateCompletionResponseChoicesInner) GetIndexOk() (*int32, bool)
GetIndexOk returns a tuple with the Index field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateCompletionResponseChoicesInner) GetLogprobs ¶
func (o *CreateCompletionResponseChoicesInner) GetLogprobs() CreateCompletionResponseChoicesInnerLogprobs
GetLogprobs returns the Logprobs field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateCompletionResponseChoicesInner) GetLogprobsOk ¶
func (o *CreateCompletionResponseChoicesInner) GetLogprobsOk() (*CreateCompletionResponseChoicesInnerLogprobs, bool)
GetLogprobsOk returns a tuple with the Logprobs field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateCompletionResponseChoicesInner) GetText ¶
func (o *CreateCompletionResponseChoicesInner) GetText() string
GetText returns the Text field value if set, zero value otherwise.
func (*CreateCompletionResponseChoicesInner) GetTextOk ¶
func (o *CreateCompletionResponseChoicesInner) GetTextOk() (*string, bool)
GetTextOk returns a tuple with the Text field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateCompletionResponseChoicesInner) HasFinishReason ¶
func (o *CreateCompletionResponseChoicesInner) HasFinishReason() bool
HasFinishReason returns a boolean if a field has been set.
func (*CreateCompletionResponseChoicesInner) HasIndex ¶
func (o *CreateCompletionResponseChoicesInner) HasIndex() bool
HasIndex returns a boolean if a field has been set.
func (*CreateCompletionResponseChoicesInner) HasLogprobs ¶
func (o *CreateCompletionResponseChoicesInner) HasLogprobs() bool
HasLogprobs returns a boolean if a field has been set.
func (*CreateCompletionResponseChoicesInner) HasText ¶
func (o *CreateCompletionResponseChoicesInner) HasText() bool
HasText returns a boolean if a field has been set.
func (CreateCompletionResponseChoicesInner) MarshalJSON ¶
func (o CreateCompletionResponseChoicesInner) MarshalJSON() ([]byte, error)
func (*CreateCompletionResponseChoicesInner) SetFinishReason ¶
func (o *CreateCompletionResponseChoicesInner) SetFinishReason(v string)
SetFinishReason gets a reference to the given string and assigns it to the FinishReason field.
func (*CreateCompletionResponseChoicesInner) SetIndex ¶
func (o *CreateCompletionResponseChoicesInner) SetIndex(v int32)
SetIndex gets a reference to the given int32 and assigns it to the Index field.
func (*CreateCompletionResponseChoicesInner) SetLogprobs ¶
func (o *CreateCompletionResponseChoicesInner) SetLogprobs(v CreateCompletionResponseChoicesInnerLogprobs)
SetLogprobs gets a reference to the given NullableCreateCompletionResponseChoicesInnerLogprobs and assigns it to the Logprobs field.
func (*CreateCompletionResponseChoicesInner) SetLogprobsNil ¶
func (o *CreateCompletionResponseChoicesInner) SetLogprobsNil()
SetLogprobsNil sets the value for Logprobs to be an explicit nil
func (*CreateCompletionResponseChoicesInner) SetText ¶
func (o *CreateCompletionResponseChoicesInner) SetText(v string)
SetText gets a reference to the given string and assigns it to the Text field.
func (CreateCompletionResponseChoicesInner) ToMap ¶
func (o CreateCompletionResponseChoicesInner) ToMap() (map[string]interface{}, error)
func (*CreateCompletionResponseChoicesInner) UnsetLogprobs ¶
func (o *CreateCompletionResponseChoicesInner) UnsetLogprobs()
UnsetLogprobs ensures that no value is present for Logprobs, not even an explicit nil
type CreateCompletionResponseChoicesInnerLogprobs ¶
type CreateCompletionResponseChoicesInnerLogprobs struct { Tokens []string `json:"tokens,omitempty"` TokenLogprobs []float32 `json:"token_logprobs,omitempty"` TopLogprobs []map[string]interface{} `json:"top_logprobs,omitempty"` TextOffset []int32 `json:"text_offset,omitempty"` }
CreateCompletionResponseChoicesInnerLogprobs struct for CreateCompletionResponseChoicesInnerLogprobs
func NewCreateCompletionResponseChoicesInnerLogprobs ¶
func NewCreateCompletionResponseChoicesInnerLogprobs() *CreateCompletionResponseChoicesInnerLogprobs
NewCreateCompletionResponseChoicesInnerLogprobs instantiates a new CreateCompletionResponseChoicesInnerLogprobs 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 NewCreateCompletionResponseChoicesInnerLogprobsWithDefaults ¶
func NewCreateCompletionResponseChoicesInnerLogprobsWithDefaults() *CreateCompletionResponseChoicesInnerLogprobs
NewCreateCompletionResponseChoicesInnerLogprobsWithDefaults instantiates a new CreateCompletionResponseChoicesInnerLogprobs 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 (*CreateCompletionResponseChoicesInnerLogprobs) GetTextOffset ¶
func (o *CreateCompletionResponseChoicesInnerLogprobs) GetTextOffset() []int32
GetTextOffset returns the TextOffset field value if set, zero value otherwise.
func (*CreateCompletionResponseChoicesInnerLogprobs) GetTextOffsetOk ¶
func (o *CreateCompletionResponseChoicesInnerLogprobs) GetTextOffsetOk() ([]int32, bool)
GetTextOffsetOk returns a tuple with the TextOffset field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateCompletionResponseChoicesInnerLogprobs) GetTokenLogprobs ¶
func (o *CreateCompletionResponseChoicesInnerLogprobs) GetTokenLogprobs() []float32
GetTokenLogprobs returns the TokenLogprobs field value if set, zero value otherwise.
func (*CreateCompletionResponseChoicesInnerLogprobs) GetTokenLogprobsOk ¶
func (o *CreateCompletionResponseChoicesInnerLogprobs) GetTokenLogprobsOk() ([]float32, bool)
GetTokenLogprobsOk returns a tuple with the TokenLogprobs field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateCompletionResponseChoicesInnerLogprobs) GetTokens ¶
func (o *CreateCompletionResponseChoicesInnerLogprobs) GetTokens() []string
GetTokens returns the Tokens field value if set, zero value otherwise.
func (*CreateCompletionResponseChoicesInnerLogprobs) GetTokensOk ¶
func (o *CreateCompletionResponseChoicesInnerLogprobs) GetTokensOk() ([]string, bool)
GetTokensOk returns a tuple with the Tokens field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateCompletionResponseChoicesInnerLogprobs) GetTopLogprobs ¶
func (o *CreateCompletionResponseChoicesInnerLogprobs) GetTopLogprobs() []map[string]interface{}
GetTopLogprobs returns the TopLogprobs field value if set, zero value otherwise.
func (*CreateCompletionResponseChoicesInnerLogprobs) GetTopLogprobsOk ¶
func (o *CreateCompletionResponseChoicesInnerLogprobs) GetTopLogprobsOk() ([]map[string]interface{}, bool)
GetTopLogprobsOk returns a tuple with the TopLogprobs field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateCompletionResponseChoicesInnerLogprobs) HasTextOffset ¶
func (o *CreateCompletionResponseChoicesInnerLogprobs) HasTextOffset() bool
HasTextOffset returns a boolean if a field has been set.
func (*CreateCompletionResponseChoicesInnerLogprobs) HasTokenLogprobs ¶
func (o *CreateCompletionResponseChoicesInnerLogprobs) HasTokenLogprobs() bool
HasTokenLogprobs returns a boolean if a field has been set.
func (*CreateCompletionResponseChoicesInnerLogprobs) HasTokens ¶
func (o *CreateCompletionResponseChoicesInnerLogprobs) HasTokens() bool
HasTokens returns a boolean if a field has been set.
func (*CreateCompletionResponseChoicesInnerLogprobs) HasTopLogprobs ¶
func (o *CreateCompletionResponseChoicesInnerLogprobs) HasTopLogprobs() bool
HasTopLogprobs returns a boolean if a field has been set.
func (CreateCompletionResponseChoicesInnerLogprobs) MarshalJSON ¶
func (o CreateCompletionResponseChoicesInnerLogprobs) MarshalJSON() ([]byte, error)
func (*CreateCompletionResponseChoicesInnerLogprobs) SetTextOffset ¶
func (o *CreateCompletionResponseChoicesInnerLogprobs) SetTextOffset(v []int32)
SetTextOffset gets a reference to the given []int32 and assigns it to the TextOffset field.
func (*CreateCompletionResponseChoicesInnerLogprobs) SetTokenLogprobs ¶
func (o *CreateCompletionResponseChoicesInnerLogprobs) SetTokenLogprobs(v []float32)
SetTokenLogprobs gets a reference to the given []float32 and assigns it to the TokenLogprobs field.
func (*CreateCompletionResponseChoicesInnerLogprobs) SetTokens ¶
func (o *CreateCompletionResponseChoicesInnerLogprobs) SetTokens(v []string)
SetTokens gets a reference to the given []string and assigns it to the Tokens field.
func (*CreateCompletionResponseChoicesInnerLogprobs) SetTopLogprobs ¶
func (o *CreateCompletionResponseChoicesInnerLogprobs) SetTopLogprobs(v []map[string]interface{})
SetTopLogprobs gets a reference to the given []map[string]interface{} and assigns it to the TopLogprobs field.
func (CreateCompletionResponseChoicesInnerLogprobs) ToMap ¶
func (o CreateCompletionResponseChoicesInnerLogprobs) ToMap() (map[string]interface{}, error)
type CreateCompletionResponseUsage ¶
type CreateCompletionResponseUsage struct { PromptTokens int32 `json:"prompt_tokens"` CompletionTokens int32 `json:"completion_tokens"` TotalTokens int32 `json:"total_tokens"` }
CreateCompletionResponseUsage struct for CreateCompletionResponseUsage
func NewCreateCompletionResponseUsage ¶
func NewCreateCompletionResponseUsage(promptTokens int32, completionTokens int32, totalTokens int32) *CreateCompletionResponseUsage
NewCreateCompletionResponseUsage instantiates a new CreateCompletionResponseUsage 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 NewCreateCompletionResponseUsageWithDefaults ¶
func NewCreateCompletionResponseUsageWithDefaults() *CreateCompletionResponseUsage
NewCreateCompletionResponseUsageWithDefaults instantiates a new CreateCompletionResponseUsage 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 (*CreateCompletionResponseUsage) GetCompletionTokens ¶
func (o *CreateCompletionResponseUsage) GetCompletionTokens() int32
GetCompletionTokens returns the CompletionTokens field value
func (*CreateCompletionResponseUsage) GetCompletionTokensOk ¶
func (o *CreateCompletionResponseUsage) GetCompletionTokensOk() (*int32, bool)
GetCompletionTokensOk returns a tuple with the CompletionTokens field value and a boolean to check if the value has been set.
func (*CreateCompletionResponseUsage) GetPromptTokens ¶
func (o *CreateCompletionResponseUsage) GetPromptTokens() int32
GetPromptTokens returns the PromptTokens field value
func (*CreateCompletionResponseUsage) GetPromptTokensOk ¶
func (o *CreateCompletionResponseUsage) GetPromptTokensOk() (*int32, bool)
GetPromptTokensOk returns a tuple with the PromptTokens field value and a boolean to check if the value has been set.
func (*CreateCompletionResponseUsage) GetTotalTokens ¶
func (o *CreateCompletionResponseUsage) GetTotalTokens() int32
GetTotalTokens returns the TotalTokens field value
func (*CreateCompletionResponseUsage) GetTotalTokensOk ¶
func (o *CreateCompletionResponseUsage) GetTotalTokensOk() (*int32, bool)
GetTotalTokensOk returns a tuple with the TotalTokens field value and a boolean to check if the value has been set.
func (CreateCompletionResponseUsage) MarshalJSON ¶
func (o CreateCompletionResponseUsage) MarshalJSON() ([]byte, error)
func (*CreateCompletionResponseUsage) SetCompletionTokens ¶
func (o *CreateCompletionResponseUsage) SetCompletionTokens(v int32)
SetCompletionTokens sets field value
func (*CreateCompletionResponseUsage) SetPromptTokens ¶
func (o *CreateCompletionResponseUsage) SetPromptTokens(v int32)
SetPromptTokens sets field value
func (*CreateCompletionResponseUsage) SetTotalTokens ¶
func (o *CreateCompletionResponseUsage) SetTotalTokens(v int32)
SetTotalTokens sets field value
func (CreateCompletionResponseUsage) ToMap ¶
func (o CreateCompletionResponseUsage) ToMap() (map[string]interface{}, error)
type CreateEditRequest ¶
type CreateEditRequest struct { // ID of the model to use. You can use the `text-davinci-edit-001` or `code-davinci-edit-001` model with this endpoint. Model string `json:"model"` // The input text to use as a starting point for the edit. Input NullableString `json:"input,omitempty"` // The instruction that tells the model how to edit the prompt. Instruction string `json:"instruction"` // How many edits to generate for the input and instruction. N NullableInt32 `json:"n,omitempty"` // What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. We generally recommend altering this or `top_p` but not both. Temperature NullableFloat32 `json:"temperature,omitempty"` // An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. We generally recommend altering this or `temperature` but not both. TopP NullableFloat32 `json:"top_p,omitempty"` }
CreateEditRequest struct for CreateEditRequest
func NewCreateEditRequest ¶
func NewCreateEditRequest(model string, instruction string) *CreateEditRequest
NewCreateEditRequest instantiates a new CreateEditRequest 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 NewCreateEditRequestWithDefaults ¶
func NewCreateEditRequestWithDefaults() *CreateEditRequest
NewCreateEditRequestWithDefaults instantiates a new CreateEditRequest 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 (*CreateEditRequest) GetInput ¶
func (o *CreateEditRequest) GetInput() string
GetInput returns the Input field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateEditRequest) GetInputOk ¶
func (o *CreateEditRequest) GetInputOk() (*string, bool)
GetInputOk returns a tuple with the Input field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateEditRequest) GetInstruction ¶
func (o *CreateEditRequest) GetInstruction() string
GetInstruction returns the Instruction field value
func (*CreateEditRequest) GetInstructionOk ¶
func (o *CreateEditRequest) GetInstructionOk() (*string, bool)
GetInstructionOk returns a tuple with the Instruction field value and a boolean to check if the value has been set.
func (*CreateEditRequest) GetModel ¶
func (o *CreateEditRequest) GetModel() string
GetModel returns the Model field value
func (*CreateEditRequest) GetModelOk ¶
func (o *CreateEditRequest) GetModelOk() (*string, bool)
GetModelOk returns a tuple with the Model field value and a boolean to check if the value has been set.
func (*CreateEditRequest) GetN ¶
func (o *CreateEditRequest) GetN() int32
GetN returns the N field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateEditRequest) GetNOk ¶
func (o *CreateEditRequest) GetNOk() (*int32, bool)
GetNOk returns a tuple with the N field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateEditRequest) GetTemperature ¶
func (o *CreateEditRequest) GetTemperature() float32
GetTemperature returns the Temperature field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateEditRequest) GetTemperatureOk ¶
func (o *CreateEditRequest) GetTemperatureOk() (*float32, bool)
GetTemperatureOk returns a tuple with the Temperature field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateEditRequest) GetTopP ¶
func (o *CreateEditRequest) GetTopP() float32
GetTopP returns the TopP field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateEditRequest) GetTopPOk ¶
func (o *CreateEditRequest) GetTopPOk() (*float32, bool)
GetTopPOk returns a tuple with the TopP field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateEditRequest) HasInput ¶
func (o *CreateEditRequest) HasInput() bool
HasInput returns a boolean if a field has been set.
func (*CreateEditRequest) HasN ¶
func (o *CreateEditRequest) HasN() bool
HasN returns a boolean if a field has been set.
func (*CreateEditRequest) HasTemperature ¶
func (o *CreateEditRequest) HasTemperature() bool
HasTemperature returns a boolean if a field has been set.
func (*CreateEditRequest) HasTopP ¶
func (o *CreateEditRequest) HasTopP() bool
HasTopP returns a boolean if a field has been set.
func (CreateEditRequest) MarshalJSON ¶
func (o CreateEditRequest) MarshalJSON() ([]byte, error)
func (*CreateEditRequest) SetInput ¶
func (o *CreateEditRequest) SetInput(v string)
SetInput gets a reference to the given NullableString and assigns it to the Input field.
func (*CreateEditRequest) SetInputNil ¶
func (o *CreateEditRequest) SetInputNil()
SetInputNil sets the value for Input to be an explicit nil
func (*CreateEditRequest) SetInstruction ¶
func (o *CreateEditRequest) SetInstruction(v string)
SetInstruction sets field value
func (*CreateEditRequest) SetModel ¶
func (o *CreateEditRequest) SetModel(v string)
SetModel sets field value
func (*CreateEditRequest) SetN ¶
func (o *CreateEditRequest) SetN(v int32)
SetN gets a reference to the given NullableInt32 and assigns it to the N field.
func (*CreateEditRequest) SetNNil ¶
func (o *CreateEditRequest) SetNNil()
SetNNil sets the value for N to be an explicit nil
func (*CreateEditRequest) SetTemperature ¶
func (o *CreateEditRequest) SetTemperature(v float32)
SetTemperature gets a reference to the given NullableFloat32 and assigns it to the Temperature field.
func (*CreateEditRequest) SetTemperatureNil ¶
func (o *CreateEditRequest) SetTemperatureNil()
SetTemperatureNil sets the value for Temperature to be an explicit nil
func (*CreateEditRequest) SetTopP ¶
func (o *CreateEditRequest) SetTopP(v float32)
SetTopP gets a reference to the given NullableFloat32 and assigns it to the TopP field.
func (*CreateEditRequest) SetTopPNil ¶
func (o *CreateEditRequest) SetTopPNil()
SetTopPNil sets the value for TopP to be an explicit nil
func (CreateEditRequest) ToMap ¶
func (o CreateEditRequest) ToMap() (map[string]interface{}, error)
func (*CreateEditRequest) UnsetInput ¶
func (o *CreateEditRequest) UnsetInput()
UnsetInput ensures that no value is present for Input, not even an explicit nil
func (*CreateEditRequest) UnsetN ¶
func (o *CreateEditRequest) UnsetN()
UnsetN ensures that no value is present for N, not even an explicit nil
func (*CreateEditRequest) UnsetTemperature ¶
func (o *CreateEditRequest) UnsetTemperature()
UnsetTemperature ensures that no value is present for Temperature, not even an explicit nil
func (*CreateEditRequest) UnsetTopP ¶
func (o *CreateEditRequest) UnsetTopP()
UnsetTopP ensures that no value is present for TopP, not even an explicit nil
type CreateEditResponse ¶
type CreateEditResponse struct { Object string `json:"object"` Created int32 `json:"created"` Choices []CreateCompletionResponseChoicesInner `json:"choices"` Usage CreateCompletionResponseUsage `json:"usage"` }
CreateEditResponse struct for CreateEditResponse
func NewCreateEditResponse ¶
func NewCreateEditResponse(object string, created int32, choices []CreateCompletionResponseChoicesInner, usage CreateCompletionResponseUsage) *CreateEditResponse
NewCreateEditResponse instantiates a new CreateEditResponse 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 NewCreateEditResponseWithDefaults ¶
func NewCreateEditResponseWithDefaults() *CreateEditResponse
NewCreateEditResponseWithDefaults instantiates a new CreateEditResponse 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 (*CreateEditResponse) GetChoices ¶
func (o *CreateEditResponse) GetChoices() []CreateCompletionResponseChoicesInner
GetChoices returns the Choices field value
func (*CreateEditResponse) GetChoicesOk ¶
func (o *CreateEditResponse) GetChoicesOk() ([]CreateCompletionResponseChoicesInner, bool)
GetChoicesOk returns a tuple with the Choices field value and a boolean to check if the value has been set.
func (*CreateEditResponse) GetCreated ¶
func (o *CreateEditResponse) GetCreated() int32
GetCreated returns the Created field value
func (*CreateEditResponse) GetCreatedOk ¶
func (o *CreateEditResponse) GetCreatedOk() (*int32, bool)
GetCreatedOk returns a tuple with the Created field value and a boolean to check if the value has been set.
func (*CreateEditResponse) GetObject ¶
func (o *CreateEditResponse) GetObject() string
GetObject returns the Object field value
func (*CreateEditResponse) GetObjectOk ¶
func (o *CreateEditResponse) GetObjectOk() (*string, bool)
GetObjectOk returns a tuple with the Object field value and a boolean to check if the value has been set.
func (*CreateEditResponse) GetUsage ¶
func (o *CreateEditResponse) GetUsage() CreateCompletionResponseUsage
GetUsage returns the Usage field value
func (*CreateEditResponse) GetUsageOk ¶
func (o *CreateEditResponse) GetUsageOk() (*CreateCompletionResponseUsage, bool)
GetUsageOk returns a tuple with the Usage field value and a boolean to check if the value has been set.
func (CreateEditResponse) MarshalJSON ¶
func (o CreateEditResponse) MarshalJSON() ([]byte, error)
func (*CreateEditResponse) SetChoices ¶
func (o *CreateEditResponse) SetChoices(v []CreateCompletionResponseChoicesInner)
SetChoices sets field value
func (*CreateEditResponse) SetCreated ¶
func (o *CreateEditResponse) SetCreated(v int32)
SetCreated sets field value
func (*CreateEditResponse) SetObject ¶
func (o *CreateEditResponse) SetObject(v string)
SetObject sets field value
func (*CreateEditResponse) SetUsage ¶
func (o *CreateEditResponse) SetUsage(v CreateCompletionResponseUsage)
SetUsage sets field value
func (CreateEditResponse) ToMap ¶
func (o CreateEditResponse) ToMap() (map[string]interface{}, error)
type CreateEmbeddingRequest ¶
type CreateEmbeddingRequest struct { // ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models/overview) for descriptions of them. Model string `json:"model"` Input CreateEmbeddingRequestInput `json:"input"` // A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices/end-user-ids). User *string `json:"user,omitempty"` }
CreateEmbeddingRequest struct for CreateEmbeddingRequest
func NewCreateEmbeddingRequest ¶
func NewCreateEmbeddingRequest(model string, input CreateEmbeddingRequestInput) *CreateEmbeddingRequest
NewCreateEmbeddingRequest instantiates a new CreateEmbeddingRequest 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 NewCreateEmbeddingRequestWithDefaults ¶
func NewCreateEmbeddingRequestWithDefaults() *CreateEmbeddingRequest
NewCreateEmbeddingRequestWithDefaults instantiates a new CreateEmbeddingRequest 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 (*CreateEmbeddingRequest) GetInput ¶
func (o *CreateEmbeddingRequest) GetInput() CreateEmbeddingRequestInput
GetInput returns the Input field value
func (*CreateEmbeddingRequest) GetInputOk ¶
func (o *CreateEmbeddingRequest) GetInputOk() (*CreateEmbeddingRequestInput, bool)
GetInputOk returns a tuple with the Input field value and a boolean to check if the value has been set.
func (*CreateEmbeddingRequest) GetModel ¶
func (o *CreateEmbeddingRequest) GetModel() string
GetModel returns the Model field value
func (*CreateEmbeddingRequest) GetModelOk ¶
func (o *CreateEmbeddingRequest) GetModelOk() (*string, bool)
GetModelOk returns a tuple with the Model field value and a boolean to check if the value has been set.
func (*CreateEmbeddingRequest) GetUser ¶
func (o *CreateEmbeddingRequest) GetUser() string
GetUser returns the User field value if set, zero value otherwise.
func (*CreateEmbeddingRequest) GetUserOk ¶
func (o *CreateEmbeddingRequest) GetUserOk() (*string, bool)
GetUserOk returns a tuple with the User field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateEmbeddingRequest) HasUser ¶
func (o *CreateEmbeddingRequest) HasUser() bool
HasUser returns a boolean if a field has been set.
func (CreateEmbeddingRequest) MarshalJSON ¶
func (o CreateEmbeddingRequest) MarshalJSON() ([]byte, error)
func (*CreateEmbeddingRequest) SetInput ¶
func (o *CreateEmbeddingRequest) SetInput(v CreateEmbeddingRequestInput)
SetInput sets field value
func (*CreateEmbeddingRequest) SetModel ¶
func (o *CreateEmbeddingRequest) SetModel(v string)
SetModel sets field value
func (*CreateEmbeddingRequest) SetUser ¶
func (o *CreateEmbeddingRequest) SetUser(v string)
SetUser gets a reference to the given string and assigns it to the User field.
func (CreateEmbeddingRequest) ToMap ¶
func (o CreateEmbeddingRequest) ToMap() (map[string]interface{}, error)
type CreateEmbeddingRequestInput ¶
type CreateEmbeddingRequestInput struct { ArrayOfArrayOfInt32 *[][]int32 ArrayOfInt32 *[]int32 ArrayOfString *[]string String *string }
CreateEmbeddingRequestInput - Input text to get embeddings for, encoded as a string or array of tokens. To get embeddings for multiple inputs in a single request, pass an array of strings or array of token arrays. Each input must not exceed 8192 tokens in length.
func ArrayOfArrayOfInt32AsCreateEmbeddingRequestInput ¶
func ArrayOfArrayOfInt32AsCreateEmbeddingRequestInput(v *[][]int32) CreateEmbeddingRequestInput
[][]int32AsCreateEmbeddingRequestInput is a convenience function that returns [][]int32 wrapped in CreateEmbeddingRequestInput
func ArrayOfInt32AsCreateEmbeddingRequestInput ¶
func ArrayOfInt32AsCreateEmbeddingRequestInput(v *[]int32) CreateEmbeddingRequestInput
[]int32AsCreateEmbeddingRequestInput is a convenience function that returns []int32 wrapped in CreateEmbeddingRequestInput
func ArrayOfStringAsCreateEmbeddingRequestInput ¶
func ArrayOfStringAsCreateEmbeddingRequestInput(v *[]string) CreateEmbeddingRequestInput
[]stringAsCreateEmbeddingRequestInput is a convenience function that returns []string wrapped in CreateEmbeddingRequestInput
func StringAsCreateEmbeddingRequestInput ¶
func StringAsCreateEmbeddingRequestInput(v *string) CreateEmbeddingRequestInput
stringAsCreateEmbeddingRequestInput is a convenience function that returns string wrapped in CreateEmbeddingRequestInput
func (*CreateEmbeddingRequestInput) GetActualInstance ¶
func (obj *CreateEmbeddingRequestInput) GetActualInstance() interface{}
Get the actual instance
func (CreateEmbeddingRequestInput) MarshalJSON ¶
func (src CreateEmbeddingRequestInput) MarshalJSON() ([]byte, error)
Marshal data from the first non-nil pointers in the struct to JSON
func (*CreateEmbeddingRequestInput) UnmarshalJSON ¶
func (dst *CreateEmbeddingRequestInput) UnmarshalJSON(data []byte) error
Unmarshal JSON data into one of the pointers in the struct
type CreateEmbeddingResponse ¶
type CreateEmbeddingResponse struct { Object string `json:"object"` Model string `json:"model"` Data []CreateEmbeddingResponseDataInner `json:"data"` Usage CreateEmbeddingResponseUsage `json:"usage"` }
CreateEmbeddingResponse struct for CreateEmbeddingResponse
func NewCreateEmbeddingResponse ¶
func NewCreateEmbeddingResponse(object string, model string, data []CreateEmbeddingResponseDataInner, usage CreateEmbeddingResponseUsage) *CreateEmbeddingResponse
NewCreateEmbeddingResponse instantiates a new CreateEmbeddingResponse 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 NewCreateEmbeddingResponseWithDefaults ¶
func NewCreateEmbeddingResponseWithDefaults() *CreateEmbeddingResponse
NewCreateEmbeddingResponseWithDefaults instantiates a new CreateEmbeddingResponse 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 (*CreateEmbeddingResponse) GetData ¶
func (o *CreateEmbeddingResponse) GetData() []CreateEmbeddingResponseDataInner
GetData returns the Data field value
func (*CreateEmbeddingResponse) GetDataOk ¶
func (o *CreateEmbeddingResponse) GetDataOk() ([]CreateEmbeddingResponseDataInner, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (*CreateEmbeddingResponse) GetModel ¶
func (o *CreateEmbeddingResponse) GetModel() string
GetModel returns the Model field value
func (*CreateEmbeddingResponse) GetModelOk ¶
func (o *CreateEmbeddingResponse) GetModelOk() (*string, bool)
GetModelOk returns a tuple with the Model field value and a boolean to check if the value has been set.
func (*CreateEmbeddingResponse) GetObject ¶
func (o *CreateEmbeddingResponse) GetObject() string
GetObject returns the Object field value
func (*CreateEmbeddingResponse) GetObjectOk ¶
func (o *CreateEmbeddingResponse) GetObjectOk() (*string, bool)
GetObjectOk returns a tuple with the Object field value and a boolean to check if the value has been set.
func (*CreateEmbeddingResponse) GetUsage ¶
func (o *CreateEmbeddingResponse) GetUsage() CreateEmbeddingResponseUsage
GetUsage returns the Usage field value
func (*CreateEmbeddingResponse) GetUsageOk ¶
func (o *CreateEmbeddingResponse) GetUsageOk() (*CreateEmbeddingResponseUsage, bool)
GetUsageOk returns a tuple with the Usage field value and a boolean to check if the value has been set.
func (CreateEmbeddingResponse) MarshalJSON ¶
func (o CreateEmbeddingResponse) MarshalJSON() ([]byte, error)
func (*CreateEmbeddingResponse) SetData ¶
func (o *CreateEmbeddingResponse) SetData(v []CreateEmbeddingResponseDataInner)
SetData sets field value
func (*CreateEmbeddingResponse) SetModel ¶
func (o *CreateEmbeddingResponse) SetModel(v string)
SetModel sets field value
func (*CreateEmbeddingResponse) SetObject ¶
func (o *CreateEmbeddingResponse) SetObject(v string)
SetObject sets field value
func (*CreateEmbeddingResponse) SetUsage ¶
func (o *CreateEmbeddingResponse) SetUsage(v CreateEmbeddingResponseUsage)
SetUsage sets field value
func (CreateEmbeddingResponse) ToMap ¶
func (o CreateEmbeddingResponse) ToMap() (map[string]interface{}, error)
type CreateEmbeddingResponseDataInner ¶
type CreateEmbeddingResponseDataInner struct { Index int32 `json:"index"` Object string `json:"object"` Embedding []float32 `json:"embedding"` }
CreateEmbeddingResponseDataInner struct for CreateEmbeddingResponseDataInner
func NewCreateEmbeddingResponseDataInner ¶
func NewCreateEmbeddingResponseDataInner(index int32, object string, embedding []float32) *CreateEmbeddingResponseDataInner
NewCreateEmbeddingResponseDataInner instantiates a new CreateEmbeddingResponseDataInner 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 NewCreateEmbeddingResponseDataInnerWithDefaults ¶
func NewCreateEmbeddingResponseDataInnerWithDefaults() *CreateEmbeddingResponseDataInner
NewCreateEmbeddingResponseDataInnerWithDefaults instantiates a new CreateEmbeddingResponseDataInner 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 (*CreateEmbeddingResponseDataInner) GetEmbedding ¶
func (o *CreateEmbeddingResponseDataInner) GetEmbedding() []float32
GetEmbedding returns the Embedding field value
func (*CreateEmbeddingResponseDataInner) GetEmbeddingOk ¶
func (o *CreateEmbeddingResponseDataInner) GetEmbeddingOk() ([]float32, bool)
GetEmbeddingOk returns a tuple with the Embedding field value and a boolean to check if the value has been set.
func (*CreateEmbeddingResponseDataInner) GetIndex ¶
func (o *CreateEmbeddingResponseDataInner) GetIndex() int32
GetIndex returns the Index field value
func (*CreateEmbeddingResponseDataInner) GetIndexOk ¶
func (o *CreateEmbeddingResponseDataInner) GetIndexOk() (*int32, bool)
GetIndexOk returns a tuple with the Index field value and a boolean to check if the value has been set.
func (*CreateEmbeddingResponseDataInner) GetObject ¶
func (o *CreateEmbeddingResponseDataInner) GetObject() string
GetObject returns the Object field value
func (*CreateEmbeddingResponseDataInner) GetObjectOk ¶
func (o *CreateEmbeddingResponseDataInner) GetObjectOk() (*string, bool)
GetObjectOk returns a tuple with the Object field value and a boolean to check if the value has been set.
func (CreateEmbeddingResponseDataInner) MarshalJSON ¶
func (o CreateEmbeddingResponseDataInner) MarshalJSON() ([]byte, error)
func (*CreateEmbeddingResponseDataInner) SetEmbedding ¶
func (o *CreateEmbeddingResponseDataInner) SetEmbedding(v []float32)
SetEmbedding sets field value
func (*CreateEmbeddingResponseDataInner) SetIndex ¶
func (o *CreateEmbeddingResponseDataInner) SetIndex(v int32)
SetIndex sets field value
func (*CreateEmbeddingResponseDataInner) SetObject ¶
func (o *CreateEmbeddingResponseDataInner) SetObject(v string)
SetObject sets field value
func (CreateEmbeddingResponseDataInner) ToMap ¶
func (o CreateEmbeddingResponseDataInner) ToMap() (map[string]interface{}, error)
type CreateEmbeddingResponseUsage ¶
type CreateEmbeddingResponseUsage struct { PromptTokens int32 `json:"prompt_tokens"` TotalTokens int32 `json:"total_tokens"` }
CreateEmbeddingResponseUsage struct for CreateEmbeddingResponseUsage
func NewCreateEmbeddingResponseUsage ¶
func NewCreateEmbeddingResponseUsage(promptTokens int32, totalTokens int32) *CreateEmbeddingResponseUsage
NewCreateEmbeddingResponseUsage instantiates a new CreateEmbeddingResponseUsage 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 NewCreateEmbeddingResponseUsageWithDefaults ¶
func NewCreateEmbeddingResponseUsageWithDefaults() *CreateEmbeddingResponseUsage
NewCreateEmbeddingResponseUsageWithDefaults instantiates a new CreateEmbeddingResponseUsage 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 (*CreateEmbeddingResponseUsage) GetPromptTokens ¶
func (o *CreateEmbeddingResponseUsage) GetPromptTokens() int32
GetPromptTokens returns the PromptTokens field value
func (*CreateEmbeddingResponseUsage) GetPromptTokensOk ¶
func (o *CreateEmbeddingResponseUsage) GetPromptTokensOk() (*int32, bool)
GetPromptTokensOk returns a tuple with the PromptTokens field value and a boolean to check if the value has been set.
func (*CreateEmbeddingResponseUsage) GetTotalTokens ¶
func (o *CreateEmbeddingResponseUsage) GetTotalTokens() int32
GetTotalTokens returns the TotalTokens field value
func (*CreateEmbeddingResponseUsage) GetTotalTokensOk ¶
func (o *CreateEmbeddingResponseUsage) GetTotalTokensOk() (*int32, bool)
GetTotalTokensOk returns a tuple with the TotalTokens field value and a boolean to check if the value has been set.
func (CreateEmbeddingResponseUsage) MarshalJSON ¶
func (o CreateEmbeddingResponseUsage) MarshalJSON() ([]byte, error)
func (*CreateEmbeddingResponseUsage) SetPromptTokens ¶
func (o *CreateEmbeddingResponseUsage) SetPromptTokens(v int32)
SetPromptTokens sets field value
func (*CreateEmbeddingResponseUsage) SetTotalTokens ¶
func (o *CreateEmbeddingResponseUsage) SetTotalTokens(v int32)
SetTotalTokens sets field value
func (CreateEmbeddingResponseUsage) ToMap ¶
func (o CreateEmbeddingResponseUsage) ToMap() (map[string]interface{}, error)
type CreateFineTuneRequest ¶
type CreateFineTuneRequest struct { // The ID of an uploaded file that contains training data. See [upload file](/docs/api-reference/files/upload) for how to upload a file. Your dataset must be formatted as a JSONL file, where each training example is a JSON object with the keys \"prompt\" and \"completion\". Additionally, you must upload your file with the purpose `fine-tune`. See the [fine-tuning guide](/docs/guides/fine-tuning/creating-training-data) for more details. TrainingFile string `json:"training_file"` // The ID of an uploaded file that contains validation data. If you provide this file, the data is used to generate validation metrics periodically during fine-tuning. These metrics can be viewed in the [fine-tuning results file](/docs/guides/fine-tuning/analyzing-your-fine-tuned-model). Your train and validation data should be mutually exclusive. Your dataset must be formatted as a JSONL file, where each validation example is a JSON object with the keys \"prompt\" and \"completion\". Additionally, you must upload your file with the purpose `fine-tune`. See the [fine-tuning guide](/docs/guides/fine-tuning/creating-training-data) for more details. ValidationFile NullableString `json:"validation_file,omitempty"` // The name of the base model to fine-tune. You can select one of \"ada\", \"babbage\", \"curie\", \"davinci\", or a fine-tuned model created after 2022-04-21. To learn more about these models, see the [Models](https://platform.openai.com/docs/models) documentation. Model NullableString `json:"model,omitempty"` // The number of epochs to train the model for. An epoch refers to one full cycle through the training dataset. NEpochs NullableInt32 `json:"n_epochs,omitempty"` // The batch size to use for training. The batch size is the number of training examples used to train a single forward and backward pass. By default, the batch size will be dynamically configured to be ~0.2% of the number of examples in the training set, capped at 256 - in general, we've found that larger batch sizes tend to work better for larger datasets. BatchSize NullableInt32 `json:"batch_size,omitempty"` // The learning rate multiplier to use for training. The fine-tuning learning rate is the original learning rate used for pretraining multiplied by this value. By default, the learning rate multiplier is the 0.05, 0.1, or 0.2 depending on final `batch_size` (larger learning rates tend to perform better with larger batch sizes). We recommend experimenting with values in the range 0.02 to 0.2 to see what produces the best results. LearningRateMultiplier NullableFloat32 `json:"learning_rate_multiplier,omitempty"` // The weight to use for loss on the prompt tokens. This controls how much the model tries to learn to generate the prompt (as compared to the completion which always has a weight of 1.0), and can add a stabilizing effect to training when completions are short. If prompts are extremely long (relative to completions), it may make sense to reduce this weight so as to avoid over-prioritizing learning the prompt. PromptLossWeight NullableFloat32 `json:"prompt_loss_weight,omitempty"` // If set, we calculate classification-specific metrics such as accuracy and F-1 score using the validation set at the end of every epoch. These metrics can be viewed in the [results file](/docs/guides/fine-tuning/analyzing-your-fine-tuned-model). In order to compute classification metrics, you must provide a `validation_file`. Additionally, you must specify `classification_n_classes` for multiclass classification or `classification_positive_class` for binary classification. ComputeClassificationMetrics NullableBool `json:"compute_classification_metrics,omitempty"` // The number of classes in a classification task. This parameter is required for multiclass classification. ClassificationNClasses NullableInt32 `json:"classification_n_classes,omitempty"` // The positive class in binary classification. This parameter is needed to generate precision, recall, and F1 metrics when doing binary classification. ClassificationPositiveClass NullableString `json:"classification_positive_class,omitempty"` // If this is provided, we calculate F-beta scores at the specified beta values. The F-beta score is a generalization of F-1 score. This is only used for binary classification. With a beta of 1 (i.e. the F-1 score), precision and recall are given the same weight. A larger beta score puts more weight on recall and less on precision. A smaller beta score puts more weight on precision and less on recall. ClassificationBetas []float32 `json:"classification_betas,omitempty"` // A string of up to 40 characters that will be added to your fine-tuned model name. For example, a `suffix` of \"custom-model-name\" would produce a model name like `ada:ft-your-org:custom-model-name-2022-02-15-04-21-04`. Suffix NullableString `json:"suffix,omitempty"` }
CreateFineTuneRequest struct for CreateFineTuneRequest
func NewCreateFineTuneRequest ¶
func NewCreateFineTuneRequest(trainingFile string) *CreateFineTuneRequest
NewCreateFineTuneRequest instantiates a new CreateFineTuneRequest 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 NewCreateFineTuneRequestWithDefaults ¶
func NewCreateFineTuneRequestWithDefaults() *CreateFineTuneRequest
NewCreateFineTuneRequestWithDefaults instantiates a new CreateFineTuneRequest 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 (*CreateFineTuneRequest) GetBatchSize ¶
func (o *CreateFineTuneRequest) GetBatchSize() int32
GetBatchSize returns the BatchSize field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateFineTuneRequest) GetBatchSizeOk ¶
func (o *CreateFineTuneRequest) GetBatchSizeOk() (*int32, bool)
GetBatchSizeOk returns a tuple with the BatchSize field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateFineTuneRequest) GetClassificationBetas ¶
func (o *CreateFineTuneRequest) GetClassificationBetas() []float32
GetClassificationBetas returns the ClassificationBetas field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateFineTuneRequest) GetClassificationBetasOk ¶
func (o *CreateFineTuneRequest) GetClassificationBetasOk() ([]float32, bool)
GetClassificationBetasOk returns a tuple with the ClassificationBetas field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateFineTuneRequest) GetClassificationNClasses ¶
func (o *CreateFineTuneRequest) GetClassificationNClasses() int32
GetClassificationNClasses returns the ClassificationNClasses field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateFineTuneRequest) GetClassificationNClassesOk ¶
func (o *CreateFineTuneRequest) GetClassificationNClassesOk() (*int32, bool)
GetClassificationNClassesOk returns a tuple with the ClassificationNClasses field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateFineTuneRequest) GetClassificationPositiveClass ¶
func (o *CreateFineTuneRequest) GetClassificationPositiveClass() string
GetClassificationPositiveClass returns the ClassificationPositiveClass field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateFineTuneRequest) GetClassificationPositiveClassOk ¶
func (o *CreateFineTuneRequest) GetClassificationPositiveClassOk() (*string, bool)
GetClassificationPositiveClassOk returns a tuple with the ClassificationPositiveClass field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateFineTuneRequest) GetComputeClassificationMetrics ¶
func (o *CreateFineTuneRequest) GetComputeClassificationMetrics() bool
GetComputeClassificationMetrics returns the ComputeClassificationMetrics field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateFineTuneRequest) GetComputeClassificationMetricsOk ¶
func (o *CreateFineTuneRequest) GetComputeClassificationMetricsOk() (*bool, bool)
GetComputeClassificationMetricsOk returns a tuple with the ComputeClassificationMetrics field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateFineTuneRequest) GetLearningRateMultiplier ¶
func (o *CreateFineTuneRequest) GetLearningRateMultiplier() float32
GetLearningRateMultiplier returns the LearningRateMultiplier field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateFineTuneRequest) GetLearningRateMultiplierOk ¶
func (o *CreateFineTuneRequest) GetLearningRateMultiplierOk() (*float32, bool)
GetLearningRateMultiplierOk returns a tuple with the LearningRateMultiplier field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateFineTuneRequest) GetModel ¶
func (o *CreateFineTuneRequest) GetModel() string
GetModel returns the Model field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateFineTuneRequest) GetModelOk ¶
func (o *CreateFineTuneRequest) GetModelOk() (*string, bool)
GetModelOk returns a tuple with the Model field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateFineTuneRequest) GetNEpochs ¶
func (o *CreateFineTuneRequest) GetNEpochs() int32
GetNEpochs returns the NEpochs field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateFineTuneRequest) GetNEpochsOk ¶
func (o *CreateFineTuneRequest) GetNEpochsOk() (*int32, bool)
GetNEpochsOk returns a tuple with the NEpochs field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateFineTuneRequest) GetPromptLossWeight ¶
func (o *CreateFineTuneRequest) GetPromptLossWeight() float32
GetPromptLossWeight returns the PromptLossWeight field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateFineTuneRequest) GetPromptLossWeightOk ¶
func (o *CreateFineTuneRequest) GetPromptLossWeightOk() (*float32, bool)
GetPromptLossWeightOk returns a tuple with the PromptLossWeight field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateFineTuneRequest) GetSuffix ¶
func (o *CreateFineTuneRequest) GetSuffix() string
GetSuffix returns the Suffix field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateFineTuneRequest) GetSuffixOk ¶
func (o *CreateFineTuneRequest) GetSuffixOk() (*string, bool)
GetSuffixOk returns a tuple with the Suffix field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateFineTuneRequest) GetTrainingFile ¶
func (o *CreateFineTuneRequest) GetTrainingFile() string
GetTrainingFile returns the TrainingFile field value
func (*CreateFineTuneRequest) GetTrainingFileOk ¶
func (o *CreateFineTuneRequest) GetTrainingFileOk() (*string, bool)
GetTrainingFileOk returns a tuple with the TrainingFile field value and a boolean to check if the value has been set.
func (*CreateFineTuneRequest) GetValidationFile ¶
func (o *CreateFineTuneRequest) GetValidationFile() string
GetValidationFile returns the ValidationFile field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateFineTuneRequest) GetValidationFileOk ¶
func (o *CreateFineTuneRequest) GetValidationFileOk() (*string, bool)
GetValidationFileOk returns a tuple with the ValidationFile field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateFineTuneRequest) HasBatchSize ¶
func (o *CreateFineTuneRequest) HasBatchSize() bool
HasBatchSize returns a boolean if a field has been set.
func (*CreateFineTuneRequest) HasClassificationBetas ¶
func (o *CreateFineTuneRequest) HasClassificationBetas() bool
HasClassificationBetas returns a boolean if a field has been set.
func (*CreateFineTuneRequest) HasClassificationNClasses ¶
func (o *CreateFineTuneRequest) HasClassificationNClasses() bool
HasClassificationNClasses returns a boolean if a field has been set.
func (*CreateFineTuneRequest) HasClassificationPositiveClass ¶
func (o *CreateFineTuneRequest) HasClassificationPositiveClass() bool
HasClassificationPositiveClass returns a boolean if a field has been set.
func (*CreateFineTuneRequest) HasComputeClassificationMetrics ¶
func (o *CreateFineTuneRequest) HasComputeClassificationMetrics() bool
HasComputeClassificationMetrics returns a boolean if a field has been set.
func (*CreateFineTuneRequest) HasLearningRateMultiplier ¶
func (o *CreateFineTuneRequest) HasLearningRateMultiplier() bool
HasLearningRateMultiplier returns a boolean if a field has been set.
func (*CreateFineTuneRequest) HasModel ¶
func (o *CreateFineTuneRequest) HasModel() bool
HasModel returns a boolean if a field has been set.
func (*CreateFineTuneRequest) HasNEpochs ¶
func (o *CreateFineTuneRequest) HasNEpochs() bool
HasNEpochs returns a boolean if a field has been set.
func (*CreateFineTuneRequest) HasPromptLossWeight ¶
func (o *CreateFineTuneRequest) HasPromptLossWeight() bool
HasPromptLossWeight returns a boolean if a field has been set.
func (*CreateFineTuneRequest) HasSuffix ¶
func (o *CreateFineTuneRequest) HasSuffix() bool
HasSuffix returns a boolean if a field has been set.
func (*CreateFineTuneRequest) HasValidationFile ¶
func (o *CreateFineTuneRequest) HasValidationFile() bool
HasValidationFile returns a boolean if a field has been set.
func (CreateFineTuneRequest) MarshalJSON ¶
func (o CreateFineTuneRequest) MarshalJSON() ([]byte, error)
func (*CreateFineTuneRequest) SetBatchSize ¶
func (o *CreateFineTuneRequest) SetBatchSize(v int32)
SetBatchSize gets a reference to the given NullableInt32 and assigns it to the BatchSize field.
func (*CreateFineTuneRequest) SetBatchSizeNil ¶
func (o *CreateFineTuneRequest) SetBatchSizeNil()
SetBatchSizeNil sets the value for BatchSize to be an explicit nil
func (*CreateFineTuneRequest) SetClassificationBetas ¶
func (o *CreateFineTuneRequest) SetClassificationBetas(v []float32)
SetClassificationBetas gets a reference to the given []float32 and assigns it to the ClassificationBetas field.
func (*CreateFineTuneRequest) SetClassificationNClasses ¶
func (o *CreateFineTuneRequest) SetClassificationNClasses(v int32)
SetClassificationNClasses gets a reference to the given NullableInt32 and assigns it to the ClassificationNClasses field.
func (*CreateFineTuneRequest) SetClassificationNClassesNil ¶
func (o *CreateFineTuneRequest) SetClassificationNClassesNil()
SetClassificationNClassesNil sets the value for ClassificationNClasses to be an explicit nil
func (*CreateFineTuneRequest) SetClassificationPositiveClass ¶
func (o *CreateFineTuneRequest) SetClassificationPositiveClass(v string)
SetClassificationPositiveClass gets a reference to the given NullableString and assigns it to the ClassificationPositiveClass field.
func (*CreateFineTuneRequest) SetClassificationPositiveClassNil ¶
func (o *CreateFineTuneRequest) SetClassificationPositiveClassNil()
SetClassificationPositiveClassNil sets the value for ClassificationPositiveClass to be an explicit nil
func (*CreateFineTuneRequest) SetComputeClassificationMetrics ¶
func (o *CreateFineTuneRequest) SetComputeClassificationMetrics(v bool)
SetComputeClassificationMetrics gets a reference to the given NullableBool and assigns it to the ComputeClassificationMetrics field.
func (*CreateFineTuneRequest) SetComputeClassificationMetricsNil ¶
func (o *CreateFineTuneRequest) SetComputeClassificationMetricsNil()
SetComputeClassificationMetricsNil sets the value for ComputeClassificationMetrics to be an explicit nil
func (*CreateFineTuneRequest) SetLearningRateMultiplier ¶
func (o *CreateFineTuneRequest) SetLearningRateMultiplier(v float32)
SetLearningRateMultiplier gets a reference to the given NullableFloat32 and assigns it to the LearningRateMultiplier field.
func (*CreateFineTuneRequest) SetLearningRateMultiplierNil ¶
func (o *CreateFineTuneRequest) SetLearningRateMultiplierNil()
SetLearningRateMultiplierNil sets the value for LearningRateMultiplier to be an explicit nil
func (*CreateFineTuneRequest) SetModel ¶
func (o *CreateFineTuneRequest) SetModel(v string)
SetModel gets a reference to the given NullableString and assigns it to the Model field.
func (*CreateFineTuneRequest) SetModelNil ¶
func (o *CreateFineTuneRequest) SetModelNil()
SetModelNil sets the value for Model to be an explicit nil
func (*CreateFineTuneRequest) SetNEpochs ¶
func (o *CreateFineTuneRequest) SetNEpochs(v int32)
SetNEpochs gets a reference to the given NullableInt32 and assigns it to the NEpochs field.
func (*CreateFineTuneRequest) SetNEpochsNil ¶
func (o *CreateFineTuneRequest) SetNEpochsNil()
SetNEpochsNil sets the value for NEpochs to be an explicit nil
func (*CreateFineTuneRequest) SetPromptLossWeight ¶
func (o *CreateFineTuneRequest) SetPromptLossWeight(v float32)
SetPromptLossWeight gets a reference to the given NullableFloat32 and assigns it to the PromptLossWeight field.
func (*CreateFineTuneRequest) SetPromptLossWeightNil ¶
func (o *CreateFineTuneRequest) SetPromptLossWeightNil()
SetPromptLossWeightNil sets the value for PromptLossWeight to be an explicit nil
func (*CreateFineTuneRequest) SetSuffix ¶
func (o *CreateFineTuneRequest) SetSuffix(v string)
SetSuffix gets a reference to the given NullableString and assigns it to the Suffix field.
func (*CreateFineTuneRequest) SetSuffixNil ¶
func (o *CreateFineTuneRequest) SetSuffixNil()
SetSuffixNil sets the value for Suffix to be an explicit nil
func (*CreateFineTuneRequest) SetTrainingFile ¶
func (o *CreateFineTuneRequest) SetTrainingFile(v string)
SetTrainingFile sets field value
func (*CreateFineTuneRequest) SetValidationFile ¶
func (o *CreateFineTuneRequest) SetValidationFile(v string)
SetValidationFile gets a reference to the given NullableString and assigns it to the ValidationFile field.
func (*CreateFineTuneRequest) SetValidationFileNil ¶
func (o *CreateFineTuneRequest) SetValidationFileNil()
SetValidationFileNil sets the value for ValidationFile to be an explicit nil
func (CreateFineTuneRequest) ToMap ¶
func (o CreateFineTuneRequest) ToMap() (map[string]interface{}, error)
func (*CreateFineTuneRequest) UnsetBatchSize ¶
func (o *CreateFineTuneRequest) UnsetBatchSize()
UnsetBatchSize ensures that no value is present for BatchSize, not even an explicit nil
func (*CreateFineTuneRequest) UnsetClassificationNClasses ¶
func (o *CreateFineTuneRequest) UnsetClassificationNClasses()
UnsetClassificationNClasses ensures that no value is present for ClassificationNClasses, not even an explicit nil
func (*CreateFineTuneRequest) UnsetClassificationPositiveClass ¶
func (o *CreateFineTuneRequest) UnsetClassificationPositiveClass()
UnsetClassificationPositiveClass ensures that no value is present for ClassificationPositiveClass, not even an explicit nil
func (*CreateFineTuneRequest) UnsetComputeClassificationMetrics ¶
func (o *CreateFineTuneRequest) UnsetComputeClassificationMetrics()
UnsetComputeClassificationMetrics ensures that no value is present for ComputeClassificationMetrics, not even an explicit nil
func (*CreateFineTuneRequest) UnsetLearningRateMultiplier ¶
func (o *CreateFineTuneRequest) UnsetLearningRateMultiplier()
UnsetLearningRateMultiplier ensures that no value is present for LearningRateMultiplier, not even an explicit nil
func (*CreateFineTuneRequest) UnsetModel ¶
func (o *CreateFineTuneRequest) UnsetModel()
UnsetModel ensures that no value is present for Model, not even an explicit nil
func (*CreateFineTuneRequest) UnsetNEpochs ¶
func (o *CreateFineTuneRequest) UnsetNEpochs()
UnsetNEpochs ensures that no value is present for NEpochs, not even an explicit nil
func (*CreateFineTuneRequest) UnsetPromptLossWeight ¶
func (o *CreateFineTuneRequest) UnsetPromptLossWeight()
UnsetPromptLossWeight ensures that no value is present for PromptLossWeight, not even an explicit nil
func (*CreateFineTuneRequest) UnsetSuffix ¶
func (o *CreateFineTuneRequest) UnsetSuffix()
UnsetSuffix ensures that no value is present for Suffix, not even an explicit nil
func (*CreateFineTuneRequest) UnsetValidationFile ¶
func (o *CreateFineTuneRequest) UnsetValidationFile()
UnsetValidationFile ensures that no value is present for ValidationFile, not even an explicit nil
type CreateImageRequest ¶
type CreateImageRequest struct { // A text description of the desired image(s). The maximum length is 1000 characters. Prompt string `json:"prompt"` // The number of images to generate. Must be between 1 and 10. N NullableInt32 `json:"n,omitempty"` // The size of the generated images. Must be one of `256x256`, `512x512`, or `1024x1024`. Size NullableString `json:"size,omitempty"` // The format in which the generated images are returned. Must be one of `url` or `b64_json`. ResponseFormat NullableString `json:"response_format,omitempty"` // A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices/end-user-ids). User *string `json:"user,omitempty"` }
CreateImageRequest struct for CreateImageRequest
func NewCreateImageRequest ¶
func NewCreateImageRequest(prompt string) *CreateImageRequest
NewCreateImageRequest instantiates a new CreateImageRequest 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 NewCreateImageRequestWithDefaults ¶
func NewCreateImageRequestWithDefaults() *CreateImageRequest
NewCreateImageRequestWithDefaults instantiates a new CreateImageRequest 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 (*CreateImageRequest) GetN ¶
func (o *CreateImageRequest) GetN() int32
GetN returns the N field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateImageRequest) GetNOk ¶
func (o *CreateImageRequest) GetNOk() (*int32, bool)
GetNOk returns a tuple with the N field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateImageRequest) GetPrompt ¶
func (o *CreateImageRequest) GetPrompt() string
GetPrompt returns the Prompt field value
func (*CreateImageRequest) GetPromptOk ¶
func (o *CreateImageRequest) GetPromptOk() (*string, bool)
GetPromptOk returns a tuple with the Prompt field value and a boolean to check if the value has been set.
func (*CreateImageRequest) GetResponseFormat ¶
func (o *CreateImageRequest) GetResponseFormat() string
GetResponseFormat returns the ResponseFormat field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateImageRequest) GetResponseFormatOk ¶
func (o *CreateImageRequest) GetResponseFormatOk() (*string, bool)
GetResponseFormatOk returns a tuple with the ResponseFormat field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateImageRequest) GetSize ¶
func (o *CreateImageRequest) GetSize() string
GetSize returns the Size field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateImageRequest) GetSizeOk ¶
func (o *CreateImageRequest) GetSizeOk() (*string, bool)
GetSizeOk returns a tuple with the Size field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateImageRequest) GetUser ¶
func (o *CreateImageRequest) GetUser() string
GetUser returns the User field value if set, zero value otherwise.
func (*CreateImageRequest) GetUserOk ¶
func (o *CreateImageRequest) GetUserOk() (*string, bool)
GetUserOk returns a tuple with the User field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateImageRequest) HasN ¶
func (o *CreateImageRequest) HasN() bool
HasN returns a boolean if a field has been set.
func (*CreateImageRequest) HasResponseFormat ¶
func (o *CreateImageRequest) HasResponseFormat() bool
HasResponseFormat returns a boolean if a field has been set.
func (*CreateImageRequest) HasSize ¶
func (o *CreateImageRequest) HasSize() bool
HasSize returns a boolean if a field has been set.
func (*CreateImageRequest) HasUser ¶
func (o *CreateImageRequest) HasUser() bool
HasUser returns a boolean if a field has been set.
func (CreateImageRequest) MarshalJSON ¶
func (o CreateImageRequest) MarshalJSON() ([]byte, error)
func (*CreateImageRequest) SetN ¶
func (o *CreateImageRequest) SetN(v int32)
SetN gets a reference to the given NullableInt32 and assigns it to the N field.
func (*CreateImageRequest) SetNNil ¶
func (o *CreateImageRequest) SetNNil()
SetNNil sets the value for N to be an explicit nil
func (*CreateImageRequest) SetPrompt ¶
func (o *CreateImageRequest) SetPrompt(v string)
SetPrompt sets field value
func (*CreateImageRequest) SetResponseFormat ¶
func (o *CreateImageRequest) SetResponseFormat(v string)
SetResponseFormat gets a reference to the given NullableString and assigns it to the ResponseFormat field.
func (*CreateImageRequest) SetResponseFormatNil ¶
func (o *CreateImageRequest) SetResponseFormatNil()
SetResponseFormatNil sets the value for ResponseFormat to be an explicit nil
func (*CreateImageRequest) SetSize ¶
func (o *CreateImageRequest) SetSize(v string)
SetSize gets a reference to the given NullableString and assigns it to the Size field.
func (*CreateImageRequest) SetSizeNil ¶
func (o *CreateImageRequest) SetSizeNil()
SetSizeNil sets the value for Size to be an explicit nil
func (*CreateImageRequest) SetUser ¶
func (o *CreateImageRequest) SetUser(v string)
SetUser gets a reference to the given string and assigns it to the User field.
func (CreateImageRequest) ToMap ¶
func (o CreateImageRequest) ToMap() (map[string]interface{}, error)
func (*CreateImageRequest) UnsetN ¶
func (o *CreateImageRequest) UnsetN()
UnsetN ensures that no value is present for N, not even an explicit nil
func (*CreateImageRequest) UnsetResponseFormat ¶
func (o *CreateImageRequest) UnsetResponseFormat()
UnsetResponseFormat ensures that no value is present for ResponseFormat, not even an explicit nil
func (*CreateImageRequest) UnsetSize ¶
func (o *CreateImageRequest) UnsetSize()
UnsetSize ensures that no value is present for Size, not even an explicit nil
type CreateModerationRequest ¶
type CreateModerationRequest struct { Input CreateModerationRequestInput `json:"input"` // Two content moderations models are available: `text-moderation-stable` and `text-moderation-latest`. The default is `text-moderation-latest` which will be automatically upgraded over time. This ensures you are always using our most accurate model. If you use `text-moderation-stable`, we will provide advanced notice before updating the model. Accuracy of `text-moderation-stable` may be slightly lower than for `text-moderation-latest`. Model *string `json:"model,omitempty"` }
CreateModerationRequest struct for CreateModerationRequest
func NewCreateModerationRequest ¶
func NewCreateModerationRequest(input CreateModerationRequestInput) *CreateModerationRequest
NewCreateModerationRequest instantiates a new CreateModerationRequest 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 NewCreateModerationRequestWithDefaults ¶
func NewCreateModerationRequestWithDefaults() *CreateModerationRequest
NewCreateModerationRequestWithDefaults instantiates a new CreateModerationRequest 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 (*CreateModerationRequest) GetInput ¶
func (o *CreateModerationRequest) GetInput() CreateModerationRequestInput
GetInput returns the Input field value
func (*CreateModerationRequest) GetInputOk ¶
func (o *CreateModerationRequest) GetInputOk() (*CreateModerationRequestInput, bool)
GetInputOk returns a tuple with the Input field value and a boolean to check if the value has been set.
func (*CreateModerationRequest) GetModel ¶
func (o *CreateModerationRequest) GetModel() string
GetModel returns the Model field value if set, zero value otherwise.
func (*CreateModerationRequest) GetModelOk ¶
func (o *CreateModerationRequest) GetModelOk() (*string, bool)
GetModelOk returns a tuple with the Model field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateModerationRequest) HasModel ¶
func (o *CreateModerationRequest) HasModel() bool
HasModel returns a boolean if a field has been set.
func (CreateModerationRequest) MarshalJSON ¶
func (o CreateModerationRequest) MarshalJSON() ([]byte, error)
func (*CreateModerationRequest) SetInput ¶
func (o *CreateModerationRequest) SetInput(v CreateModerationRequestInput)
SetInput sets field value
func (*CreateModerationRequest) SetModel ¶
func (o *CreateModerationRequest) SetModel(v string)
SetModel gets a reference to the given string and assigns it to the Model field.
func (CreateModerationRequest) ToMap ¶
func (o CreateModerationRequest) ToMap() (map[string]interface{}, error)
type CreateModerationRequestInput ¶
CreateModerationRequestInput - The input text to classify
func ArrayOfStringAsCreateModerationRequestInput ¶
func ArrayOfStringAsCreateModerationRequestInput(v *[]string) CreateModerationRequestInput
[]stringAsCreateModerationRequestInput is a convenience function that returns []string wrapped in CreateModerationRequestInput
func StringAsCreateModerationRequestInput ¶
func StringAsCreateModerationRequestInput(v *string) CreateModerationRequestInput
stringAsCreateModerationRequestInput is a convenience function that returns string wrapped in CreateModerationRequestInput
func (*CreateModerationRequestInput) GetActualInstance ¶
func (obj *CreateModerationRequestInput) GetActualInstance() interface{}
Get the actual instance
func (CreateModerationRequestInput) MarshalJSON ¶
func (src CreateModerationRequestInput) MarshalJSON() ([]byte, error)
Marshal data from the first non-nil pointers in the struct to JSON
func (*CreateModerationRequestInput) UnmarshalJSON ¶
func (dst *CreateModerationRequestInput) UnmarshalJSON(data []byte) error
Unmarshal JSON data into one of the pointers in the struct
type CreateModerationResponse ¶
type CreateModerationResponse struct { Id string `json:"id"` Model string `json:"model"` Results []CreateModerationResponseResultsInner `json:"results"` }
CreateModerationResponse struct for CreateModerationResponse
func NewCreateModerationResponse ¶
func NewCreateModerationResponse(id string, model string, results []CreateModerationResponseResultsInner) *CreateModerationResponse
NewCreateModerationResponse instantiates a new CreateModerationResponse 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 NewCreateModerationResponseWithDefaults ¶
func NewCreateModerationResponseWithDefaults() *CreateModerationResponse
NewCreateModerationResponseWithDefaults instantiates a new CreateModerationResponse 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 (*CreateModerationResponse) GetId ¶
func (o *CreateModerationResponse) GetId() string
GetId returns the Id field value
func (*CreateModerationResponse) GetIdOk ¶
func (o *CreateModerationResponse) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (*CreateModerationResponse) GetModel ¶
func (o *CreateModerationResponse) GetModel() string
GetModel returns the Model field value
func (*CreateModerationResponse) GetModelOk ¶
func (o *CreateModerationResponse) GetModelOk() (*string, bool)
GetModelOk returns a tuple with the Model field value and a boolean to check if the value has been set.
func (*CreateModerationResponse) GetResults ¶
func (o *CreateModerationResponse) GetResults() []CreateModerationResponseResultsInner
GetResults returns the Results field value
func (*CreateModerationResponse) GetResultsOk ¶
func (o *CreateModerationResponse) GetResultsOk() ([]CreateModerationResponseResultsInner, bool)
GetResultsOk returns a tuple with the Results field value and a boolean to check if the value has been set.
func (CreateModerationResponse) MarshalJSON ¶
func (o CreateModerationResponse) MarshalJSON() ([]byte, error)
func (*CreateModerationResponse) SetId ¶
func (o *CreateModerationResponse) SetId(v string)
SetId sets field value
func (*CreateModerationResponse) SetModel ¶
func (o *CreateModerationResponse) SetModel(v string)
SetModel sets field value
func (*CreateModerationResponse) SetResults ¶
func (o *CreateModerationResponse) SetResults(v []CreateModerationResponseResultsInner)
SetResults sets field value
func (CreateModerationResponse) ToMap ¶
func (o CreateModerationResponse) ToMap() (map[string]interface{}, error)
type CreateModerationResponseResultsInner ¶
type CreateModerationResponseResultsInner struct { Flagged bool `json:"flagged"` Categories CreateModerationResponseResultsInnerCategories `json:"categories"` CategoryScores CreateModerationResponseResultsInnerCategoryScores `json:"category_scores"` }
CreateModerationResponseResultsInner struct for CreateModerationResponseResultsInner
func NewCreateModerationResponseResultsInner ¶
func NewCreateModerationResponseResultsInner(flagged bool, categories CreateModerationResponseResultsInnerCategories, categoryScores CreateModerationResponseResultsInnerCategoryScores) *CreateModerationResponseResultsInner
NewCreateModerationResponseResultsInner instantiates a new CreateModerationResponseResultsInner 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 NewCreateModerationResponseResultsInnerWithDefaults ¶
func NewCreateModerationResponseResultsInnerWithDefaults() *CreateModerationResponseResultsInner
NewCreateModerationResponseResultsInnerWithDefaults instantiates a new CreateModerationResponseResultsInner 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 (*CreateModerationResponseResultsInner) GetCategories ¶
func (o *CreateModerationResponseResultsInner) GetCategories() CreateModerationResponseResultsInnerCategories
GetCategories returns the Categories field value
func (*CreateModerationResponseResultsInner) GetCategoriesOk ¶
func (o *CreateModerationResponseResultsInner) GetCategoriesOk() (*CreateModerationResponseResultsInnerCategories, bool)
GetCategoriesOk returns a tuple with the Categories field value and a boolean to check if the value has been set.
func (*CreateModerationResponseResultsInner) GetCategoryScores ¶
func (o *CreateModerationResponseResultsInner) GetCategoryScores() CreateModerationResponseResultsInnerCategoryScores
GetCategoryScores returns the CategoryScores field value
func (*CreateModerationResponseResultsInner) GetCategoryScoresOk ¶
func (o *CreateModerationResponseResultsInner) GetCategoryScoresOk() (*CreateModerationResponseResultsInnerCategoryScores, bool)
GetCategoryScoresOk returns a tuple with the CategoryScores field value and a boolean to check if the value has been set.
func (*CreateModerationResponseResultsInner) GetFlagged ¶
func (o *CreateModerationResponseResultsInner) GetFlagged() bool
GetFlagged returns the Flagged field value
func (*CreateModerationResponseResultsInner) GetFlaggedOk ¶
func (o *CreateModerationResponseResultsInner) GetFlaggedOk() (*bool, bool)
GetFlaggedOk returns a tuple with the Flagged field value and a boolean to check if the value has been set.
func (CreateModerationResponseResultsInner) MarshalJSON ¶
func (o CreateModerationResponseResultsInner) MarshalJSON() ([]byte, error)
func (*CreateModerationResponseResultsInner) SetCategories ¶
func (o *CreateModerationResponseResultsInner) SetCategories(v CreateModerationResponseResultsInnerCategories)
SetCategories sets field value
func (*CreateModerationResponseResultsInner) SetCategoryScores ¶
func (o *CreateModerationResponseResultsInner) SetCategoryScores(v CreateModerationResponseResultsInnerCategoryScores)
SetCategoryScores sets field value
func (*CreateModerationResponseResultsInner) SetFlagged ¶
func (o *CreateModerationResponseResultsInner) SetFlagged(v bool)
SetFlagged sets field value
func (CreateModerationResponseResultsInner) ToMap ¶
func (o CreateModerationResponseResultsInner) ToMap() (map[string]interface{}, error)
type CreateModerationResponseResultsInnerCategories ¶
type CreateModerationResponseResultsInnerCategories struct { Hate bool `json:"hate"` HateThreatening bool `json:"hate/threatening"` SelfHarm bool `json:"self-harm"` Sexual bool `json:"sexual"` SexualMinors bool `json:"sexual/minors"` Violence bool `json:"violence"` ViolenceGraphic bool `json:"violence/graphic"` }
CreateModerationResponseResultsInnerCategories struct for CreateModerationResponseResultsInnerCategories
func NewCreateModerationResponseResultsInnerCategories ¶
func NewCreateModerationResponseResultsInnerCategories(hate bool, hateThreatening bool, selfHarm bool, sexual bool, sexualMinors bool, violence bool, violenceGraphic bool) *CreateModerationResponseResultsInnerCategories
NewCreateModerationResponseResultsInnerCategories instantiates a new CreateModerationResponseResultsInnerCategories 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 NewCreateModerationResponseResultsInnerCategoriesWithDefaults ¶
func NewCreateModerationResponseResultsInnerCategoriesWithDefaults() *CreateModerationResponseResultsInnerCategories
NewCreateModerationResponseResultsInnerCategoriesWithDefaults instantiates a new CreateModerationResponseResultsInnerCategories 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 (*CreateModerationResponseResultsInnerCategories) GetHate ¶
func (o *CreateModerationResponseResultsInnerCategories) GetHate() bool
GetHate returns the Hate field value
func (*CreateModerationResponseResultsInnerCategories) GetHateOk ¶
func (o *CreateModerationResponseResultsInnerCategories) GetHateOk() (*bool, bool)
GetHateOk returns a tuple with the Hate field value and a boolean to check if the value has been set.
func (*CreateModerationResponseResultsInnerCategories) GetHateThreatening ¶
func (o *CreateModerationResponseResultsInnerCategories) GetHateThreatening() bool
GetHateThreatening returns the HateThreatening field value
func (*CreateModerationResponseResultsInnerCategories) GetHateThreateningOk ¶
func (o *CreateModerationResponseResultsInnerCategories) GetHateThreateningOk() (*bool, bool)
GetHateThreateningOk returns a tuple with the HateThreatening field value and a boolean to check if the value has been set.
func (*CreateModerationResponseResultsInnerCategories) GetSelfHarm ¶
func (o *CreateModerationResponseResultsInnerCategories) GetSelfHarm() bool
GetSelfHarm returns the SelfHarm field value
func (*CreateModerationResponseResultsInnerCategories) GetSelfHarmOk ¶
func (o *CreateModerationResponseResultsInnerCategories) GetSelfHarmOk() (*bool, bool)
GetSelfHarmOk returns a tuple with the SelfHarm field value and a boolean to check if the value has been set.
func (*CreateModerationResponseResultsInnerCategories) GetSexual ¶
func (o *CreateModerationResponseResultsInnerCategories) GetSexual() bool
GetSexual returns the Sexual field value
func (*CreateModerationResponseResultsInnerCategories) GetSexualMinors ¶
func (o *CreateModerationResponseResultsInnerCategories) GetSexualMinors() bool
GetSexualMinors returns the SexualMinors field value
func (*CreateModerationResponseResultsInnerCategories) GetSexualMinorsOk ¶
func (o *CreateModerationResponseResultsInnerCategories) GetSexualMinorsOk() (*bool, bool)
GetSexualMinorsOk returns a tuple with the SexualMinors field value and a boolean to check if the value has been set.
func (*CreateModerationResponseResultsInnerCategories) GetSexualOk ¶
func (o *CreateModerationResponseResultsInnerCategories) GetSexualOk() (*bool, bool)
GetSexualOk returns a tuple with the Sexual field value and a boolean to check if the value has been set.
func (*CreateModerationResponseResultsInnerCategories) GetViolence ¶
func (o *CreateModerationResponseResultsInnerCategories) GetViolence() bool
GetViolence returns the Violence field value
func (*CreateModerationResponseResultsInnerCategories) GetViolenceGraphic ¶
func (o *CreateModerationResponseResultsInnerCategories) GetViolenceGraphic() bool
GetViolenceGraphic returns the ViolenceGraphic field value
func (*CreateModerationResponseResultsInnerCategories) GetViolenceGraphicOk ¶
func (o *CreateModerationResponseResultsInnerCategories) GetViolenceGraphicOk() (*bool, bool)
GetViolenceGraphicOk returns a tuple with the ViolenceGraphic field value and a boolean to check if the value has been set.
func (*CreateModerationResponseResultsInnerCategories) GetViolenceOk ¶
func (o *CreateModerationResponseResultsInnerCategories) GetViolenceOk() (*bool, bool)
GetViolenceOk returns a tuple with the Violence field value and a boolean to check if the value has been set.
func (CreateModerationResponseResultsInnerCategories) MarshalJSON ¶
func (o CreateModerationResponseResultsInnerCategories) MarshalJSON() ([]byte, error)
func (*CreateModerationResponseResultsInnerCategories) SetHate ¶
func (o *CreateModerationResponseResultsInnerCategories) SetHate(v bool)
SetHate sets field value
func (*CreateModerationResponseResultsInnerCategories) SetHateThreatening ¶
func (o *CreateModerationResponseResultsInnerCategories) SetHateThreatening(v bool)
SetHateThreatening sets field value
func (*CreateModerationResponseResultsInnerCategories) SetSelfHarm ¶
func (o *CreateModerationResponseResultsInnerCategories) SetSelfHarm(v bool)
SetSelfHarm sets field value
func (*CreateModerationResponseResultsInnerCategories) SetSexual ¶
func (o *CreateModerationResponseResultsInnerCategories) SetSexual(v bool)
SetSexual sets field value
func (*CreateModerationResponseResultsInnerCategories) SetSexualMinors ¶
func (o *CreateModerationResponseResultsInnerCategories) SetSexualMinors(v bool)
SetSexualMinors sets field value
func (*CreateModerationResponseResultsInnerCategories) SetViolence ¶
func (o *CreateModerationResponseResultsInnerCategories) SetViolence(v bool)
SetViolence sets field value
func (*CreateModerationResponseResultsInnerCategories) SetViolenceGraphic ¶
func (o *CreateModerationResponseResultsInnerCategories) SetViolenceGraphic(v bool)
SetViolenceGraphic sets field value
func (CreateModerationResponseResultsInnerCategories) ToMap ¶
func (o CreateModerationResponseResultsInnerCategories) ToMap() (map[string]interface{}, error)
type CreateModerationResponseResultsInnerCategoryScores ¶
type CreateModerationResponseResultsInnerCategoryScores struct { Hate float32 `json:"hate"` HateThreatening float32 `json:"hate/threatening"` SelfHarm float32 `json:"self-harm"` Sexual float32 `json:"sexual"` SexualMinors float32 `json:"sexual/minors"` Violence float32 `json:"violence"` ViolenceGraphic float32 `json:"violence/graphic"` }
CreateModerationResponseResultsInnerCategoryScores struct for CreateModerationResponseResultsInnerCategoryScores
func NewCreateModerationResponseResultsInnerCategoryScores ¶
func NewCreateModerationResponseResultsInnerCategoryScores(hate float32, hateThreatening float32, selfHarm float32, sexual float32, sexualMinors float32, violence float32, violenceGraphic float32) *CreateModerationResponseResultsInnerCategoryScores
NewCreateModerationResponseResultsInnerCategoryScores instantiates a new CreateModerationResponseResultsInnerCategoryScores 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 NewCreateModerationResponseResultsInnerCategoryScoresWithDefaults ¶
func NewCreateModerationResponseResultsInnerCategoryScoresWithDefaults() *CreateModerationResponseResultsInnerCategoryScores
NewCreateModerationResponseResultsInnerCategoryScoresWithDefaults instantiates a new CreateModerationResponseResultsInnerCategoryScores 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 (*CreateModerationResponseResultsInnerCategoryScores) GetHate ¶
func (o *CreateModerationResponseResultsInnerCategoryScores) GetHate() float32
GetHate returns the Hate field value
func (*CreateModerationResponseResultsInnerCategoryScores) GetHateOk ¶
func (o *CreateModerationResponseResultsInnerCategoryScores) GetHateOk() (*float32, bool)
GetHateOk returns a tuple with the Hate field value and a boolean to check if the value has been set.
func (*CreateModerationResponseResultsInnerCategoryScores) GetHateThreatening ¶
func (o *CreateModerationResponseResultsInnerCategoryScores) GetHateThreatening() float32
GetHateThreatening returns the HateThreatening field value
func (*CreateModerationResponseResultsInnerCategoryScores) GetHateThreateningOk ¶
func (o *CreateModerationResponseResultsInnerCategoryScores) GetHateThreateningOk() (*float32, bool)
GetHateThreateningOk returns a tuple with the HateThreatening field value and a boolean to check if the value has been set.
func (*CreateModerationResponseResultsInnerCategoryScores) GetSelfHarm ¶
func (o *CreateModerationResponseResultsInnerCategoryScores) GetSelfHarm() float32
GetSelfHarm returns the SelfHarm field value
func (*CreateModerationResponseResultsInnerCategoryScores) GetSelfHarmOk ¶
func (o *CreateModerationResponseResultsInnerCategoryScores) GetSelfHarmOk() (*float32, bool)
GetSelfHarmOk returns a tuple with the SelfHarm field value and a boolean to check if the value has been set.
func (*CreateModerationResponseResultsInnerCategoryScores) GetSexual ¶
func (o *CreateModerationResponseResultsInnerCategoryScores) GetSexual() float32
GetSexual returns the Sexual field value
func (*CreateModerationResponseResultsInnerCategoryScores) GetSexualMinors ¶
func (o *CreateModerationResponseResultsInnerCategoryScores) GetSexualMinors() float32
GetSexualMinors returns the SexualMinors field value
func (*CreateModerationResponseResultsInnerCategoryScores) GetSexualMinorsOk ¶
func (o *CreateModerationResponseResultsInnerCategoryScores) GetSexualMinorsOk() (*float32, bool)
GetSexualMinorsOk returns a tuple with the SexualMinors field value and a boolean to check if the value has been set.
func (*CreateModerationResponseResultsInnerCategoryScores) GetSexualOk ¶
func (o *CreateModerationResponseResultsInnerCategoryScores) GetSexualOk() (*float32, bool)
GetSexualOk returns a tuple with the Sexual field value and a boolean to check if the value has been set.
func (*CreateModerationResponseResultsInnerCategoryScores) GetViolence ¶
func (o *CreateModerationResponseResultsInnerCategoryScores) GetViolence() float32
GetViolence returns the Violence field value
func (*CreateModerationResponseResultsInnerCategoryScores) GetViolenceGraphic ¶
func (o *CreateModerationResponseResultsInnerCategoryScores) GetViolenceGraphic() float32
GetViolenceGraphic returns the ViolenceGraphic field value
func (*CreateModerationResponseResultsInnerCategoryScores) GetViolenceGraphicOk ¶
func (o *CreateModerationResponseResultsInnerCategoryScores) GetViolenceGraphicOk() (*float32, bool)
GetViolenceGraphicOk returns a tuple with the ViolenceGraphic field value and a boolean to check if the value has been set.
func (*CreateModerationResponseResultsInnerCategoryScores) GetViolenceOk ¶
func (o *CreateModerationResponseResultsInnerCategoryScores) GetViolenceOk() (*float32, bool)
GetViolenceOk returns a tuple with the Violence field value and a boolean to check if the value has been set.
func (CreateModerationResponseResultsInnerCategoryScores) MarshalJSON ¶
func (o CreateModerationResponseResultsInnerCategoryScores) MarshalJSON() ([]byte, error)
func (*CreateModerationResponseResultsInnerCategoryScores) SetHate ¶
func (o *CreateModerationResponseResultsInnerCategoryScores) SetHate(v float32)
SetHate sets field value
func (*CreateModerationResponseResultsInnerCategoryScores) SetHateThreatening ¶
func (o *CreateModerationResponseResultsInnerCategoryScores) SetHateThreatening(v float32)
SetHateThreatening sets field value
func (*CreateModerationResponseResultsInnerCategoryScores) SetSelfHarm ¶
func (o *CreateModerationResponseResultsInnerCategoryScores) SetSelfHarm(v float32)
SetSelfHarm sets field value
func (*CreateModerationResponseResultsInnerCategoryScores) SetSexual ¶
func (o *CreateModerationResponseResultsInnerCategoryScores) SetSexual(v float32)
SetSexual sets field value
func (*CreateModerationResponseResultsInnerCategoryScores) SetSexualMinors ¶
func (o *CreateModerationResponseResultsInnerCategoryScores) SetSexualMinors(v float32)
SetSexualMinors sets field value
func (*CreateModerationResponseResultsInnerCategoryScores) SetViolence ¶
func (o *CreateModerationResponseResultsInnerCategoryScores) SetViolence(v float32)
SetViolence sets field value
func (*CreateModerationResponseResultsInnerCategoryScores) SetViolenceGraphic ¶
func (o *CreateModerationResponseResultsInnerCategoryScores) SetViolenceGraphic(v float32)
SetViolenceGraphic sets field value
func (CreateModerationResponseResultsInnerCategoryScores) ToMap ¶
func (o CreateModerationResponseResultsInnerCategoryScores) ToMap() (map[string]interface{}, error)
type CreateSearchRequest ¶
type CreateSearchRequest struct { // Query to search against the documents. Query string `json:"query"` // Up to 200 documents to search over, provided as a list of strings. The maximum document length (in tokens) is 2034 minus the number of tokens in the query. You should specify either `documents` or a `file`, but not both. Documents []string `json:"documents,omitempty"` // The ID of an uploaded file that contains documents to search over. You should specify either `documents` or a `file`, but not both. File NullableString `json:"file,omitempty"` // The maximum number of documents to be re-ranked and returned by search. This flag only takes effect when `file` is set. MaxRerank NullableInt32 `json:"max_rerank,omitempty"` // A special boolean flag for showing metadata. If set to `true`, each document entry in the returned JSON will contain a \"metadata\" field. This flag only takes effect when `file` is set. ReturnMetadata NullableBool `json:"return_metadata,omitempty"` // A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices/end-user-ids). User *string `json:"user,omitempty"` }
CreateSearchRequest struct for CreateSearchRequest
func NewCreateSearchRequest ¶
func NewCreateSearchRequest(query string) *CreateSearchRequest
NewCreateSearchRequest instantiates a new CreateSearchRequest 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 NewCreateSearchRequestWithDefaults ¶
func NewCreateSearchRequestWithDefaults() *CreateSearchRequest
NewCreateSearchRequestWithDefaults instantiates a new CreateSearchRequest 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 (*CreateSearchRequest) GetDocuments ¶
func (o *CreateSearchRequest) GetDocuments() []string
GetDocuments returns the Documents field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateSearchRequest) GetDocumentsOk ¶
func (o *CreateSearchRequest) GetDocumentsOk() ([]string, bool)
GetDocumentsOk returns a tuple with the Documents field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateSearchRequest) GetFile ¶
func (o *CreateSearchRequest) GetFile() string
GetFile returns the File field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateSearchRequest) GetFileOk ¶
func (o *CreateSearchRequest) GetFileOk() (*string, bool)
GetFileOk returns a tuple with the File field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateSearchRequest) GetMaxRerank ¶
func (o *CreateSearchRequest) GetMaxRerank() int32
GetMaxRerank returns the MaxRerank field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateSearchRequest) GetMaxRerankOk ¶
func (o *CreateSearchRequest) GetMaxRerankOk() (*int32, bool)
GetMaxRerankOk returns a tuple with the MaxRerank field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateSearchRequest) GetQuery ¶
func (o *CreateSearchRequest) GetQuery() string
GetQuery returns the Query field value
func (*CreateSearchRequest) GetQueryOk ¶
func (o *CreateSearchRequest) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value and a boolean to check if the value has been set.
func (*CreateSearchRequest) GetReturnMetadata ¶
func (o *CreateSearchRequest) GetReturnMetadata() bool
GetReturnMetadata returns the ReturnMetadata field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateSearchRequest) GetReturnMetadataOk ¶
func (o *CreateSearchRequest) GetReturnMetadataOk() (*bool, bool)
GetReturnMetadataOk returns a tuple with the ReturnMetadata field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CreateSearchRequest) GetUser ¶
func (o *CreateSearchRequest) GetUser() string
GetUser returns the User field value if set, zero value otherwise.
func (*CreateSearchRequest) GetUserOk ¶
func (o *CreateSearchRequest) GetUserOk() (*string, bool)
GetUserOk returns a tuple with the User field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateSearchRequest) HasDocuments ¶
func (o *CreateSearchRequest) HasDocuments() bool
HasDocuments returns a boolean if a field has been set.
func (*CreateSearchRequest) HasFile ¶
func (o *CreateSearchRequest) HasFile() bool
HasFile returns a boolean if a field has been set.
func (*CreateSearchRequest) HasMaxRerank ¶
func (o *CreateSearchRequest) HasMaxRerank() bool
HasMaxRerank returns a boolean if a field has been set.
func (*CreateSearchRequest) HasReturnMetadata ¶
func (o *CreateSearchRequest) HasReturnMetadata() bool
HasReturnMetadata returns a boolean if a field has been set.
func (*CreateSearchRequest) HasUser ¶
func (o *CreateSearchRequest) HasUser() bool
HasUser returns a boolean if a field has been set.
func (CreateSearchRequest) MarshalJSON ¶
func (o CreateSearchRequest) MarshalJSON() ([]byte, error)
func (*CreateSearchRequest) SetDocuments ¶
func (o *CreateSearchRequest) SetDocuments(v []string)
SetDocuments gets a reference to the given []string and assigns it to the Documents field.
func (*CreateSearchRequest) SetFile ¶
func (o *CreateSearchRequest) SetFile(v string)
SetFile gets a reference to the given NullableString and assigns it to the File field.
func (*CreateSearchRequest) SetFileNil ¶
func (o *CreateSearchRequest) SetFileNil()
SetFileNil sets the value for File to be an explicit nil
func (*CreateSearchRequest) SetMaxRerank ¶
func (o *CreateSearchRequest) SetMaxRerank(v int32)
SetMaxRerank gets a reference to the given NullableInt32 and assigns it to the MaxRerank field.
func (*CreateSearchRequest) SetMaxRerankNil ¶
func (o *CreateSearchRequest) SetMaxRerankNil()
SetMaxRerankNil sets the value for MaxRerank to be an explicit nil
func (*CreateSearchRequest) SetQuery ¶
func (o *CreateSearchRequest) SetQuery(v string)
SetQuery sets field value
func (*CreateSearchRequest) SetReturnMetadata ¶
func (o *CreateSearchRequest) SetReturnMetadata(v bool)
SetReturnMetadata gets a reference to the given NullableBool and assigns it to the ReturnMetadata field.
func (*CreateSearchRequest) SetReturnMetadataNil ¶
func (o *CreateSearchRequest) SetReturnMetadataNil()
SetReturnMetadataNil sets the value for ReturnMetadata to be an explicit nil
func (*CreateSearchRequest) SetUser ¶
func (o *CreateSearchRequest) SetUser(v string)
SetUser gets a reference to the given string and assigns it to the User field.
func (CreateSearchRequest) ToMap ¶
func (o CreateSearchRequest) ToMap() (map[string]interface{}, error)
func (*CreateSearchRequest) UnsetFile ¶
func (o *CreateSearchRequest) UnsetFile()
UnsetFile ensures that no value is present for File, not even an explicit nil
func (*CreateSearchRequest) UnsetMaxRerank ¶
func (o *CreateSearchRequest) UnsetMaxRerank()
UnsetMaxRerank ensures that no value is present for MaxRerank, not even an explicit nil
func (*CreateSearchRequest) UnsetReturnMetadata ¶
func (o *CreateSearchRequest) UnsetReturnMetadata()
UnsetReturnMetadata ensures that no value is present for ReturnMetadata, not even an explicit nil
type CreateSearchResponse ¶
type CreateSearchResponse struct { Object *string `json:"object,omitempty"` Model *string `json:"model,omitempty"` Data []CreateSearchResponseDataInner `json:"data,omitempty"` }
CreateSearchResponse struct for CreateSearchResponse
func NewCreateSearchResponse ¶
func NewCreateSearchResponse() *CreateSearchResponse
NewCreateSearchResponse instantiates a new CreateSearchResponse 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 NewCreateSearchResponseWithDefaults ¶
func NewCreateSearchResponseWithDefaults() *CreateSearchResponse
NewCreateSearchResponseWithDefaults instantiates a new CreateSearchResponse 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 (*CreateSearchResponse) GetData ¶
func (o *CreateSearchResponse) GetData() []CreateSearchResponseDataInner
GetData returns the Data field value if set, zero value otherwise.
func (*CreateSearchResponse) GetDataOk ¶
func (o *CreateSearchResponse) GetDataOk() ([]CreateSearchResponseDataInner, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateSearchResponse) GetModel ¶
func (o *CreateSearchResponse) GetModel() string
GetModel returns the Model field value if set, zero value otherwise.
func (*CreateSearchResponse) GetModelOk ¶
func (o *CreateSearchResponse) GetModelOk() (*string, bool)
GetModelOk returns a tuple with the Model field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateSearchResponse) GetObject ¶
func (o *CreateSearchResponse) GetObject() string
GetObject returns the Object field value if set, zero value otherwise.
func (*CreateSearchResponse) GetObjectOk ¶
func (o *CreateSearchResponse) GetObjectOk() (*string, bool)
GetObjectOk returns a tuple with the Object field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateSearchResponse) HasData ¶
func (o *CreateSearchResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (*CreateSearchResponse) HasModel ¶
func (o *CreateSearchResponse) HasModel() bool
HasModel returns a boolean if a field has been set.
func (*CreateSearchResponse) HasObject ¶
func (o *CreateSearchResponse) HasObject() bool
HasObject returns a boolean if a field has been set.
func (CreateSearchResponse) MarshalJSON ¶
func (o CreateSearchResponse) MarshalJSON() ([]byte, error)
func (*CreateSearchResponse) SetData ¶
func (o *CreateSearchResponse) SetData(v []CreateSearchResponseDataInner)
SetData gets a reference to the given []CreateSearchResponseDataInner and assigns it to the Data field.
func (*CreateSearchResponse) SetModel ¶
func (o *CreateSearchResponse) SetModel(v string)
SetModel gets a reference to the given string and assigns it to the Model field.
func (*CreateSearchResponse) SetObject ¶
func (o *CreateSearchResponse) SetObject(v string)
SetObject gets a reference to the given string and assigns it to the Object field.
func (CreateSearchResponse) ToMap ¶
func (o CreateSearchResponse) ToMap() (map[string]interface{}, error)
type CreateSearchResponseDataInner ¶
type CreateSearchResponseDataInner struct { Object *string `json:"object,omitempty"` Document *int32 `json:"document,omitempty"` Score *float32 `json:"score,omitempty"` }
CreateSearchResponseDataInner struct for CreateSearchResponseDataInner
func NewCreateSearchResponseDataInner ¶
func NewCreateSearchResponseDataInner() *CreateSearchResponseDataInner
NewCreateSearchResponseDataInner instantiates a new CreateSearchResponseDataInner 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 NewCreateSearchResponseDataInnerWithDefaults ¶
func NewCreateSearchResponseDataInnerWithDefaults() *CreateSearchResponseDataInner
NewCreateSearchResponseDataInnerWithDefaults instantiates a new CreateSearchResponseDataInner 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 (*CreateSearchResponseDataInner) GetDocument ¶
func (o *CreateSearchResponseDataInner) GetDocument() int32
GetDocument returns the Document field value if set, zero value otherwise.
func (*CreateSearchResponseDataInner) GetDocumentOk ¶
func (o *CreateSearchResponseDataInner) GetDocumentOk() (*int32, bool)
GetDocumentOk returns a tuple with the Document field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateSearchResponseDataInner) GetObject ¶
func (o *CreateSearchResponseDataInner) GetObject() string
GetObject returns the Object field value if set, zero value otherwise.
func (*CreateSearchResponseDataInner) GetObjectOk ¶
func (o *CreateSearchResponseDataInner) GetObjectOk() (*string, bool)
GetObjectOk returns a tuple with the Object field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateSearchResponseDataInner) GetScore ¶
func (o *CreateSearchResponseDataInner) GetScore() float32
GetScore returns the Score field value if set, zero value otherwise.
func (*CreateSearchResponseDataInner) GetScoreOk ¶
func (o *CreateSearchResponseDataInner) GetScoreOk() (*float32, bool)
GetScoreOk returns a tuple with the Score field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateSearchResponseDataInner) HasDocument ¶
func (o *CreateSearchResponseDataInner) HasDocument() bool
HasDocument returns a boolean if a field has been set.
func (*CreateSearchResponseDataInner) HasObject ¶
func (o *CreateSearchResponseDataInner) HasObject() bool
HasObject returns a boolean if a field has been set.
func (*CreateSearchResponseDataInner) HasScore ¶
func (o *CreateSearchResponseDataInner) HasScore() bool
HasScore returns a boolean if a field has been set.
func (CreateSearchResponseDataInner) MarshalJSON ¶
func (o CreateSearchResponseDataInner) MarshalJSON() ([]byte, error)
func (*CreateSearchResponseDataInner) SetDocument ¶
func (o *CreateSearchResponseDataInner) SetDocument(v int32)
SetDocument gets a reference to the given int32 and assigns it to the Document field.
func (*CreateSearchResponseDataInner) SetObject ¶
func (o *CreateSearchResponseDataInner) SetObject(v string)
SetObject gets a reference to the given string and assigns it to the Object field.
func (*CreateSearchResponseDataInner) SetScore ¶
func (o *CreateSearchResponseDataInner) SetScore(v float32)
SetScore gets a reference to the given float32 and assigns it to the Score field.
func (CreateSearchResponseDataInner) ToMap ¶
func (o CreateSearchResponseDataInner) ToMap() (map[string]interface{}, error)
type CreateTranscriptionResponse ¶
type CreateTranscriptionResponse struct {
Text string `json:"text"`
}
CreateTranscriptionResponse struct for CreateTranscriptionResponse
func NewCreateTranscriptionResponse ¶
func NewCreateTranscriptionResponse(text string) *CreateTranscriptionResponse
NewCreateTranscriptionResponse instantiates a new CreateTranscriptionResponse 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 NewCreateTranscriptionResponseWithDefaults ¶
func NewCreateTranscriptionResponseWithDefaults() *CreateTranscriptionResponse
NewCreateTranscriptionResponseWithDefaults instantiates a new CreateTranscriptionResponse 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 (*CreateTranscriptionResponse) GetText ¶
func (o *CreateTranscriptionResponse) GetText() string
GetText returns the Text field value
func (*CreateTranscriptionResponse) GetTextOk ¶
func (o *CreateTranscriptionResponse) GetTextOk() (*string, bool)
GetTextOk returns a tuple with the Text field value and a boolean to check if the value has been set.
func (CreateTranscriptionResponse) MarshalJSON ¶
func (o CreateTranscriptionResponse) MarshalJSON() ([]byte, error)
func (*CreateTranscriptionResponse) SetText ¶
func (o *CreateTranscriptionResponse) SetText(v string)
SetText sets field value
func (CreateTranscriptionResponse) ToMap ¶
func (o CreateTranscriptionResponse) ToMap() (map[string]interface{}, error)
type CreateTranslationResponse ¶
type CreateTranslationResponse struct {
Text string `json:"text"`
}
CreateTranslationResponse struct for CreateTranslationResponse
func NewCreateTranslationResponse ¶
func NewCreateTranslationResponse(text string) *CreateTranslationResponse
NewCreateTranslationResponse instantiates a new CreateTranslationResponse 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 NewCreateTranslationResponseWithDefaults ¶
func NewCreateTranslationResponseWithDefaults() *CreateTranslationResponse
NewCreateTranslationResponseWithDefaults instantiates a new CreateTranslationResponse 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 (*CreateTranslationResponse) GetText ¶
func (o *CreateTranslationResponse) GetText() string
GetText returns the Text field value
func (*CreateTranslationResponse) GetTextOk ¶
func (o *CreateTranslationResponse) GetTextOk() (*string, bool)
GetTextOk returns a tuple with the Text field value and a boolean to check if the value has been set.
func (CreateTranslationResponse) MarshalJSON ¶
func (o CreateTranslationResponse) MarshalJSON() ([]byte, error)
func (*CreateTranslationResponse) SetText ¶
func (o *CreateTranslationResponse) SetText(v string)
SetText sets field value
func (CreateTranslationResponse) ToMap ¶
func (o CreateTranslationResponse) ToMap() (map[string]interface{}, error)
type DeleteFileResponse ¶
type DeleteFileResponse struct { Id string `json:"id"` Object string `json:"object"` Deleted bool `json:"deleted"` }
DeleteFileResponse struct for DeleteFileResponse
func NewDeleteFileResponse ¶
func NewDeleteFileResponse(id string, object string, deleted bool) *DeleteFileResponse
NewDeleteFileResponse instantiates a new DeleteFileResponse 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 NewDeleteFileResponseWithDefaults ¶
func NewDeleteFileResponseWithDefaults() *DeleteFileResponse
NewDeleteFileResponseWithDefaults instantiates a new DeleteFileResponse 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 (*DeleteFileResponse) GetDeleted ¶
func (o *DeleteFileResponse) GetDeleted() bool
GetDeleted returns the Deleted field value
func (*DeleteFileResponse) GetDeletedOk ¶
func (o *DeleteFileResponse) GetDeletedOk() (*bool, bool)
GetDeletedOk returns a tuple with the Deleted field value and a boolean to check if the value has been set.
func (*DeleteFileResponse) GetId ¶
func (o *DeleteFileResponse) GetId() string
GetId returns the Id field value
func (*DeleteFileResponse) GetIdOk ¶
func (o *DeleteFileResponse) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (*DeleteFileResponse) GetObject ¶
func (o *DeleteFileResponse) GetObject() string
GetObject returns the Object field value
func (*DeleteFileResponse) GetObjectOk ¶
func (o *DeleteFileResponse) GetObjectOk() (*string, bool)
GetObjectOk returns a tuple with the Object field value and a boolean to check if the value has been set.
func (DeleteFileResponse) MarshalJSON ¶
func (o DeleteFileResponse) MarshalJSON() ([]byte, error)
func (*DeleteFileResponse) SetDeleted ¶
func (o *DeleteFileResponse) SetDeleted(v bool)
SetDeleted sets field value
func (*DeleteFileResponse) SetId ¶
func (o *DeleteFileResponse) SetId(v string)
SetId sets field value
func (*DeleteFileResponse) SetObject ¶
func (o *DeleteFileResponse) SetObject(v string)
SetObject sets field value
func (DeleteFileResponse) ToMap ¶
func (o DeleteFileResponse) ToMap() (map[string]interface{}, error)
type DeleteModelResponse ¶
type DeleteModelResponse struct { Id string `json:"id"` Object string `json:"object"` Deleted bool `json:"deleted"` }
DeleteModelResponse struct for DeleteModelResponse
func NewDeleteModelResponse ¶
func NewDeleteModelResponse(id string, object string, deleted bool) *DeleteModelResponse
NewDeleteModelResponse instantiates a new DeleteModelResponse 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 NewDeleteModelResponseWithDefaults ¶
func NewDeleteModelResponseWithDefaults() *DeleteModelResponse
NewDeleteModelResponseWithDefaults instantiates a new DeleteModelResponse 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 (*DeleteModelResponse) GetDeleted ¶
func (o *DeleteModelResponse) GetDeleted() bool
GetDeleted returns the Deleted field value
func (*DeleteModelResponse) GetDeletedOk ¶
func (o *DeleteModelResponse) GetDeletedOk() (*bool, bool)
GetDeletedOk returns a tuple with the Deleted field value and a boolean to check if the value has been set.
func (*DeleteModelResponse) GetId ¶
func (o *DeleteModelResponse) GetId() string
GetId returns the Id field value
func (*DeleteModelResponse) GetIdOk ¶
func (o *DeleteModelResponse) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (*DeleteModelResponse) GetObject ¶
func (o *DeleteModelResponse) GetObject() string
GetObject returns the Object field value
func (*DeleteModelResponse) GetObjectOk ¶
func (o *DeleteModelResponse) GetObjectOk() (*string, bool)
GetObjectOk returns a tuple with the Object field value and a boolean to check if the value has been set.
func (DeleteModelResponse) MarshalJSON ¶
func (o DeleteModelResponse) MarshalJSON() ([]byte, error)
func (*DeleteModelResponse) SetDeleted ¶
func (o *DeleteModelResponse) SetDeleted(v bool)
SetDeleted sets field value
func (*DeleteModelResponse) SetId ¶
func (o *DeleteModelResponse) SetId(v string)
SetId sets field value
func (*DeleteModelResponse) SetObject ¶
func (o *DeleteModelResponse) SetObject(v string)
SetObject sets field value
func (DeleteModelResponse) ToMap ¶
func (o DeleteModelResponse) ToMap() (map[string]interface{}, error)
type Engine ¶
type Engine struct { Id string `json:"id"` Object string `json:"object"` Created NullableInt32 `json:"created"` Ready bool `json:"ready"` }
Engine struct for Engine
func NewEngine ¶
func NewEngine(id string, object string, created NullableInt32, ready bool) *Engine
NewEngine instantiates a new Engine 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 NewEngineWithDefaults ¶
func NewEngineWithDefaults() *Engine
NewEngineWithDefaults instantiates a new Engine 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 (*Engine) GetCreated ¶
GetCreated returns the Created field value If the value is explicit nil, the zero value for int32 will be returned
func (*Engine) GetCreatedOk ¶
GetCreatedOk returns a tuple with the Created field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*Engine) GetIdOk ¶
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (*Engine) GetObjectOk ¶
GetObjectOk returns a tuple with the Object field value and a boolean to check if the value has been set.
func (*Engine) GetReadyOk ¶
GetReadyOk returns a tuple with the Ready field value and a boolean to check if the value has been set.
func (Engine) MarshalJSON ¶
type FineTune ¶
type FineTune struct { Id string `json:"id"` Object string `json:"object"` CreatedAt int32 `json:"created_at"` UpdatedAt int32 `json:"updated_at"` Model string `json:"model"` FineTunedModel NullableString `json:"fine_tuned_model"` OrganizationId string `json:"organization_id"` Status string `json:"status"` Hyperparams map[string]interface{} `json:"hyperparams"` TrainingFiles []OpenAIFile `json:"training_files"` ValidationFiles []OpenAIFile `json:"validation_files"` ResultFiles []OpenAIFile `json:"result_files"` Events []FineTuneEvent `json:"events,omitempty"` }
FineTune struct for FineTune
func NewFineTune ¶
func NewFineTune(id string, object string, createdAt int32, updatedAt int32, model string, fineTunedModel NullableString, organizationId string, status string, hyperparams map[string]interface{}, trainingFiles []OpenAIFile, validationFiles []OpenAIFile, resultFiles []OpenAIFile) *FineTune
NewFineTune instantiates a new FineTune 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 NewFineTuneWithDefaults ¶
func NewFineTuneWithDefaults() *FineTune
NewFineTuneWithDefaults instantiates a new FineTune 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 (*FineTune) GetCreatedAt ¶
GetCreatedAt returns the CreatedAt field value
func (*FineTune) GetCreatedAtOk ¶
GetCreatedAtOk returns a tuple with the CreatedAt field value and a boolean to check if the value has been set.
func (*FineTune) GetEvents ¶
func (o *FineTune) GetEvents() []FineTuneEvent
GetEvents returns the Events field value if set, zero value otherwise.
func (*FineTune) GetEventsOk ¶
func (o *FineTune) GetEventsOk() ([]FineTuneEvent, bool)
GetEventsOk returns a tuple with the Events field value if set, nil otherwise and a boolean to check if the value has been set.
func (*FineTune) GetFineTunedModel ¶
GetFineTunedModel returns the FineTunedModel field value If the value is explicit nil, the zero value for string will be returned
func (*FineTune) GetFineTunedModelOk ¶
GetFineTunedModelOk returns a tuple with the FineTunedModel field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*FineTune) GetHyperparams ¶
GetHyperparams returns the Hyperparams field value
func (*FineTune) GetHyperparamsOk ¶
GetHyperparamsOk returns a tuple with the Hyperparams field value and a boolean to check if the value has been set.
func (*FineTune) GetIdOk ¶
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (*FineTune) GetModelOk ¶
GetModelOk returns a tuple with the Model field value and a boolean to check if the value has been set.
func (*FineTune) GetObjectOk ¶
GetObjectOk returns a tuple with the Object field value and a boolean to check if the value has been set.
func (*FineTune) GetOrganizationId ¶
GetOrganizationId returns the OrganizationId field value
func (*FineTune) GetOrganizationIdOk ¶
GetOrganizationIdOk returns a tuple with the OrganizationId field value and a boolean to check if the value has been set.
func (*FineTune) GetResultFiles ¶
func (o *FineTune) GetResultFiles() []OpenAIFile
GetResultFiles returns the ResultFiles field value
func (*FineTune) GetResultFilesOk ¶
func (o *FineTune) GetResultFilesOk() ([]OpenAIFile, bool)
GetResultFilesOk returns a tuple with the ResultFiles field value and a boolean to check if the value has been set.
func (*FineTune) GetStatusOk ¶
GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.
func (*FineTune) GetTrainingFiles ¶
func (o *FineTune) GetTrainingFiles() []OpenAIFile
GetTrainingFiles returns the TrainingFiles field value
func (*FineTune) GetTrainingFilesOk ¶
func (o *FineTune) GetTrainingFilesOk() ([]OpenAIFile, bool)
GetTrainingFilesOk returns a tuple with the TrainingFiles field value and a boolean to check if the value has been set.
func (*FineTune) GetUpdatedAt ¶
GetUpdatedAt returns the UpdatedAt field value
func (*FineTune) GetUpdatedAtOk ¶
GetUpdatedAtOk returns a tuple with the UpdatedAt field value and a boolean to check if the value has been set.
func (*FineTune) GetValidationFiles ¶
func (o *FineTune) GetValidationFiles() []OpenAIFile
GetValidationFiles returns the ValidationFiles field value
func (*FineTune) GetValidationFilesOk ¶
func (o *FineTune) GetValidationFilesOk() ([]OpenAIFile, bool)
GetValidationFilesOk returns a tuple with the ValidationFiles field value and a boolean to check if the value has been set.
func (FineTune) MarshalJSON ¶
func (*FineTune) SetCreatedAt ¶
SetCreatedAt sets field value
func (*FineTune) SetEvents ¶
func (o *FineTune) SetEvents(v []FineTuneEvent)
SetEvents gets a reference to the given []FineTuneEvent and assigns it to the Events field.
func (*FineTune) SetFineTunedModel ¶
SetFineTunedModel sets field value
func (*FineTune) SetHyperparams ¶
SetHyperparams sets field value
func (*FineTune) SetOrganizationId ¶
SetOrganizationId sets field value
func (*FineTune) SetResultFiles ¶
func (o *FineTune) SetResultFiles(v []OpenAIFile)
SetResultFiles sets field value
func (*FineTune) SetTrainingFiles ¶
func (o *FineTune) SetTrainingFiles(v []OpenAIFile)
SetTrainingFiles sets field value
func (*FineTune) SetUpdatedAt ¶
SetUpdatedAt sets field value
func (*FineTune) SetValidationFiles ¶
func (o *FineTune) SetValidationFiles(v []OpenAIFile)
SetValidationFiles sets field value
type FineTuneEvent ¶
type FineTuneEvent struct { Object string `json:"object"` CreatedAt int32 `json:"created_at"` Level string `json:"level"` Message string `json:"message"` }
FineTuneEvent struct for FineTuneEvent
func NewFineTuneEvent ¶
func NewFineTuneEvent(object string, createdAt int32, level string, message string) *FineTuneEvent
NewFineTuneEvent instantiates a new FineTuneEvent 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 NewFineTuneEventWithDefaults ¶
func NewFineTuneEventWithDefaults() *FineTuneEvent
NewFineTuneEventWithDefaults instantiates a new FineTuneEvent 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 (*FineTuneEvent) GetCreatedAt ¶
func (o *FineTuneEvent) GetCreatedAt() int32
GetCreatedAt returns the CreatedAt field value
func (*FineTuneEvent) GetCreatedAtOk ¶
func (o *FineTuneEvent) GetCreatedAtOk() (*int32, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field value and a boolean to check if the value has been set.
func (*FineTuneEvent) GetLevel ¶
func (o *FineTuneEvent) GetLevel() string
GetLevel returns the Level field value
func (*FineTuneEvent) GetLevelOk ¶
func (o *FineTuneEvent) GetLevelOk() (*string, bool)
GetLevelOk returns a tuple with the Level field value and a boolean to check if the value has been set.
func (*FineTuneEvent) GetMessage ¶
func (o *FineTuneEvent) GetMessage() string
GetMessage returns the Message field value
func (*FineTuneEvent) GetMessageOk ¶
func (o *FineTuneEvent) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set.
func (*FineTuneEvent) GetObject ¶
func (o *FineTuneEvent) GetObject() string
GetObject returns the Object field value
func (*FineTuneEvent) GetObjectOk ¶
func (o *FineTuneEvent) GetObjectOk() (*string, bool)
GetObjectOk returns a tuple with the Object field value and a boolean to check if the value has been set.
func (FineTuneEvent) MarshalJSON ¶
func (o FineTuneEvent) MarshalJSON() ([]byte, error)
func (*FineTuneEvent) SetCreatedAt ¶
func (o *FineTuneEvent) SetCreatedAt(v int32)
SetCreatedAt sets field value
func (*FineTuneEvent) SetLevel ¶
func (o *FineTuneEvent) SetLevel(v string)
SetLevel sets field value
func (*FineTuneEvent) SetMessage ¶
func (o *FineTuneEvent) SetMessage(v string)
SetMessage sets field value
func (*FineTuneEvent) SetObject ¶
func (o *FineTuneEvent) SetObject(v string)
SetObject sets field value
func (FineTuneEvent) ToMap ¶
func (o FineTuneEvent) ToMap() (map[string]interface{}, error)
type GenericOpenAPIError ¶
type GenericOpenAPIError struct {
// contains filtered or unexported fields
}
GenericOpenAPIError Provides access to the body, error and model on returned errors.
func (GenericOpenAPIError) Body ¶
func (e GenericOpenAPIError) Body() []byte
Body returns the raw bytes of the response
func (GenericOpenAPIError) Error ¶
func (e GenericOpenAPIError) Error() string
Error returns non-empty string if there was an error.
func (GenericOpenAPIError) Model ¶
func (e GenericOpenAPIError) Model() interface{}
Model returns the unpacked model of the error
type ImagesResponse ¶
type ImagesResponse struct { Created int32 `json:"created"` Data []ImagesResponseDataInner `json:"data"` }
ImagesResponse struct for ImagesResponse
func NewImagesResponse ¶
func NewImagesResponse(created int32, data []ImagesResponseDataInner) *ImagesResponse
NewImagesResponse instantiates a new ImagesResponse 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 NewImagesResponseWithDefaults ¶
func NewImagesResponseWithDefaults() *ImagesResponse
NewImagesResponseWithDefaults instantiates a new ImagesResponse 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 (*ImagesResponse) GetCreated ¶
func (o *ImagesResponse) GetCreated() int32
GetCreated returns the Created field value
func (*ImagesResponse) GetCreatedOk ¶
func (o *ImagesResponse) GetCreatedOk() (*int32, bool)
GetCreatedOk returns a tuple with the Created field value and a boolean to check if the value has been set.
func (*ImagesResponse) GetData ¶
func (o *ImagesResponse) GetData() []ImagesResponseDataInner
GetData returns the Data field value
func (*ImagesResponse) GetDataOk ¶
func (o *ImagesResponse) GetDataOk() ([]ImagesResponseDataInner, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (ImagesResponse) MarshalJSON ¶
func (o ImagesResponse) MarshalJSON() ([]byte, error)
func (*ImagesResponse) SetCreated ¶
func (o *ImagesResponse) SetCreated(v int32)
SetCreated sets field value
func (*ImagesResponse) SetData ¶
func (o *ImagesResponse) SetData(v []ImagesResponseDataInner)
SetData sets field value
func (ImagesResponse) ToMap ¶
func (o ImagesResponse) ToMap() (map[string]interface{}, error)
type ImagesResponseDataInner ¶
type ImagesResponseDataInner struct { Url *string `json:"url,omitempty"` B64Json *string `json:"b64_json,omitempty"` }
ImagesResponseDataInner struct for ImagesResponseDataInner
func NewImagesResponseDataInner ¶
func NewImagesResponseDataInner() *ImagesResponseDataInner
NewImagesResponseDataInner instantiates a new ImagesResponseDataInner 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 NewImagesResponseDataInnerWithDefaults ¶
func NewImagesResponseDataInnerWithDefaults() *ImagesResponseDataInner
NewImagesResponseDataInnerWithDefaults instantiates a new ImagesResponseDataInner 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 (*ImagesResponseDataInner) GetB64Json ¶
func (o *ImagesResponseDataInner) GetB64Json() string
GetB64Json returns the B64Json field value if set, zero value otherwise.
func (*ImagesResponseDataInner) GetB64JsonOk ¶
func (o *ImagesResponseDataInner) GetB64JsonOk() (*string, bool)
GetB64JsonOk returns a tuple with the B64Json field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ImagesResponseDataInner) GetUrl ¶
func (o *ImagesResponseDataInner) GetUrl() string
GetUrl returns the Url field value if set, zero value otherwise.
func (*ImagesResponseDataInner) GetUrlOk ¶
func (o *ImagesResponseDataInner) GetUrlOk() (*string, bool)
GetUrlOk returns a tuple with the Url field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ImagesResponseDataInner) HasB64Json ¶
func (o *ImagesResponseDataInner) HasB64Json() bool
HasB64Json returns a boolean if a field has been set.
func (*ImagesResponseDataInner) HasUrl ¶
func (o *ImagesResponseDataInner) HasUrl() bool
HasUrl returns a boolean if a field has been set.
func (ImagesResponseDataInner) MarshalJSON ¶
func (o ImagesResponseDataInner) MarshalJSON() ([]byte, error)
func (*ImagesResponseDataInner) SetB64Json ¶
func (o *ImagesResponseDataInner) SetB64Json(v string)
SetB64Json gets a reference to the given string and assigns it to the B64Json field.
func (*ImagesResponseDataInner) SetUrl ¶
func (o *ImagesResponseDataInner) SetUrl(v string)
SetUrl gets a reference to the given string and assigns it to the Url field.
func (ImagesResponseDataInner) ToMap ¶
func (o ImagesResponseDataInner) ToMap() (map[string]interface{}, error)
type ListEnginesResponse ¶
ListEnginesResponse struct for ListEnginesResponse
func NewListEnginesResponse ¶
func NewListEnginesResponse(object string, data []Engine) *ListEnginesResponse
NewListEnginesResponse instantiates a new ListEnginesResponse 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 NewListEnginesResponseWithDefaults ¶
func NewListEnginesResponseWithDefaults() *ListEnginesResponse
NewListEnginesResponseWithDefaults instantiates a new ListEnginesResponse 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 (*ListEnginesResponse) GetData ¶
func (o *ListEnginesResponse) GetData() []Engine
GetData returns the Data field value
func (*ListEnginesResponse) GetDataOk ¶
func (o *ListEnginesResponse) GetDataOk() ([]Engine, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (*ListEnginesResponse) GetObject ¶
func (o *ListEnginesResponse) GetObject() string
GetObject returns the Object field value
func (*ListEnginesResponse) GetObjectOk ¶
func (o *ListEnginesResponse) GetObjectOk() (*string, bool)
GetObjectOk returns a tuple with the Object field value and a boolean to check if the value has been set.
func (ListEnginesResponse) MarshalJSON ¶
func (o ListEnginesResponse) MarshalJSON() ([]byte, error)
func (*ListEnginesResponse) SetData ¶
func (o *ListEnginesResponse) SetData(v []Engine)
SetData sets field value
func (*ListEnginesResponse) SetObject ¶
func (o *ListEnginesResponse) SetObject(v string)
SetObject sets field value
func (ListEnginesResponse) ToMap ¶
func (o ListEnginesResponse) ToMap() (map[string]interface{}, error)
type ListFilesResponse ¶
type ListFilesResponse struct { Object string `json:"object"` Data []OpenAIFile `json:"data"` }
ListFilesResponse struct for ListFilesResponse
func NewListFilesResponse ¶
func NewListFilesResponse(object string, data []OpenAIFile) *ListFilesResponse
NewListFilesResponse instantiates a new ListFilesResponse 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 NewListFilesResponseWithDefaults ¶
func NewListFilesResponseWithDefaults() *ListFilesResponse
NewListFilesResponseWithDefaults instantiates a new ListFilesResponse 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 (*ListFilesResponse) GetData ¶
func (o *ListFilesResponse) GetData() []OpenAIFile
GetData returns the Data field value
func (*ListFilesResponse) GetDataOk ¶
func (o *ListFilesResponse) GetDataOk() ([]OpenAIFile, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (*ListFilesResponse) GetObject ¶
func (o *ListFilesResponse) GetObject() string
GetObject returns the Object field value
func (*ListFilesResponse) GetObjectOk ¶
func (o *ListFilesResponse) GetObjectOk() (*string, bool)
GetObjectOk returns a tuple with the Object field value and a boolean to check if the value has been set.
func (ListFilesResponse) MarshalJSON ¶
func (o ListFilesResponse) MarshalJSON() ([]byte, error)
func (*ListFilesResponse) SetData ¶
func (o *ListFilesResponse) SetData(v []OpenAIFile)
SetData sets field value
func (*ListFilesResponse) SetObject ¶
func (o *ListFilesResponse) SetObject(v string)
SetObject sets field value
func (ListFilesResponse) ToMap ¶
func (o ListFilesResponse) ToMap() (map[string]interface{}, error)
type ListFineTuneEventsResponse ¶
type ListFineTuneEventsResponse struct { Object string `json:"object"` Data []FineTuneEvent `json:"data"` }
ListFineTuneEventsResponse struct for ListFineTuneEventsResponse
func NewListFineTuneEventsResponse ¶
func NewListFineTuneEventsResponse(object string, data []FineTuneEvent) *ListFineTuneEventsResponse
NewListFineTuneEventsResponse instantiates a new ListFineTuneEventsResponse 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 NewListFineTuneEventsResponseWithDefaults ¶
func NewListFineTuneEventsResponseWithDefaults() *ListFineTuneEventsResponse
NewListFineTuneEventsResponseWithDefaults instantiates a new ListFineTuneEventsResponse 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 (*ListFineTuneEventsResponse) GetData ¶
func (o *ListFineTuneEventsResponse) GetData() []FineTuneEvent
GetData returns the Data field value
func (*ListFineTuneEventsResponse) GetDataOk ¶
func (o *ListFineTuneEventsResponse) GetDataOk() ([]FineTuneEvent, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (*ListFineTuneEventsResponse) GetObject ¶
func (o *ListFineTuneEventsResponse) GetObject() string
GetObject returns the Object field value
func (*ListFineTuneEventsResponse) GetObjectOk ¶
func (o *ListFineTuneEventsResponse) GetObjectOk() (*string, bool)
GetObjectOk returns a tuple with the Object field value and a boolean to check if the value has been set.
func (ListFineTuneEventsResponse) MarshalJSON ¶
func (o ListFineTuneEventsResponse) MarshalJSON() ([]byte, error)
func (*ListFineTuneEventsResponse) SetData ¶
func (o *ListFineTuneEventsResponse) SetData(v []FineTuneEvent)
SetData sets field value
func (*ListFineTuneEventsResponse) SetObject ¶
func (o *ListFineTuneEventsResponse) SetObject(v string)
SetObject sets field value
func (ListFineTuneEventsResponse) ToMap ¶
func (o ListFineTuneEventsResponse) ToMap() (map[string]interface{}, error)
type ListFineTunesResponse ¶
ListFineTunesResponse struct for ListFineTunesResponse
func NewListFineTunesResponse ¶
func NewListFineTunesResponse(object string, data []FineTune) *ListFineTunesResponse
NewListFineTunesResponse instantiates a new ListFineTunesResponse 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 NewListFineTunesResponseWithDefaults ¶
func NewListFineTunesResponseWithDefaults() *ListFineTunesResponse
NewListFineTunesResponseWithDefaults instantiates a new ListFineTunesResponse 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 (*ListFineTunesResponse) GetData ¶
func (o *ListFineTunesResponse) GetData() []FineTune
GetData returns the Data field value
func (*ListFineTunesResponse) GetDataOk ¶
func (o *ListFineTunesResponse) GetDataOk() ([]FineTune, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (*ListFineTunesResponse) GetObject ¶
func (o *ListFineTunesResponse) GetObject() string
GetObject returns the Object field value
func (*ListFineTunesResponse) GetObjectOk ¶
func (o *ListFineTunesResponse) GetObjectOk() (*string, bool)
GetObjectOk returns a tuple with the Object field value and a boolean to check if the value has been set.
func (ListFineTunesResponse) MarshalJSON ¶
func (o ListFineTunesResponse) MarshalJSON() ([]byte, error)
func (*ListFineTunesResponse) SetData ¶
func (o *ListFineTunesResponse) SetData(v []FineTune)
SetData sets field value
func (*ListFineTunesResponse) SetObject ¶
func (o *ListFineTunesResponse) SetObject(v string)
SetObject sets field value
func (ListFineTunesResponse) ToMap ¶
func (o ListFineTunesResponse) ToMap() (map[string]interface{}, error)
type ListModelsResponse ¶
ListModelsResponse struct for ListModelsResponse
func NewListModelsResponse ¶
func NewListModelsResponse(object string, data []Model) *ListModelsResponse
NewListModelsResponse instantiates a new ListModelsResponse 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 NewListModelsResponseWithDefaults ¶
func NewListModelsResponseWithDefaults() *ListModelsResponse
NewListModelsResponseWithDefaults instantiates a new ListModelsResponse 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 (*ListModelsResponse) GetData ¶
func (o *ListModelsResponse) GetData() []Model
GetData returns the Data field value
func (*ListModelsResponse) GetDataOk ¶
func (o *ListModelsResponse) GetDataOk() ([]Model, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (*ListModelsResponse) GetObject ¶
func (o *ListModelsResponse) GetObject() string
GetObject returns the Object field value
func (*ListModelsResponse) GetObjectOk ¶
func (o *ListModelsResponse) GetObjectOk() (*string, bool)
GetObjectOk returns a tuple with the Object field value and a boolean to check if the value has been set.
func (ListModelsResponse) MarshalJSON ¶
func (o ListModelsResponse) MarshalJSON() ([]byte, error)
func (*ListModelsResponse) SetData ¶
func (o *ListModelsResponse) SetData(v []Model)
SetData sets field value
func (*ListModelsResponse) SetObject ¶
func (o *ListModelsResponse) SetObject(v string)
SetObject sets field value
func (ListModelsResponse) ToMap ¶
func (o ListModelsResponse) ToMap() (map[string]interface{}, error)
type MappedNullable ¶
type Model ¶
type Model struct { Id string `json:"id"` Object string `json:"object"` Created int32 `json:"created"` OwnedBy string `json:"owned_by"` }
Model struct for Model
func NewModel ¶
NewModel instantiates a new Model 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 NewModelWithDefaults ¶
func NewModelWithDefaults() *Model
NewModelWithDefaults instantiates a new Model 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 (*Model) GetCreated ¶
GetCreated returns the Created field value
func (*Model) GetCreatedOk ¶
GetCreatedOk returns a tuple with the Created field value and a boolean to check if the value has been set.
func (*Model) GetIdOk ¶
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (*Model) GetObjectOk ¶
GetObjectOk returns a tuple with the Object field value and a boolean to check if the value has been set.
func (*Model) GetOwnedBy ¶
GetOwnedBy returns the OwnedBy field value
func (*Model) GetOwnedByOk ¶
GetOwnedByOk returns a tuple with the OwnedBy field value and a boolean to check if the value has been set.
func (Model) MarshalJSON ¶
type NullableBool ¶
type NullableBool struct {
// contains filtered or unexported fields
}
func NewNullableBool ¶
func NewNullableBool(val *bool) *NullableBool
func (NullableBool) Get ¶
func (v NullableBool) Get() *bool
func (NullableBool) IsSet ¶
func (v NullableBool) IsSet() bool
func (NullableBool) MarshalJSON ¶
func (v NullableBool) MarshalJSON() ([]byte, error)
func (*NullableBool) Set ¶
func (v *NullableBool) Set(val *bool)
func (*NullableBool) UnmarshalJSON ¶
func (v *NullableBool) UnmarshalJSON(src []byte) error
func (*NullableBool) Unset ¶
func (v *NullableBool) Unset()
type NullableChatCompletionRequestMessage ¶
type NullableChatCompletionRequestMessage struct {
// contains filtered or unexported fields
}
func NewNullableChatCompletionRequestMessage ¶
func NewNullableChatCompletionRequestMessage(val *ChatCompletionRequestMessage) *NullableChatCompletionRequestMessage
func (NullableChatCompletionRequestMessage) Get ¶
func (v NullableChatCompletionRequestMessage) Get() *ChatCompletionRequestMessage
func (NullableChatCompletionRequestMessage) IsSet ¶
func (v NullableChatCompletionRequestMessage) IsSet() bool
func (NullableChatCompletionRequestMessage) MarshalJSON ¶
func (v NullableChatCompletionRequestMessage) MarshalJSON() ([]byte, error)
func (*NullableChatCompletionRequestMessage) Set ¶
func (v *NullableChatCompletionRequestMessage) Set(val *ChatCompletionRequestMessage)
func (*NullableChatCompletionRequestMessage) UnmarshalJSON ¶
func (v *NullableChatCompletionRequestMessage) UnmarshalJSON(src []byte) error
func (*NullableChatCompletionRequestMessage) Unset ¶
func (v *NullableChatCompletionRequestMessage) Unset()
type NullableChatCompletionResponseMessage ¶
type NullableChatCompletionResponseMessage struct {
// contains filtered or unexported fields
}
func NewNullableChatCompletionResponseMessage ¶
func NewNullableChatCompletionResponseMessage(val *ChatCompletionResponseMessage) *NullableChatCompletionResponseMessage
func (NullableChatCompletionResponseMessage) Get ¶
func (v NullableChatCompletionResponseMessage) Get() *ChatCompletionResponseMessage
func (NullableChatCompletionResponseMessage) IsSet ¶
func (v NullableChatCompletionResponseMessage) IsSet() bool
func (NullableChatCompletionResponseMessage) MarshalJSON ¶
func (v NullableChatCompletionResponseMessage) MarshalJSON() ([]byte, error)
func (*NullableChatCompletionResponseMessage) Set ¶
func (v *NullableChatCompletionResponseMessage) Set(val *ChatCompletionResponseMessage)
func (*NullableChatCompletionResponseMessage) UnmarshalJSON ¶
func (v *NullableChatCompletionResponseMessage) UnmarshalJSON(src []byte) error
func (*NullableChatCompletionResponseMessage) Unset ¶
func (v *NullableChatCompletionResponseMessage) Unset()
type NullableCreateAnswerRequest ¶
type NullableCreateAnswerRequest struct {
// contains filtered or unexported fields
}
func NewNullableCreateAnswerRequest ¶
func NewNullableCreateAnswerRequest(val *CreateAnswerRequest) *NullableCreateAnswerRequest
func (NullableCreateAnswerRequest) Get ¶
func (v NullableCreateAnswerRequest) Get() *CreateAnswerRequest
func (NullableCreateAnswerRequest) IsSet ¶
func (v NullableCreateAnswerRequest) IsSet() bool
func (NullableCreateAnswerRequest) MarshalJSON ¶
func (v NullableCreateAnswerRequest) MarshalJSON() ([]byte, error)
func (*NullableCreateAnswerRequest) Set ¶
func (v *NullableCreateAnswerRequest) Set(val *CreateAnswerRequest)
func (*NullableCreateAnswerRequest) UnmarshalJSON ¶
func (v *NullableCreateAnswerRequest) UnmarshalJSON(src []byte) error
func (*NullableCreateAnswerRequest) Unset ¶
func (v *NullableCreateAnswerRequest) Unset()
type NullableCreateAnswerRequestStop ¶
type NullableCreateAnswerRequestStop struct {
// contains filtered or unexported fields
}
func NewNullableCreateAnswerRequestStop ¶
func NewNullableCreateAnswerRequestStop(val *CreateAnswerRequestStop) *NullableCreateAnswerRequestStop
func (NullableCreateAnswerRequestStop) Get ¶
func (v NullableCreateAnswerRequestStop) Get() *CreateAnswerRequestStop
func (NullableCreateAnswerRequestStop) IsSet ¶
func (v NullableCreateAnswerRequestStop) IsSet() bool
func (NullableCreateAnswerRequestStop) MarshalJSON ¶
func (v NullableCreateAnswerRequestStop) MarshalJSON() ([]byte, error)
func (*NullableCreateAnswerRequestStop) Set ¶
func (v *NullableCreateAnswerRequestStop) Set(val *CreateAnswerRequestStop)
func (*NullableCreateAnswerRequestStop) UnmarshalJSON ¶
func (v *NullableCreateAnswerRequestStop) UnmarshalJSON(src []byte) error
func (*NullableCreateAnswerRequestStop) Unset ¶
func (v *NullableCreateAnswerRequestStop) Unset()
type NullableCreateAnswerResponse ¶
type NullableCreateAnswerResponse struct {
// contains filtered or unexported fields
}
func NewNullableCreateAnswerResponse ¶
func NewNullableCreateAnswerResponse(val *CreateAnswerResponse) *NullableCreateAnswerResponse
func (NullableCreateAnswerResponse) Get ¶
func (v NullableCreateAnswerResponse) Get() *CreateAnswerResponse
func (NullableCreateAnswerResponse) IsSet ¶
func (v NullableCreateAnswerResponse) IsSet() bool
func (NullableCreateAnswerResponse) MarshalJSON ¶
func (v NullableCreateAnswerResponse) MarshalJSON() ([]byte, error)
func (*NullableCreateAnswerResponse) Set ¶
func (v *NullableCreateAnswerResponse) Set(val *CreateAnswerResponse)
func (*NullableCreateAnswerResponse) UnmarshalJSON ¶
func (v *NullableCreateAnswerResponse) UnmarshalJSON(src []byte) error
func (*NullableCreateAnswerResponse) Unset ¶
func (v *NullableCreateAnswerResponse) Unset()
type NullableCreateAnswerResponseSelectedDocumentsInner ¶
type NullableCreateAnswerResponseSelectedDocumentsInner struct {
// contains filtered or unexported fields
}
func NewNullableCreateAnswerResponseSelectedDocumentsInner ¶
func NewNullableCreateAnswerResponseSelectedDocumentsInner(val *CreateAnswerResponseSelectedDocumentsInner) *NullableCreateAnswerResponseSelectedDocumentsInner
func (NullableCreateAnswerResponseSelectedDocumentsInner) IsSet ¶
func (v NullableCreateAnswerResponseSelectedDocumentsInner) IsSet() bool
func (NullableCreateAnswerResponseSelectedDocumentsInner) MarshalJSON ¶
func (v NullableCreateAnswerResponseSelectedDocumentsInner) MarshalJSON() ([]byte, error)
func (*NullableCreateAnswerResponseSelectedDocumentsInner) UnmarshalJSON ¶
func (v *NullableCreateAnswerResponseSelectedDocumentsInner) UnmarshalJSON(src []byte) error
func (*NullableCreateAnswerResponseSelectedDocumentsInner) Unset ¶
func (v *NullableCreateAnswerResponseSelectedDocumentsInner) Unset()
type NullableCreateChatCompletionRequest ¶
type NullableCreateChatCompletionRequest struct {
// contains filtered or unexported fields
}
func NewNullableCreateChatCompletionRequest ¶
func NewNullableCreateChatCompletionRequest(val *CreateChatCompletionRequest) *NullableCreateChatCompletionRequest
func (NullableCreateChatCompletionRequest) Get ¶
func (v NullableCreateChatCompletionRequest) Get() *CreateChatCompletionRequest
func (NullableCreateChatCompletionRequest) IsSet ¶
func (v NullableCreateChatCompletionRequest) IsSet() bool
func (NullableCreateChatCompletionRequest) MarshalJSON ¶
func (v NullableCreateChatCompletionRequest) MarshalJSON() ([]byte, error)
func (*NullableCreateChatCompletionRequest) Set ¶
func (v *NullableCreateChatCompletionRequest) Set(val *CreateChatCompletionRequest)
func (*NullableCreateChatCompletionRequest) UnmarshalJSON ¶
func (v *NullableCreateChatCompletionRequest) UnmarshalJSON(src []byte) error
func (*NullableCreateChatCompletionRequest) Unset ¶
func (v *NullableCreateChatCompletionRequest) Unset()
type NullableCreateChatCompletionRequestStop ¶
type NullableCreateChatCompletionRequestStop struct {
// contains filtered or unexported fields
}
func NewNullableCreateChatCompletionRequestStop ¶
func NewNullableCreateChatCompletionRequestStop(val *CreateChatCompletionRequestStop) *NullableCreateChatCompletionRequestStop
func (NullableCreateChatCompletionRequestStop) IsSet ¶
func (v NullableCreateChatCompletionRequestStop) IsSet() bool
func (NullableCreateChatCompletionRequestStop) MarshalJSON ¶
func (v NullableCreateChatCompletionRequestStop) MarshalJSON() ([]byte, error)
func (*NullableCreateChatCompletionRequestStop) Set ¶
func (v *NullableCreateChatCompletionRequestStop) Set(val *CreateChatCompletionRequestStop)
func (*NullableCreateChatCompletionRequestStop) UnmarshalJSON ¶
func (v *NullableCreateChatCompletionRequestStop) UnmarshalJSON(src []byte) error
func (*NullableCreateChatCompletionRequestStop) Unset ¶
func (v *NullableCreateChatCompletionRequestStop) Unset()
type NullableCreateChatCompletionResponse ¶
type NullableCreateChatCompletionResponse struct {
// contains filtered or unexported fields
}
func NewNullableCreateChatCompletionResponse ¶
func NewNullableCreateChatCompletionResponse(val *CreateChatCompletionResponse) *NullableCreateChatCompletionResponse
func (NullableCreateChatCompletionResponse) Get ¶
func (v NullableCreateChatCompletionResponse) Get() *CreateChatCompletionResponse
func (NullableCreateChatCompletionResponse) IsSet ¶
func (v NullableCreateChatCompletionResponse) IsSet() bool
func (NullableCreateChatCompletionResponse) MarshalJSON ¶
func (v NullableCreateChatCompletionResponse) MarshalJSON() ([]byte, error)
func (*NullableCreateChatCompletionResponse) Set ¶
func (v *NullableCreateChatCompletionResponse) Set(val *CreateChatCompletionResponse)
func (*NullableCreateChatCompletionResponse) UnmarshalJSON ¶
func (v *NullableCreateChatCompletionResponse) UnmarshalJSON(src []byte) error
func (*NullableCreateChatCompletionResponse) Unset ¶
func (v *NullableCreateChatCompletionResponse) Unset()
type NullableCreateChatCompletionResponseChoicesInner ¶
type NullableCreateChatCompletionResponseChoicesInner struct {
// contains filtered or unexported fields
}
func NewNullableCreateChatCompletionResponseChoicesInner ¶
func NewNullableCreateChatCompletionResponseChoicesInner(val *CreateChatCompletionResponseChoicesInner) *NullableCreateChatCompletionResponseChoicesInner
func (NullableCreateChatCompletionResponseChoicesInner) IsSet ¶
func (v NullableCreateChatCompletionResponseChoicesInner) IsSet() bool
func (NullableCreateChatCompletionResponseChoicesInner) MarshalJSON ¶
func (v NullableCreateChatCompletionResponseChoicesInner) MarshalJSON() ([]byte, error)
func (*NullableCreateChatCompletionResponseChoicesInner) UnmarshalJSON ¶
func (v *NullableCreateChatCompletionResponseChoicesInner) UnmarshalJSON(src []byte) error
func (*NullableCreateChatCompletionResponseChoicesInner) Unset ¶
func (v *NullableCreateChatCompletionResponseChoicesInner) Unset()
type NullableCreateClassificationRequest ¶
type NullableCreateClassificationRequest struct {
// contains filtered or unexported fields
}
func NewNullableCreateClassificationRequest ¶
func NewNullableCreateClassificationRequest(val *CreateClassificationRequest) *NullableCreateClassificationRequest
func (NullableCreateClassificationRequest) Get ¶
func (v NullableCreateClassificationRequest) Get() *CreateClassificationRequest
func (NullableCreateClassificationRequest) IsSet ¶
func (v NullableCreateClassificationRequest) IsSet() bool
func (NullableCreateClassificationRequest) MarshalJSON ¶
func (v NullableCreateClassificationRequest) MarshalJSON() ([]byte, error)
func (*NullableCreateClassificationRequest) Set ¶
func (v *NullableCreateClassificationRequest) Set(val *CreateClassificationRequest)
func (*NullableCreateClassificationRequest) UnmarshalJSON ¶
func (v *NullableCreateClassificationRequest) UnmarshalJSON(src []byte) error
func (*NullableCreateClassificationRequest) Unset ¶
func (v *NullableCreateClassificationRequest) Unset()
type NullableCreateClassificationResponse ¶
type NullableCreateClassificationResponse struct {
// contains filtered or unexported fields
}
func NewNullableCreateClassificationResponse ¶
func NewNullableCreateClassificationResponse(val *CreateClassificationResponse) *NullableCreateClassificationResponse
func (NullableCreateClassificationResponse) Get ¶
func (v NullableCreateClassificationResponse) Get() *CreateClassificationResponse
func (NullableCreateClassificationResponse) IsSet ¶
func (v NullableCreateClassificationResponse) IsSet() bool
func (NullableCreateClassificationResponse) MarshalJSON ¶
func (v NullableCreateClassificationResponse) MarshalJSON() ([]byte, error)
func (*NullableCreateClassificationResponse) Set ¶
func (v *NullableCreateClassificationResponse) Set(val *CreateClassificationResponse)
func (*NullableCreateClassificationResponse) UnmarshalJSON ¶
func (v *NullableCreateClassificationResponse) UnmarshalJSON(src []byte) error
func (*NullableCreateClassificationResponse) Unset ¶
func (v *NullableCreateClassificationResponse) Unset()
type NullableCreateClassificationResponseSelectedExamplesInner ¶
type NullableCreateClassificationResponseSelectedExamplesInner struct {
// contains filtered or unexported fields
}
func NewNullableCreateClassificationResponseSelectedExamplesInner ¶
func NewNullableCreateClassificationResponseSelectedExamplesInner(val *CreateClassificationResponseSelectedExamplesInner) *NullableCreateClassificationResponseSelectedExamplesInner
func (NullableCreateClassificationResponseSelectedExamplesInner) IsSet ¶
func (v NullableCreateClassificationResponseSelectedExamplesInner) IsSet() bool
func (NullableCreateClassificationResponseSelectedExamplesInner) MarshalJSON ¶
func (v NullableCreateClassificationResponseSelectedExamplesInner) MarshalJSON() ([]byte, error)
func (*NullableCreateClassificationResponseSelectedExamplesInner) UnmarshalJSON ¶
func (v *NullableCreateClassificationResponseSelectedExamplesInner) UnmarshalJSON(src []byte) error
func (*NullableCreateClassificationResponseSelectedExamplesInner) Unset ¶
func (v *NullableCreateClassificationResponseSelectedExamplesInner) Unset()
type NullableCreateCompletionRequest ¶
type NullableCreateCompletionRequest struct {
// contains filtered or unexported fields
}
func NewNullableCreateCompletionRequest ¶
func NewNullableCreateCompletionRequest(val *CreateCompletionRequest) *NullableCreateCompletionRequest
func (NullableCreateCompletionRequest) Get ¶
func (v NullableCreateCompletionRequest) Get() *CreateCompletionRequest
func (NullableCreateCompletionRequest) IsSet ¶
func (v NullableCreateCompletionRequest) IsSet() bool
func (NullableCreateCompletionRequest) MarshalJSON ¶
func (v NullableCreateCompletionRequest) MarshalJSON() ([]byte, error)
func (*NullableCreateCompletionRequest) Set ¶
func (v *NullableCreateCompletionRequest) Set(val *CreateCompletionRequest)
func (*NullableCreateCompletionRequest) UnmarshalJSON ¶
func (v *NullableCreateCompletionRequest) UnmarshalJSON(src []byte) error
func (*NullableCreateCompletionRequest) Unset ¶
func (v *NullableCreateCompletionRequest) Unset()
type NullableCreateCompletionRequestPrompt ¶
type NullableCreateCompletionRequestPrompt struct {
// contains filtered or unexported fields
}
func NewNullableCreateCompletionRequestPrompt ¶
func NewNullableCreateCompletionRequestPrompt(val *CreateCompletionRequestPrompt) *NullableCreateCompletionRequestPrompt
func (NullableCreateCompletionRequestPrompt) Get ¶
func (v NullableCreateCompletionRequestPrompt) Get() *CreateCompletionRequestPrompt
func (NullableCreateCompletionRequestPrompt) IsSet ¶
func (v NullableCreateCompletionRequestPrompt) IsSet() bool
func (NullableCreateCompletionRequestPrompt) MarshalJSON ¶
func (v NullableCreateCompletionRequestPrompt) MarshalJSON() ([]byte, error)
func (*NullableCreateCompletionRequestPrompt) Set ¶
func (v *NullableCreateCompletionRequestPrompt) Set(val *CreateCompletionRequestPrompt)
func (*NullableCreateCompletionRequestPrompt) UnmarshalJSON ¶
func (v *NullableCreateCompletionRequestPrompt) UnmarshalJSON(src []byte) error
func (*NullableCreateCompletionRequestPrompt) Unset ¶
func (v *NullableCreateCompletionRequestPrompt) Unset()
type NullableCreateCompletionRequestStop ¶
type NullableCreateCompletionRequestStop struct {
// contains filtered or unexported fields
}
func NewNullableCreateCompletionRequestStop ¶
func NewNullableCreateCompletionRequestStop(val *CreateCompletionRequestStop) *NullableCreateCompletionRequestStop
func (NullableCreateCompletionRequestStop) Get ¶
func (v NullableCreateCompletionRequestStop) Get() *CreateCompletionRequestStop
func (NullableCreateCompletionRequestStop) IsSet ¶
func (v NullableCreateCompletionRequestStop) IsSet() bool
func (NullableCreateCompletionRequestStop) MarshalJSON ¶
func (v NullableCreateCompletionRequestStop) MarshalJSON() ([]byte, error)
func (*NullableCreateCompletionRequestStop) Set ¶
func (v *NullableCreateCompletionRequestStop) Set(val *CreateCompletionRequestStop)
func (*NullableCreateCompletionRequestStop) UnmarshalJSON ¶
func (v *NullableCreateCompletionRequestStop) UnmarshalJSON(src []byte) error
func (*NullableCreateCompletionRequestStop) Unset ¶
func (v *NullableCreateCompletionRequestStop) Unset()
type NullableCreateCompletionResponse ¶
type NullableCreateCompletionResponse struct {
// contains filtered or unexported fields
}
func NewNullableCreateCompletionResponse ¶
func NewNullableCreateCompletionResponse(val *CreateCompletionResponse) *NullableCreateCompletionResponse
func (NullableCreateCompletionResponse) Get ¶
func (v NullableCreateCompletionResponse) Get() *CreateCompletionResponse
func (NullableCreateCompletionResponse) IsSet ¶
func (v NullableCreateCompletionResponse) IsSet() bool
func (NullableCreateCompletionResponse) MarshalJSON ¶
func (v NullableCreateCompletionResponse) MarshalJSON() ([]byte, error)
func (*NullableCreateCompletionResponse) Set ¶
func (v *NullableCreateCompletionResponse) Set(val *CreateCompletionResponse)
func (*NullableCreateCompletionResponse) UnmarshalJSON ¶
func (v *NullableCreateCompletionResponse) UnmarshalJSON(src []byte) error
func (*NullableCreateCompletionResponse) Unset ¶
func (v *NullableCreateCompletionResponse) Unset()
type NullableCreateCompletionResponseChoicesInner ¶
type NullableCreateCompletionResponseChoicesInner struct {
// contains filtered or unexported fields
}
func NewNullableCreateCompletionResponseChoicesInner ¶
func NewNullableCreateCompletionResponseChoicesInner(val *CreateCompletionResponseChoicesInner) *NullableCreateCompletionResponseChoicesInner
func (NullableCreateCompletionResponseChoicesInner) IsSet ¶
func (v NullableCreateCompletionResponseChoicesInner) IsSet() bool
func (NullableCreateCompletionResponseChoicesInner) MarshalJSON ¶
func (v NullableCreateCompletionResponseChoicesInner) MarshalJSON() ([]byte, error)
func (*NullableCreateCompletionResponseChoicesInner) Set ¶
func (v *NullableCreateCompletionResponseChoicesInner) Set(val *CreateCompletionResponseChoicesInner)
func (*NullableCreateCompletionResponseChoicesInner) UnmarshalJSON ¶
func (v *NullableCreateCompletionResponseChoicesInner) UnmarshalJSON(src []byte) error
func (*NullableCreateCompletionResponseChoicesInner) Unset ¶
func (v *NullableCreateCompletionResponseChoicesInner) Unset()
type NullableCreateCompletionResponseChoicesInnerLogprobs ¶
type NullableCreateCompletionResponseChoicesInnerLogprobs struct {
// contains filtered or unexported fields
}
func NewNullableCreateCompletionResponseChoicesInnerLogprobs ¶
func NewNullableCreateCompletionResponseChoicesInnerLogprobs(val *CreateCompletionResponseChoicesInnerLogprobs) *NullableCreateCompletionResponseChoicesInnerLogprobs
func (NullableCreateCompletionResponseChoicesInnerLogprobs) IsSet ¶
func (v NullableCreateCompletionResponseChoicesInnerLogprobs) IsSet() bool
func (NullableCreateCompletionResponseChoicesInnerLogprobs) MarshalJSON ¶
func (v NullableCreateCompletionResponseChoicesInnerLogprobs) MarshalJSON() ([]byte, error)
func (*NullableCreateCompletionResponseChoicesInnerLogprobs) UnmarshalJSON ¶
func (v *NullableCreateCompletionResponseChoicesInnerLogprobs) UnmarshalJSON(src []byte) error
func (*NullableCreateCompletionResponseChoicesInnerLogprobs) Unset ¶
func (v *NullableCreateCompletionResponseChoicesInnerLogprobs) Unset()
type NullableCreateCompletionResponseUsage ¶
type NullableCreateCompletionResponseUsage struct {
// contains filtered or unexported fields
}
func NewNullableCreateCompletionResponseUsage ¶
func NewNullableCreateCompletionResponseUsage(val *CreateCompletionResponseUsage) *NullableCreateCompletionResponseUsage
func (NullableCreateCompletionResponseUsage) Get ¶
func (v NullableCreateCompletionResponseUsage) Get() *CreateCompletionResponseUsage
func (NullableCreateCompletionResponseUsage) IsSet ¶
func (v NullableCreateCompletionResponseUsage) IsSet() bool
func (NullableCreateCompletionResponseUsage) MarshalJSON ¶
func (v NullableCreateCompletionResponseUsage) MarshalJSON() ([]byte, error)
func (*NullableCreateCompletionResponseUsage) Set ¶
func (v *NullableCreateCompletionResponseUsage) Set(val *CreateCompletionResponseUsage)
func (*NullableCreateCompletionResponseUsage) UnmarshalJSON ¶
func (v *NullableCreateCompletionResponseUsage) UnmarshalJSON(src []byte) error
func (*NullableCreateCompletionResponseUsage) Unset ¶
func (v *NullableCreateCompletionResponseUsage) Unset()
type NullableCreateEditRequest ¶
type NullableCreateEditRequest struct {
// contains filtered or unexported fields
}
func NewNullableCreateEditRequest ¶
func NewNullableCreateEditRequest(val *CreateEditRequest) *NullableCreateEditRequest
func (NullableCreateEditRequest) Get ¶
func (v NullableCreateEditRequest) Get() *CreateEditRequest
func (NullableCreateEditRequest) IsSet ¶
func (v NullableCreateEditRequest) IsSet() bool
func (NullableCreateEditRequest) MarshalJSON ¶
func (v NullableCreateEditRequest) MarshalJSON() ([]byte, error)
func (*NullableCreateEditRequest) Set ¶
func (v *NullableCreateEditRequest) Set(val *CreateEditRequest)
func (*NullableCreateEditRequest) UnmarshalJSON ¶
func (v *NullableCreateEditRequest) UnmarshalJSON(src []byte) error
func (*NullableCreateEditRequest) Unset ¶
func (v *NullableCreateEditRequest) Unset()
type NullableCreateEditResponse ¶
type NullableCreateEditResponse struct {
// contains filtered or unexported fields
}
func NewNullableCreateEditResponse ¶
func NewNullableCreateEditResponse(val *CreateEditResponse) *NullableCreateEditResponse
func (NullableCreateEditResponse) Get ¶
func (v NullableCreateEditResponse) Get() *CreateEditResponse
func (NullableCreateEditResponse) IsSet ¶
func (v NullableCreateEditResponse) IsSet() bool
func (NullableCreateEditResponse) MarshalJSON ¶
func (v NullableCreateEditResponse) MarshalJSON() ([]byte, error)
func (*NullableCreateEditResponse) Set ¶
func (v *NullableCreateEditResponse) Set(val *CreateEditResponse)
func (*NullableCreateEditResponse) UnmarshalJSON ¶
func (v *NullableCreateEditResponse) UnmarshalJSON(src []byte) error
func (*NullableCreateEditResponse) Unset ¶
func (v *NullableCreateEditResponse) Unset()
type NullableCreateEmbeddingRequest ¶
type NullableCreateEmbeddingRequest struct {
// contains filtered or unexported fields
}
func NewNullableCreateEmbeddingRequest ¶
func NewNullableCreateEmbeddingRequest(val *CreateEmbeddingRequest) *NullableCreateEmbeddingRequest
func (NullableCreateEmbeddingRequest) Get ¶
func (v NullableCreateEmbeddingRequest) Get() *CreateEmbeddingRequest
func (NullableCreateEmbeddingRequest) IsSet ¶
func (v NullableCreateEmbeddingRequest) IsSet() bool
func (NullableCreateEmbeddingRequest) MarshalJSON ¶
func (v NullableCreateEmbeddingRequest) MarshalJSON() ([]byte, error)
func (*NullableCreateEmbeddingRequest) Set ¶
func (v *NullableCreateEmbeddingRequest) Set(val *CreateEmbeddingRequest)
func (*NullableCreateEmbeddingRequest) UnmarshalJSON ¶
func (v *NullableCreateEmbeddingRequest) UnmarshalJSON(src []byte) error
func (*NullableCreateEmbeddingRequest) Unset ¶
func (v *NullableCreateEmbeddingRequest) Unset()
type NullableCreateEmbeddingRequestInput ¶
type NullableCreateEmbeddingRequestInput struct {
// contains filtered or unexported fields
}
func NewNullableCreateEmbeddingRequestInput ¶
func NewNullableCreateEmbeddingRequestInput(val *CreateEmbeddingRequestInput) *NullableCreateEmbeddingRequestInput
func (NullableCreateEmbeddingRequestInput) Get ¶
func (v NullableCreateEmbeddingRequestInput) Get() *CreateEmbeddingRequestInput
func (NullableCreateEmbeddingRequestInput) IsSet ¶
func (v NullableCreateEmbeddingRequestInput) IsSet() bool
func (NullableCreateEmbeddingRequestInput) MarshalJSON ¶
func (v NullableCreateEmbeddingRequestInput) MarshalJSON() ([]byte, error)
func (*NullableCreateEmbeddingRequestInput) Set ¶
func (v *NullableCreateEmbeddingRequestInput) Set(val *CreateEmbeddingRequestInput)
func (*NullableCreateEmbeddingRequestInput) UnmarshalJSON ¶
func (v *NullableCreateEmbeddingRequestInput) UnmarshalJSON(src []byte) error
func (*NullableCreateEmbeddingRequestInput) Unset ¶
func (v *NullableCreateEmbeddingRequestInput) Unset()
type NullableCreateEmbeddingResponse ¶
type NullableCreateEmbeddingResponse struct {
// contains filtered or unexported fields
}
func NewNullableCreateEmbeddingResponse ¶
func NewNullableCreateEmbeddingResponse(val *CreateEmbeddingResponse) *NullableCreateEmbeddingResponse
func (NullableCreateEmbeddingResponse) Get ¶
func (v NullableCreateEmbeddingResponse) Get() *CreateEmbeddingResponse
func (NullableCreateEmbeddingResponse) IsSet ¶
func (v NullableCreateEmbeddingResponse) IsSet() bool
func (NullableCreateEmbeddingResponse) MarshalJSON ¶
func (v NullableCreateEmbeddingResponse) MarshalJSON() ([]byte, error)
func (*NullableCreateEmbeddingResponse) Set ¶
func (v *NullableCreateEmbeddingResponse) Set(val *CreateEmbeddingResponse)
func (*NullableCreateEmbeddingResponse) UnmarshalJSON ¶
func (v *NullableCreateEmbeddingResponse) UnmarshalJSON(src []byte) error
func (*NullableCreateEmbeddingResponse) Unset ¶
func (v *NullableCreateEmbeddingResponse) Unset()
type NullableCreateEmbeddingResponseDataInner ¶
type NullableCreateEmbeddingResponseDataInner struct {
// contains filtered or unexported fields
}
func NewNullableCreateEmbeddingResponseDataInner ¶
func NewNullableCreateEmbeddingResponseDataInner(val *CreateEmbeddingResponseDataInner) *NullableCreateEmbeddingResponseDataInner
func (NullableCreateEmbeddingResponseDataInner) IsSet ¶
func (v NullableCreateEmbeddingResponseDataInner) IsSet() bool
func (NullableCreateEmbeddingResponseDataInner) MarshalJSON ¶
func (v NullableCreateEmbeddingResponseDataInner) MarshalJSON() ([]byte, error)
func (*NullableCreateEmbeddingResponseDataInner) Set ¶
func (v *NullableCreateEmbeddingResponseDataInner) Set(val *CreateEmbeddingResponseDataInner)
func (*NullableCreateEmbeddingResponseDataInner) UnmarshalJSON ¶
func (v *NullableCreateEmbeddingResponseDataInner) UnmarshalJSON(src []byte) error
func (*NullableCreateEmbeddingResponseDataInner) Unset ¶
func (v *NullableCreateEmbeddingResponseDataInner) Unset()
type NullableCreateEmbeddingResponseUsage ¶
type NullableCreateEmbeddingResponseUsage struct {
// contains filtered or unexported fields
}
func NewNullableCreateEmbeddingResponseUsage ¶
func NewNullableCreateEmbeddingResponseUsage(val *CreateEmbeddingResponseUsage) *NullableCreateEmbeddingResponseUsage
func (NullableCreateEmbeddingResponseUsage) Get ¶
func (v NullableCreateEmbeddingResponseUsage) Get() *CreateEmbeddingResponseUsage
func (NullableCreateEmbeddingResponseUsage) IsSet ¶
func (v NullableCreateEmbeddingResponseUsage) IsSet() bool
func (NullableCreateEmbeddingResponseUsage) MarshalJSON ¶
func (v NullableCreateEmbeddingResponseUsage) MarshalJSON() ([]byte, error)
func (*NullableCreateEmbeddingResponseUsage) Set ¶
func (v *NullableCreateEmbeddingResponseUsage) Set(val *CreateEmbeddingResponseUsage)
func (*NullableCreateEmbeddingResponseUsage) UnmarshalJSON ¶
func (v *NullableCreateEmbeddingResponseUsage) UnmarshalJSON(src []byte) error
func (*NullableCreateEmbeddingResponseUsage) Unset ¶
func (v *NullableCreateEmbeddingResponseUsage) Unset()
type NullableCreateFineTuneRequest ¶
type NullableCreateFineTuneRequest struct {
// contains filtered or unexported fields
}
func NewNullableCreateFineTuneRequest ¶
func NewNullableCreateFineTuneRequest(val *CreateFineTuneRequest) *NullableCreateFineTuneRequest
func (NullableCreateFineTuneRequest) Get ¶
func (v NullableCreateFineTuneRequest) Get() *CreateFineTuneRequest
func (NullableCreateFineTuneRequest) IsSet ¶
func (v NullableCreateFineTuneRequest) IsSet() bool
func (NullableCreateFineTuneRequest) MarshalJSON ¶
func (v NullableCreateFineTuneRequest) MarshalJSON() ([]byte, error)
func (*NullableCreateFineTuneRequest) Set ¶
func (v *NullableCreateFineTuneRequest) Set(val *CreateFineTuneRequest)
func (*NullableCreateFineTuneRequest) UnmarshalJSON ¶
func (v *NullableCreateFineTuneRequest) UnmarshalJSON(src []byte) error
func (*NullableCreateFineTuneRequest) Unset ¶
func (v *NullableCreateFineTuneRequest) Unset()
type NullableCreateImageRequest ¶
type NullableCreateImageRequest struct {
// contains filtered or unexported fields
}
func NewNullableCreateImageRequest ¶
func NewNullableCreateImageRequest(val *CreateImageRequest) *NullableCreateImageRequest
func (NullableCreateImageRequest) Get ¶
func (v NullableCreateImageRequest) Get() *CreateImageRequest
func (NullableCreateImageRequest) IsSet ¶
func (v NullableCreateImageRequest) IsSet() bool
func (NullableCreateImageRequest) MarshalJSON ¶
func (v NullableCreateImageRequest) MarshalJSON() ([]byte, error)
func (*NullableCreateImageRequest) Set ¶
func (v *NullableCreateImageRequest) Set(val *CreateImageRequest)
func (*NullableCreateImageRequest) UnmarshalJSON ¶
func (v *NullableCreateImageRequest) UnmarshalJSON(src []byte) error
func (*NullableCreateImageRequest) Unset ¶
func (v *NullableCreateImageRequest) Unset()
type NullableCreateModerationRequest ¶
type NullableCreateModerationRequest struct {
// contains filtered or unexported fields
}
func NewNullableCreateModerationRequest ¶
func NewNullableCreateModerationRequest(val *CreateModerationRequest) *NullableCreateModerationRequest
func (NullableCreateModerationRequest) Get ¶
func (v NullableCreateModerationRequest) Get() *CreateModerationRequest
func (NullableCreateModerationRequest) IsSet ¶
func (v NullableCreateModerationRequest) IsSet() bool
func (NullableCreateModerationRequest) MarshalJSON ¶
func (v NullableCreateModerationRequest) MarshalJSON() ([]byte, error)
func (*NullableCreateModerationRequest) Set ¶
func (v *NullableCreateModerationRequest) Set(val *CreateModerationRequest)
func (*NullableCreateModerationRequest) UnmarshalJSON ¶
func (v *NullableCreateModerationRequest) UnmarshalJSON(src []byte) error
func (*NullableCreateModerationRequest) Unset ¶
func (v *NullableCreateModerationRequest) Unset()
type NullableCreateModerationRequestInput ¶
type NullableCreateModerationRequestInput struct {
// contains filtered or unexported fields
}
func NewNullableCreateModerationRequestInput ¶
func NewNullableCreateModerationRequestInput(val *CreateModerationRequestInput) *NullableCreateModerationRequestInput
func (NullableCreateModerationRequestInput) Get ¶
func (v NullableCreateModerationRequestInput) Get() *CreateModerationRequestInput
func (NullableCreateModerationRequestInput) IsSet ¶
func (v NullableCreateModerationRequestInput) IsSet() bool
func (NullableCreateModerationRequestInput) MarshalJSON ¶
func (v NullableCreateModerationRequestInput) MarshalJSON() ([]byte, error)
func (*NullableCreateModerationRequestInput) Set ¶
func (v *NullableCreateModerationRequestInput) Set(val *CreateModerationRequestInput)
func (*NullableCreateModerationRequestInput) UnmarshalJSON ¶
func (v *NullableCreateModerationRequestInput) UnmarshalJSON(src []byte) error
func (*NullableCreateModerationRequestInput) Unset ¶
func (v *NullableCreateModerationRequestInput) Unset()
type NullableCreateModerationResponse ¶
type NullableCreateModerationResponse struct {
// contains filtered or unexported fields
}
func NewNullableCreateModerationResponse ¶
func NewNullableCreateModerationResponse(val *CreateModerationResponse) *NullableCreateModerationResponse
func (NullableCreateModerationResponse) Get ¶
func (v NullableCreateModerationResponse) Get() *CreateModerationResponse
func (NullableCreateModerationResponse) IsSet ¶
func (v NullableCreateModerationResponse) IsSet() bool
func (NullableCreateModerationResponse) MarshalJSON ¶
func (v NullableCreateModerationResponse) MarshalJSON() ([]byte, error)
func (*NullableCreateModerationResponse) Set ¶
func (v *NullableCreateModerationResponse) Set(val *CreateModerationResponse)
func (*NullableCreateModerationResponse) UnmarshalJSON ¶
func (v *NullableCreateModerationResponse) UnmarshalJSON(src []byte) error
func (*NullableCreateModerationResponse) Unset ¶
func (v *NullableCreateModerationResponse) Unset()
type NullableCreateModerationResponseResultsInner ¶
type NullableCreateModerationResponseResultsInner struct {
// contains filtered or unexported fields
}
func NewNullableCreateModerationResponseResultsInner ¶
func NewNullableCreateModerationResponseResultsInner(val *CreateModerationResponseResultsInner) *NullableCreateModerationResponseResultsInner
func (NullableCreateModerationResponseResultsInner) IsSet ¶
func (v NullableCreateModerationResponseResultsInner) IsSet() bool
func (NullableCreateModerationResponseResultsInner) MarshalJSON ¶
func (v NullableCreateModerationResponseResultsInner) MarshalJSON() ([]byte, error)
func (*NullableCreateModerationResponseResultsInner) Set ¶
func (v *NullableCreateModerationResponseResultsInner) Set(val *CreateModerationResponseResultsInner)
func (*NullableCreateModerationResponseResultsInner) UnmarshalJSON ¶
func (v *NullableCreateModerationResponseResultsInner) UnmarshalJSON(src []byte) error
func (*NullableCreateModerationResponseResultsInner) Unset ¶
func (v *NullableCreateModerationResponseResultsInner) Unset()
type NullableCreateModerationResponseResultsInnerCategories ¶
type NullableCreateModerationResponseResultsInnerCategories struct {
// contains filtered or unexported fields
}
func NewNullableCreateModerationResponseResultsInnerCategories ¶
func NewNullableCreateModerationResponseResultsInnerCategories(val *CreateModerationResponseResultsInnerCategories) *NullableCreateModerationResponseResultsInnerCategories
func (NullableCreateModerationResponseResultsInnerCategories) IsSet ¶
func (v NullableCreateModerationResponseResultsInnerCategories) IsSet() bool
func (NullableCreateModerationResponseResultsInnerCategories) MarshalJSON ¶
func (v NullableCreateModerationResponseResultsInnerCategories) MarshalJSON() ([]byte, error)
func (*NullableCreateModerationResponseResultsInnerCategories) UnmarshalJSON ¶
func (v *NullableCreateModerationResponseResultsInnerCategories) UnmarshalJSON(src []byte) error
func (*NullableCreateModerationResponseResultsInnerCategories) Unset ¶
func (v *NullableCreateModerationResponseResultsInnerCategories) Unset()
type NullableCreateModerationResponseResultsInnerCategoryScores ¶
type NullableCreateModerationResponseResultsInnerCategoryScores struct {
// contains filtered or unexported fields
}
func NewNullableCreateModerationResponseResultsInnerCategoryScores ¶
func NewNullableCreateModerationResponseResultsInnerCategoryScores(val *CreateModerationResponseResultsInnerCategoryScores) *NullableCreateModerationResponseResultsInnerCategoryScores
func (NullableCreateModerationResponseResultsInnerCategoryScores) IsSet ¶
func (v NullableCreateModerationResponseResultsInnerCategoryScores) IsSet() bool
func (NullableCreateModerationResponseResultsInnerCategoryScores) MarshalJSON ¶
func (v NullableCreateModerationResponseResultsInnerCategoryScores) MarshalJSON() ([]byte, error)
func (*NullableCreateModerationResponseResultsInnerCategoryScores) UnmarshalJSON ¶
func (v *NullableCreateModerationResponseResultsInnerCategoryScores) UnmarshalJSON(src []byte) error
func (*NullableCreateModerationResponseResultsInnerCategoryScores) Unset ¶
func (v *NullableCreateModerationResponseResultsInnerCategoryScores) Unset()
type NullableCreateSearchRequest ¶
type NullableCreateSearchRequest struct {
// contains filtered or unexported fields
}
func NewNullableCreateSearchRequest ¶
func NewNullableCreateSearchRequest(val *CreateSearchRequest) *NullableCreateSearchRequest
func (NullableCreateSearchRequest) Get ¶
func (v NullableCreateSearchRequest) Get() *CreateSearchRequest
func (NullableCreateSearchRequest) IsSet ¶
func (v NullableCreateSearchRequest) IsSet() bool
func (NullableCreateSearchRequest) MarshalJSON ¶
func (v NullableCreateSearchRequest) MarshalJSON() ([]byte, error)
func (*NullableCreateSearchRequest) Set ¶
func (v *NullableCreateSearchRequest) Set(val *CreateSearchRequest)
func (*NullableCreateSearchRequest) UnmarshalJSON ¶
func (v *NullableCreateSearchRequest) UnmarshalJSON(src []byte) error
func (*NullableCreateSearchRequest) Unset ¶
func (v *NullableCreateSearchRequest) Unset()
type NullableCreateSearchResponse ¶
type NullableCreateSearchResponse struct {
// contains filtered or unexported fields
}
func NewNullableCreateSearchResponse ¶
func NewNullableCreateSearchResponse(val *CreateSearchResponse) *NullableCreateSearchResponse
func (NullableCreateSearchResponse) Get ¶
func (v NullableCreateSearchResponse) Get() *CreateSearchResponse
func (NullableCreateSearchResponse) IsSet ¶
func (v NullableCreateSearchResponse) IsSet() bool
func (NullableCreateSearchResponse) MarshalJSON ¶
func (v NullableCreateSearchResponse) MarshalJSON() ([]byte, error)
func (*NullableCreateSearchResponse) Set ¶
func (v *NullableCreateSearchResponse) Set(val *CreateSearchResponse)
func (*NullableCreateSearchResponse) UnmarshalJSON ¶
func (v *NullableCreateSearchResponse) UnmarshalJSON(src []byte) error
func (*NullableCreateSearchResponse) Unset ¶
func (v *NullableCreateSearchResponse) Unset()
type NullableCreateSearchResponseDataInner ¶
type NullableCreateSearchResponseDataInner struct {
// contains filtered or unexported fields
}
func NewNullableCreateSearchResponseDataInner ¶
func NewNullableCreateSearchResponseDataInner(val *CreateSearchResponseDataInner) *NullableCreateSearchResponseDataInner
func (NullableCreateSearchResponseDataInner) Get ¶
func (v NullableCreateSearchResponseDataInner) Get() *CreateSearchResponseDataInner
func (NullableCreateSearchResponseDataInner) IsSet ¶
func (v NullableCreateSearchResponseDataInner) IsSet() bool
func (NullableCreateSearchResponseDataInner) MarshalJSON ¶
func (v NullableCreateSearchResponseDataInner) MarshalJSON() ([]byte, error)
func (*NullableCreateSearchResponseDataInner) Set ¶
func (v *NullableCreateSearchResponseDataInner) Set(val *CreateSearchResponseDataInner)
func (*NullableCreateSearchResponseDataInner) UnmarshalJSON ¶
func (v *NullableCreateSearchResponseDataInner) UnmarshalJSON(src []byte) error
func (*NullableCreateSearchResponseDataInner) Unset ¶
func (v *NullableCreateSearchResponseDataInner) Unset()
type NullableCreateTranscriptionResponse ¶
type NullableCreateTranscriptionResponse struct {
// contains filtered or unexported fields
}
func NewNullableCreateTranscriptionResponse ¶
func NewNullableCreateTranscriptionResponse(val *CreateTranscriptionResponse) *NullableCreateTranscriptionResponse
func (NullableCreateTranscriptionResponse) Get ¶
func (v NullableCreateTranscriptionResponse) Get() *CreateTranscriptionResponse
func (NullableCreateTranscriptionResponse) IsSet ¶
func (v NullableCreateTranscriptionResponse) IsSet() bool
func (NullableCreateTranscriptionResponse) MarshalJSON ¶
func (v NullableCreateTranscriptionResponse) MarshalJSON() ([]byte, error)
func (*NullableCreateTranscriptionResponse) Set ¶
func (v *NullableCreateTranscriptionResponse) Set(val *CreateTranscriptionResponse)
func (*NullableCreateTranscriptionResponse) UnmarshalJSON ¶
func (v *NullableCreateTranscriptionResponse) UnmarshalJSON(src []byte) error
func (*NullableCreateTranscriptionResponse) Unset ¶
func (v *NullableCreateTranscriptionResponse) Unset()
type NullableCreateTranslationResponse ¶
type NullableCreateTranslationResponse struct {
// contains filtered or unexported fields
}
func NewNullableCreateTranslationResponse ¶
func NewNullableCreateTranslationResponse(val *CreateTranslationResponse) *NullableCreateTranslationResponse
func (NullableCreateTranslationResponse) Get ¶
func (v NullableCreateTranslationResponse) Get() *CreateTranslationResponse
func (NullableCreateTranslationResponse) IsSet ¶
func (v NullableCreateTranslationResponse) IsSet() bool
func (NullableCreateTranslationResponse) MarshalJSON ¶
func (v NullableCreateTranslationResponse) MarshalJSON() ([]byte, error)
func (*NullableCreateTranslationResponse) Set ¶
func (v *NullableCreateTranslationResponse) Set(val *CreateTranslationResponse)
func (*NullableCreateTranslationResponse) UnmarshalJSON ¶
func (v *NullableCreateTranslationResponse) UnmarshalJSON(src []byte) error
func (*NullableCreateTranslationResponse) Unset ¶
func (v *NullableCreateTranslationResponse) Unset()
type NullableDeleteFileResponse ¶
type NullableDeleteFileResponse struct {
// contains filtered or unexported fields
}
func NewNullableDeleteFileResponse ¶
func NewNullableDeleteFileResponse(val *DeleteFileResponse) *NullableDeleteFileResponse
func (NullableDeleteFileResponse) Get ¶
func (v NullableDeleteFileResponse) Get() *DeleteFileResponse
func (NullableDeleteFileResponse) IsSet ¶
func (v NullableDeleteFileResponse) IsSet() bool
func (NullableDeleteFileResponse) MarshalJSON ¶
func (v NullableDeleteFileResponse) MarshalJSON() ([]byte, error)
func (*NullableDeleteFileResponse) Set ¶
func (v *NullableDeleteFileResponse) Set(val *DeleteFileResponse)
func (*NullableDeleteFileResponse) UnmarshalJSON ¶
func (v *NullableDeleteFileResponse) UnmarshalJSON(src []byte) error
func (*NullableDeleteFileResponse) Unset ¶
func (v *NullableDeleteFileResponse) Unset()
type NullableDeleteModelResponse ¶
type NullableDeleteModelResponse struct {
// contains filtered or unexported fields
}
func NewNullableDeleteModelResponse ¶
func NewNullableDeleteModelResponse(val *DeleteModelResponse) *NullableDeleteModelResponse
func (NullableDeleteModelResponse) Get ¶
func (v NullableDeleteModelResponse) Get() *DeleteModelResponse
func (NullableDeleteModelResponse) IsSet ¶
func (v NullableDeleteModelResponse) IsSet() bool
func (NullableDeleteModelResponse) MarshalJSON ¶
func (v NullableDeleteModelResponse) MarshalJSON() ([]byte, error)
func (*NullableDeleteModelResponse) Set ¶
func (v *NullableDeleteModelResponse) Set(val *DeleteModelResponse)
func (*NullableDeleteModelResponse) UnmarshalJSON ¶
func (v *NullableDeleteModelResponse) UnmarshalJSON(src []byte) error
func (*NullableDeleteModelResponse) Unset ¶
func (v *NullableDeleteModelResponse) Unset()
type NullableEngine ¶
type NullableEngine struct {
// contains filtered or unexported fields
}
func NewNullableEngine ¶
func NewNullableEngine(val *Engine) *NullableEngine
func (NullableEngine) Get ¶
func (v NullableEngine) Get() *Engine
func (NullableEngine) IsSet ¶
func (v NullableEngine) IsSet() bool
func (NullableEngine) MarshalJSON ¶
func (v NullableEngine) MarshalJSON() ([]byte, error)
func (*NullableEngine) Set ¶
func (v *NullableEngine) Set(val *Engine)
func (*NullableEngine) UnmarshalJSON ¶
func (v *NullableEngine) UnmarshalJSON(src []byte) error
func (*NullableEngine) Unset ¶
func (v *NullableEngine) Unset()
type NullableFineTune ¶
type NullableFineTune struct {
// contains filtered or unexported fields
}
func NewNullableFineTune ¶
func NewNullableFineTune(val *FineTune) *NullableFineTune
func (NullableFineTune) Get ¶
func (v NullableFineTune) Get() *FineTune
func (NullableFineTune) IsSet ¶
func (v NullableFineTune) IsSet() bool
func (NullableFineTune) MarshalJSON ¶
func (v NullableFineTune) MarshalJSON() ([]byte, error)
func (*NullableFineTune) Set ¶
func (v *NullableFineTune) Set(val *FineTune)
func (*NullableFineTune) UnmarshalJSON ¶
func (v *NullableFineTune) UnmarshalJSON(src []byte) error
func (*NullableFineTune) Unset ¶
func (v *NullableFineTune) Unset()
type NullableFineTuneEvent ¶
type NullableFineTuneEvent struct {
// contains filtered or unexported fields
}
func NewNullableFineTuneEvent ¶
func NewNullableFineTuneEvent(val *FineTuneEvent) *NullableFineTuneEvent
func (NullableFineTuneEvent) Get ¶
func (v NullableFineTuneEvent) Get() *FineTuneEvent
func (NullableFineTuneEvent) IsSet ¶
func (v NullableFineTuneEvent) IsSet() bool
func (NullableFineTuneEvent) MarshalJSON ¶
func (v NullableFineTuneEvent) MarshalJSON() ([]byte, error)
func (*NullableFineTuneEvent) Set ¶
func (v *NullableFineTuneEvent) Set(val *FineTuneEvent)
func (*NullableFineTuneEvent) UnmarshalJSON ¶
func (v *NullableFineTuneEvent) UnmarshalJSON(src []byte) error
func (*NullableFineTuneEvent) Unset ¶
func (v *NullableFineTuneEvent) Unset()
type NullableFloat32 ¶
type NullableFloat32 struct {
// contains filtered or unexported fields
}
func NewNullableFloat32 ¶
func NewNullableFloat32(val *float32) *NullableFloat32
func (NullableFloat32) Get ¶
func (v NullableFloat32) Get() *float32
func (NullableFloat32) IsSet ¶
func (v NullableFloat32) IsSet() bool
func (NullableFloat32) MarshalJSON ¶
func (v NullableFloat32) MarshalJSON() ([]byte, error)
func (*NullableFloat32) Set ¶
func (v *NullableFloat32) Set(val *float32)
func (*NullableFloat32) UnmarshalJSON ¶
func (v *NullableFloat32) UnmarshalJSON(src []byte) error
func (*NullableFloat32) Unset ¶
func (v *NullableFloat32) Unset()
type NullableFloat64 ¶
type NullableFloat64 struct {
// contains filtered or unexported fields
}
func NewNullableFloat64 ¶
func NewNullableFloat64(val *float64) *NullableFloat64
func (NullableFloat64) Get ¶
func (v NullableFloat64) Get() *float64
func (NullableFloat64) IsSet ¶
func (v NullableFloat64) IsSet() bool
func (NullableFloat64) MarshalJSON ¶
func (v NullableFloat64) MarshalJSON() ([]byte, error)
func (*NullableFloat64) Set ¶
func (v *NullableFloat64) Set(val *float64)
func (*NullableFloat64) UnmarshalJSON ¶
func (v *NullableFloat64) UnmarshalJSON(src []byte) error
func (*NullableFloat64) Unset ¶
func (v *NullableFloat64) Unset()
type NullableImagesResponse ¶
type NullableImagesResponse struct {
// contains filtered or unexported fields
}
func NewNullableImagesResponse ¶
func NewNullableImagesResponse(val *ImagesResponse) *NullableImagesResponse
func (NullableImagesResponse) Get ¶
func (v NullableImagesResponse) Get() *ImagesResponse
func (NullableImagesResponse) IsSet ¶
func (v NullableImagesResponse) IsSet() bool
func (NullableImagesResponse) MarshalJSON ¶
func (v NullableImagesResponse) MarshalJSON() ([]byte, error)
func (*NullableImagesResponse) Set ¶
func (v *NullableImagesResponse) Set(val *ImagesResponse)
func (*NullableImagesResponse) UnmarshalJSON ¶
func (v *NullableImagesResponse) UnmarshalJSON(src []byte) error
func (*NullableImagesResponse) Unset ¶
func (v *NullableImagesResponse) Unset()
type NullableImagesResponseDataInner ¶
type NullableImagesResponseDataInner struct {
// contains filtered or unexported fields
}
func NewNullableImagesResponseDataInner ¶
func NewNullableImagesResponseDataInner(val *ImagesResponseDataInner) *NullableImagesResponseDataInner
func (NullableImagesResponseDataInner) Get ¶
func (v NullableImagesResponseDataInner) Get() *ImagesResponseDataInner
func (NullableImagesResponseDataInner) IsSet ¶
func (v NullableImagesResponseDataInner) IsSet() bool
func (NullableImagesResponseDataInner) MarshalJSON ¶
func (v NullableImagesResponseDataInner) MarshalJSON() ([]byte, error)
func (*NullableImagesResponseDataInner) Set ¶
func (v *NullableImagesResponseDataInner) Set(val *ImagesResponseDataInner)
func (*NullableImagesResponseDataInner) UnmarshalJSON ¶
func (v *NullableImagesResponseDataInner) UnmarshalJSON(src []byte) error
func (*NullableImagesResponseDataInner) Unset ¶
func (v *NullableImagesResponseDataInner) Unset()
type NullableInt ¶
type NullableInt struct {
// contains filtered or unexported fields
}
func NewNullableInt ¶
func NewNullableInt(val *int) *NullableInt
func (NullableInt) Get ¶
func (v NullableInt) Get() *int
func (NullableInt) IsSet ¶
func (v NullableInt) IsSet() bool
func (NullableInt) MarshalJSON ¶
func (v NullableInt) MarshalJSON() ([]byte, error)
func (*NullableInt) Set ¶
func (v *NullableInt) Set(val *int)
func (*NullableInt) UnmarshalJSON ¶
func (v *NullableInt) UnmarshalJSON(src []byte) error
func (*NullableInt) Unset ¶
func (v *NullableInt) Unset()
type NullableInt32 ¶
type NullableInt32 struct {
// contains filtered or unexported fields
}
func NewNullableInt32 ¶
func NewNullableInt32(val *int32) *NullableInt32
func (NullableInt32) Get ¶
func (v NullableInt32) Get() *int32
func (NullableInt32) IsSet ¶
func (v NullableInt32) IsSet() bool
func (NullableInt32) MarshalJSON ¶
func (v NullableInt32) MarshalJSON() ([]byte, error)
func (*NullableInt32) Set ¶
func (v *NullableInt32) Set(val *int32)
func (*NullableInt32) UnmarshalJSON ¶
func (v *NullableInt32) UnmarshalJSON(src []byte) error
func (*NullableInt32) Unset ¶
func (v *NullableInt32) Unset()
type NullableInt64 ¶
type NullableInt64 struct {
// contains filtered or unexported fields
}
func NewNullableInt64 ¶
func NewNullableInt64(val *int64) *NullableInt64
func (NullableInt64) Get ¶
func (v NullableInt64) Get() *int64
func (NullableInt64) IsSet ¶
func (v NullableInt64) IsSet() bool
func (NullableInt64) MarshalJSON ¶
func (v NullableInt64) MarshalJSON() ([]byte, error)
func (*NullableInt64) Set ¶
func (v *NullableInt64) Set(val *int64)
func (*NullableInt64) UnmarshalJSON ¶
func (v *NullableInt64) UnmarshalJSON(src []byte) error
func (*NullableInt64) Unset ¶
func (v *NullableInt64) Unset()
type NullableListEnginesResponse ¶
type NullableListEnginesResponse struct {
// contains filtered or unexported fields
}
func NewNullableListEnginesResponse ¶
func NewNullableListEnginesResponse(val *ListEnginesResponse) *NullableListEnginesResponse
func (NullableListEnginesResponse) Get ¶
func (v NullableListEnginesResponse) Get() *ListEnginesResponse
func (NullableListEnginesResponse) IsSet ¶
func (v NullableListEnginesResponse) IsSet() bool
func (NullableListEnginesResponse) MarshalJSON ¶
func (v NullableListEnginesResponse) MarshalJSON() ([]byte, error)
func (*NullableListEnginesResponse) Set ¶
func (v *NullableListEnginesResponse) Set(val *ListEnginesResponse)
func (*NullableListEnginesResponse) UnmarshalJSON ¶
func (v *NullableListEnginesResponse) UnmarshalJSON(src []byte) error
func (*NullableListEnginesResponse) Unset ¶
func (v *NullableListEnginesResponse) Unset()
type NullableListFilesResponse ¶
type NullableListFilesResponse struct {
// contains filtered or unexported fields
}
func NewNullableListFilesResponse ¶
func NewNullableListFilesResponse(val *ListFilesResponse) *NullableListFilesResponse
func (NullableListFilesResponse) Get ¶
func (v NullableListFilesResponse) Get() *ListFilesResponse
func (NullableListFilesResponse) IsSet ¶
func (v NullableListFilesResponse) IsSet() bool
func (NullableListFilesResponse) MarshalJSON ¶
func (v NullableListFilesResponse) MarshalJSON() ([]byte, error)
func (*NullableListFilesResponse) Set ¶
func (v *NullableListFilesResponse) Set(val *ListFilesResponse)
func (*NullableListFilesResponse) UnmarshalJSON ¶
func (v *NullableListFilesResponse) UnmarshalJSON(src []byte) error
func (*NullableListFilesResponse) Unset ¶
func (v *NullableListFilesResponse) Unset()
type NullableListFineTuneEventsResponse ¶
type NullableListFineTuneEventsResponse struct {
// contains filtered or unexported fields
}
func NewNullableListFineTuneEventsResponse ¶
func NewNullableListFineTuneEventsResponse(val *ListFineTuneEventsResponse) *NullableListFineTuneEventsResponse
func (NullableListFineTuneEventsResponse) Get ¶
func (v NullableListFineTuneEventsResponse) Get() *ListFineTuneEventsResponse
func (NullableListFineTuneEventsResponse) IsSet ¶
func (v NullableListFineTuneEventsResponse) IsSet() bool
func (NullableListFineTuneEventsResponse) MarshalJSON ¶
func (v NullableListFineTuneEventsResponse) MarshalJSON() ([]byte, error)
func (*NullableListFineTuneEventsResponse) Set ¶
func (v *NullableListFineTuneEventsResponse) Set(val *ListFineTuneEventsResponse)
func (*NullableListFineTuneEventsResponse) UnmarshalJSON ¶
func (v *NullableListFineTuneEventsResponse) UnmarshalJSON(src []byte) error
func (*NullableListFineTuneEventsResponse) Unset ¶
func (v *NullableListFineTuneEventsResponse) Unset()
type NullableListFineTunesResponse ¶
type NullableListFineTunesResponse struct {
// contains filtered or unexported fields
}
func NewNullableListFineTunesResponse ¶
func NewNullableListFineTunesResponse(val *ListFineTunesResponse) *NullableListFineTunesResponse
func (NullableListFineTunesResponse) Get ¶
func (v NullableListFineTunesResponse) Get() *ListFineTunesResponse
func (NullableListFineTunesResponse) IsSet ¶
func (v NullableListFineTunesResponse) IsSet() bool
func (NullableListFineTunesResponse) MarshalJSON ¶
func (v NullableListFineTunesResponse) MarshalJSON() ([]byte, error)
func (*NullableListFineTunesResponse) Set ¶
func (v *NullableListFineTunesResponse) Set(val *ListFineTunesResponse)
func (*NullableListFineTunesResponse) UnmarshalJSON ¶
func (v *NullableListFineTunesResponse) UnmarshalJSON(src []byte) error
func (*NullableListFineTunesResponse) Unset ¶
func (v *NullableListFineTunesResponse) Unset()
type NullableListModelsResponse ¶
type NullableListModelsResponse struct {
// contains filtered or unexported fields
}
func NewNullableListModelsResponse ¶
func NewNullableListModelsResponse(val *ListModelsResponse) *NullableListModelsResponse
func (NullableListModelsResponse) Get ¶
func (v NullableListModelsResponse) Get() *ListModelsResponse
func (NullableListModelsResponse) IsSet ¶
func (v NullableListModelsResponse) IsSet() bool
func (NullableListModelsResponse) MarshalJSON ¶
func (v NullableListModelsResponse) MarshalJSON() ([]byte, error)
func (*NullableListModelsResponse) Set ¶
func (v *NullableListModelsResponse) Set(val *ListModelsResponse)
func (*NullableListModelsResponse) UnmarshalJSON ¶
func (v *NullableListModelsResponse) UnmarshalJSON(src []byte) error
func (*NullableListModelsResponse) Unset ¶
func (v *NullableListModelsResponse) Unset()
type NullableModel ¶
type NullableModel struct {
// contains filtered or unexported fields
}
func NewNullableModel ¶
func NewNullableModel(val *Model) *NullableModel
func (NullableModel) Get ¶
func (v NullableModel) Get() *Model
func (NullableModel) IsSet ¶
func (v NullableModel) IsSet() bool
func (NullableModel) MarshalJSON ¶
func (v NullableModel) MarshalJSON() ([]byte, error)
func (*NullableModel) Set ¶
func (v *NullableModel) Set(val *Model)
func (*NullableModel) UnmarshalJSON ¶
func (v *NullableModel) UnmarshalJSON(src []byte) error
func (*NullableModel) Unset ¶
func (v *NullableModel) Unset()
type NullableOpenAIFile ¶
type NullableOpenAIFile struct {
// contains filtered or unexported fields
}
func NewNullableOpenAIFile ¶
func NewNullableOpenAIFile(val *OpenAIFile) *NullableOpenAIFile
func (NullableOpenAIFile) Get ¶
func (v NullableOpenAIFile) Get() *OpenAIFile
func (NullableOpenAIFile) IsSet ¶
func (v NullableOpenAIFile) IsSet() bool
func (NullableOpenAIFile) MarshalJSON ¶
func (v NullableOpenAIFile) MarshalJSON() ([]byte, error)
func (*NullableOpenAIFile) Set ¶
func (v *NullableOpenAIFile) Set(val *OpenAIFile)
func (*NullableOpenAIFile) UnmarshalJSON ¶
func (v *NullableOpenAIFile) UnmarshalJSON(src []byte) error
func (*NullableOpenAIFile) Unset ¶
func (v *NullableOpenAIFile) Unset()
type NullableString ¶
type NullableString struct {
// contains filtered or unexported fields
}
func NewNullableString ¶
func NewNullableString(val *string) *NullableString
func (NullableString) Get ¶
func (v NullableString) Get() *string
func (NullableString) IsSet ¶
func (v NullableString) IsSet() bool
func (NullableString) MarshalJSON ¶
func (v NullableString) MarshalJSON() ([]byte, error)
func (*NullableString) Set ¶
func (v *NullableString) Set(val *string)
func (*NullableString) UnmarshalJSON ¶
func (v *NullableString) UnmarshalJSON(src []byte) error
func (*NullableString) Unset ¶
func (v *NullableString) Unset()
type NullableTime ¶
type NullableTime struct {
// contains filtered or unexported fields
}
func NewNullableTime ¶
func NewNullableTime(val *time.Time) *NullableTime
func (NullableTime) Get ¶
func (v NullableTime) Get() *time.Time
func (NullableTime) IsSet ¶
func (v NullableTime) IsSet() bool
func (NullableTime) MarshalJSON ¶
func (v NullableTime) MarshalJSON() ([]byte, error)
func (*NullableTime) Set ¶
func (v *NullableTime) Set(val *time.Time)
func (*NullableTime) UnmarshalJSON ¶
func (v *NullableTime) UnmarshalJSON(src []byte) error
func (*NullableTime) Unset ¶
func (v *NullableTime) Unset()
type OpenAIApiService ¶
type OpenAIApiService service
OpenAIApiService OpenAIApi service
func (*OpenAIApiService) CancelFineTune ¶
func (a *OpenAIApiService) CancelFineTune(ctx context.Context, fineTuneId string) ApiCancelFineTuneRequest
CancelFineTune Immediately cancel a fine-tune job.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param fineTuneId The ID of the fine-tune job to cancel @return ApiCancelFineTuneRequest
func (*OpenAIApiService) CancelFineTuneExecute ¶
func (a *OpenAIApiService) CancelFineTuneExecute(r ApiCancelFineTuneRequest) (*FineTune, *http.Response, error)
Execute executes the request
@return FineTune
func (*OpenAIApiService) CreateAnswer ¶
func (a *OpenAIApiService) CreateAnswer(ctx context.Context) ApiCreateAnswerRequest
CreateAnswer Answers the specified question using the provided documents and examples. The endpoint first [searches](/docs/api-reference/searches) over provided documents or files to find relevant context. The relevant context is combined with the provided examples and question to create the prompt for [completion](/docs/api-reference/completions).
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiCreateAnswerRequest
Deprecated
func (*OpenAIApiService) CreateAnswerExecute ¶
func (a *OpenAIApiService) CreateAnswerExecute(r ApiCreateAnswerRequest) (*CreateAnswerResponse, *http.Response, error)
Execute executes the request
@return CreateAnswerResponse
Deprecated
func (*OpenAIApiService) CreateChatCompletion ¶
func (a *OpenAIApiService) CreateChatCompletion(ctx context.Context) ApiCreateChatCompletionRequest
CreateChatCompletion Creates a completion for the chat message
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiCreateChatCompletionRequest
func (*OpenAIApiService) CreateChatCompletionExecute ¶
func (a *OpenAIApiService) CreateChatCompletionExecute(r ApiCreateChatCompletionRequest) (*CreateChatCompletionResponse, *http.Response, error)
Execute executes the request
@return CreateChatCompletionResponse
func (*OpenAIApiService) CreateClassification ¶
func (a *OpenAIApiService) CreateClassification(ctx context.Context) ApiCreateClassificationRequest
CreateClassification Classifies the specified `query` using provided examples. The endpoint first [searches](/docs/api-reference/searches) over the labeled examples to select the ones most relevant for the particular query. Then, the relevant examples are combined with the query to construct a prompt to produce the final label via the [completions](/docs/api-reference/completions) endpoint. Labeled examples can be provided via an uploaded `file`, or explicitly listed in the request using the `examples` parameter for quick tests and small scale use cases.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiCreateClassificationRequest
Deprecated
func (*OpenAIApiService) CreateClassificationExecute ¶
func (a *OpenAIApiService) CreateClassificationExecute(r ApiCreateClassificationRequest) (*CreateClassificationResponse, *http.Response, error)
Execute executes the request
@return CreateClassificationResponse
Deprecated
func (*OpenAIApiService) CreateCompletion ¶
func (a *OpenAIApiService) CreateCompletion(ctx context.Context) ApiCreateCompletionRequest
CreateCompletion Creates a completion for the provided prompt and parameters
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiCreateCompletionRequest
func (*OpenAIApiService) CreateCompletionExecute ¶
func (a *OpenAIApiService) CreateCompletionExecute(r ApiCreateCompletionRequest) (*CreateCompletionResponse, *http.Response, error)
Execute executes the request
@return CreateCompletionResponse
func (*OpenAIApiService) CreateEdit ¶
func (a *OpenAIApiService) CreateEdit(ctx context.Context) ApiCreateEditRequest
CreateEdit Creates a new edit for the provided input, instruction, and parameters.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiCreateEditRequest
func (*OpenAIApiService) CreateEditExecute ¶
func (a *OpenAIApiService) CreateEditExecute(r ApiCreateEditRequest) (*CreateEditResponse, *http.Response, error)
Execute executes the request
@return CreateEditResponse
func (*OpenAIApiService) CreateEmbedding ¶
func (a *OpenAIApiService) CreateEmbedding(ctx context.Context) ApiCreateEmbeddingRequest
CreateEmbedding Creates an embedding vector representing the input text.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiCreateEmbeddingRequest
func (*OpenAIApiService) CreateEmbeddingExecute ¶
func (a *OpenAIApiService) CreateEmbeddingExecute(r ApiCreateEmbeddingRequest) (*CreateEmbeddingResponse, *http.Response, error)
Execute executes the request
@return CreateEmbeddingResponse
func (*OpenAIApiService) CreateFile ¶
func (a *OpenAIApiService) CreateFile(ctx context.Context) ApiCreateFileRequest
CreateFile Upload a file that contains document(s) to be used across various endpoints/features. Currently, the size of all the files uploaded by one organization can be up to 1 GB. Please contact us if you need to increase the storage limit.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiCreateFileRequest
func (*OpenAIApiService) CreateFileExecute ¶
func (a *OpenAIApiService) CreateFileExecute(r ApiCreateFileRequest) (*OpenAIFile, *http.Response, error)
Execute executes the request
@return OpenAIFile
func (*OpenAIApiService) CreateFineTune ¶
func (a *OpenAIApiService) CreateFineTune(ctx context.Context) ApiCreateFineTuneRequest
CreateFineTune Creates a job that fine-tunes a specified model from a given dataset. Response includes details of the enqueued job including job status and the name of the fine-tuned models once complete. [Learn more about Fine-tuning](/docs/guides/fine-tuning)
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiCreateFineTuneRequest
func (*OpenAIApiService) CreateFineTuneExecute ¶
func (a *OpenAIApiService) CreateFineTuneExecute(r ApiCreateFineTuneRequest) (*FineTune, *http.Response, error)
Execute executes the request
@return FineTune
func (*OpenAIApiService) CreateImage ¶
func (a *OpenAIApiService) CreateImage(ctx context.Context) ApiCreateImageRequest
CreateImage Creates an image given a prompt.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiCreateImageRequest
func (*OpenAIApiService) CreateImageEdit ¶
func (a *OpenAIApiService) CreateImageEdit(ctx context.Context) ApiCreateImageEditRequest
CreateImageEdit Creates an edited or extended image given an original image and a prompt.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiCreateImageEditRequest
func (*OpenAIApiService) CreateImageEditExecute ¶
func (a *OpenAIApiService) CreateImageEditExecute(r ApiCreateImageEditRequest) (*ImagesResponse, *http.Response, error)
Execute executes the request
@return ImagesResponse
func (*OpenAIApiService) CreateImageExecute ¶
func (a *OpenAIApiService) CreateImageExecute(r ApiCreateImageRequest) (*ImagesResponse, *http.Response, error)
Execute executes the request
@return ImagesResponse
func (*OpenAIApiService) CreateImageVariation ¶
func (a *OpenAIApiService) CreateImageVariation(ctx context.Context) ApiCreateImageVariationRequest
CreateImageVariation Creates a variation of a given image.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiCreateImageVariationRequest
func (*OpenAIApiService) CreateImageVariationExecute ¶
func (a *OpenAIApiService) CreateImageVariationExecute(r ApiCreateImageVariationRequest) (*ImagesResponse, *http.Response, error)
Execute executes the request
@return ImagesResponse
func (*OpenAIApiService) CreateModeration ¶
func (a *OpenAIApiService) CreateModeration(ctx context.Context) ApiCreateModerationRequest
CreateModeration Classifies if text violates OpenAI's Content Policy
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiCreateModerationRequest
func (*OpenAIApiService) CreateModerationExecute ¶
func (a *OpenAIApiService) CreateModerationExecute(r ApiCreateModerationRequest) (*CreateModerationResponse, *http.Response, error)
Execute executes the request
@return CreateModerationResponse
func (*OpenAIApiService) CreateSearch ¶
func (a *OpenAIApiService) CreateSearch(ctx context.Context, engineId string) ApiCreateSearchRequest
CreateSearch The search endpoint computes similarity scores between provided query and documents. Documents can be passed directly to the API if there are no more than 200 of them. To go beyond the 200 document limit, documents can be processed offline and then used for efficient retrieval at query time. When `file` is set, the search endpoint searches over all the documents in the given file and returns up to the `max_rerank` number of documents. These documents will be returned along with their search scores. The similarity score is a positive score that usually ranges from 0 to 300 (but can sometimes go higher), where a score above 200 usually means the document is semantically similar to the query.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param engineId The ID of the engine to use for this request. You can select one of `ada`, `babbage`, `curie`, or `davinci`. @return ApiCreateSearchRequest
Deprecated
func (*OpenAIApiService) CreateSearchExecute ¶
func (a *OpenAIApiService) CreateSearchExecute(r ApiCreateSearchRequest) (*CreateSearchResponse, *http.Response, error)
Execute executes the request
@return CreateSearchResponse
Deprecated
func (*OpenAIApiService) CreateTranscription ¶
func (a *OpenAIApiService) CreateTranscription(ctx context.Context) ApiCreateTranscriptionRequest
CreateTranscription Transcribes audio into the input language.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiCreateTranscriptionRequest
func (*OpenAIApiService) CreateTranscriptionExecute ¶
func (a *OpenAIApiService) CreateTranscriptionExecute(r ApiCreateTranscriptionRequest) (*CreateTranscriptionResponse, *http.Response, error)
Execute executes the request
@return CreateTranscriptionResponse
func (*OpenAIApiService) CreateTranslation ¶
func (a *OpenAIApiService) CreateTranslation(ctx context.Context) ApiCreateTranslationRequest
CreateTranslation Translates audio into into English.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiCreateTranslationRequest
func (*OpenAIApiService) CreateTranslationExecute ¶
func (a *OpenAIApiService) CreateTranslationExecute(r ApiCreateTranslationRequest) (*CreateTranslationResponse, *http.Response, error)
Execute executes the request
@return CreateTranslationResponse
func (*OpenAIApiService) DeleteFile ¶
func (a *OpenAIApiService) DeleteFile(ctx context.Context, fileId string) ApiDeleteFileRequest
DeleteFile Delete a file.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param fileId The ID of the file to use for this request @return ApiDeleteFileRequest
func (*OpenAIApiService) DeleteFileExecute ¶
func (a *OpenAIApiService) DeleteFileExecute(r ApiDeleteFileRequest) (*DeleteFileResponse, *http.Response, error)
Execute executes the request
@return DeleteFileResponse
func (*OpenAIApiService) DeleteModel ¶
func (a *OpenAIApiService) DeleteModel(ctx context.Context, model string) ApiDeleteModelRequest
DeleteModel Delete a fine-tuned model. You must have the Owner role in your organization.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param model The model to delete @return ApiDeleteModelRequest
func (*OpenAIApiService) DeleteModelExecute ¶
func (a *OpenAIApiService) DeleteModelExecute(r ApiDeleteModelRequest) (*DeleteModelResponse, *http.Response, error)
Execute executes the request
@return DeleteModelResponse
func (*OpenAIApiService) DownloadFile ¶
func (a *OpenAIApiService) DownloadFile(ctx context.Context, fileId string) ApiDownloadFileRequest
DownloadFile Returns the contents of the specified file
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param fileId The ID of the file to use for this request @return ApiDownloadFileRequest
func (*OpenAIApiService) DownloadFileExecute ¶
func (a *OpenAIApiService) DownloadFileExecute(r ApiDownloadFileRequest) (string, *http.Response, error)
Execute executes the request
@return string
func (*OpenAIApiService) ListEngines ¶
func (a *OpenAIApiService) ListEngines(ctx context.Context) ApiListEnginesRequest
ListEngines Lists the currently available (non-finetuned) models, and provides basic information about each one such as the owner and availability.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListEnginesRequest
Deprecated
func (*OpenAIApiService) ListEnginesExecute ¶
func (a *OpenAIApiService) ListEnginesExecute(r ApiListEnginesRequest) (*ListEnginesResponse, *http.Response, error)
Execute executes the request
@return ListEnginesResponse
Deprecated
func (*OpenAIApiService) ListFiles ¶
func (a *OpenAIApiService) ListFiles(ctx context.Context) ApiListFilesRequest
ListFiles Returns a list of files that belong to the user's organization.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListFilesRequest
func (*OpenAIApiService) ListFilesExecute ¶
func (a *OpenAIApiService) ListFilesExecute(r ApiListFilesRequest) (*ListFilesResponse, *http.Response, error)
Execute executes the request
@return ListFilesResponse
func (*OpenAIApiService) ListFineTuneEvents ¶
func (a *OpenAIApiService) ListFineTuneEvents(ctx context.Context, fineTuneId string) ApiListFineTuneEventsRequest
ListFineTuneEvents Get fine-grained status updates for a fine-tune job.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param fineTuneId The ID of the fine-tune job to get events for. @return ApiListFineTuneEventsRequest
func (*OpenAIApiService) ListFineTuneEventsExecute ¶
func (a *OpenAIApiService) ListFineTuneEventsExecute(r ApiListFineTuneEventsRequest) (*ListFineTuneEventsResponse, *http.Response, error)
Execute executes the request
@return ListFineTuneEventsResponse
func (*OpenAIApiService) ListFineTunes ¶
func (a *OpenAIApiService) ListFineTunes(ctx context.Context) ApiListFineTunesRequest
ListFineTunes List your organization's fine-tuning jobs
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListFineTunesRequest
func (*OpenAIApiService) ListFineTunesExecute ¶
func (a *OpenAIApiService) ListFineTunesExecute(r ApiListFineTunesRequest) (*ListFineTunesResponse, *http.Response, error)
Execute executes the request
@return ListFineTunesResponse
func (*OpenAIApiService) ListModels ¶
func (a *OpenAIApiService) ListModels(ctx context.Context) ApiListModelsRequest
ListModels Lists the currently available models, and provides basic information about each one such as the owner and availability.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListModelsRequest
func (*OpenAIApiService) ListModelsExecute ¶
func (a *OpenAIApiService) ListModelsExecute(r ApiListModelsRequest) (*ListModelsResponse, *http.Response, error)
Execute executes the request
@return ListModelsResponse
func (*OpenAIApiService) RetrieveEngine ¶
func (a *OpenAIApiService) RetrieveEngine(ctx context.Context, engineId string) ApiRetrieveEngineRequest
RetrieveEngine Retrieves a model instance, providing basic information about it such as the owner and availability.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param engineId The ID of the engine to use for this request @return ApiRetrieveEngineRequest
Deprecated
func (*OpenAIApiService) RetrieveEngineExecute ¶
func (a *OpenAIApiService) RetrieveEngineExecute(r ApiRetrieveEngineRequest) (*Engine, *http.Response, error)
Execute executes the request
@return Engine
Deprecated
func (*OpenAIApiService) RetrieveFile ¶
func (a *OpenAIApiService) RetrieveFile(ctx context.Context, fileId string) ApiRetrieveFileRequest
RetrieveFile Returns information about a specific file.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param fileId The ID of the file to use for this request @return ApiRetrieveFileRequest
func (*OpenAIApiService) RetrieveFileExecute ¶
func (a *OpenAIApiService) RetrieveFileExecute(r ApiRetrieveFileRequest) (*OpenAIFile, *http.Response, error)
Execute executes the request
@return OpenAIFile
func (*OpenAIApiService) RetrieveFineTune ¶
func (a *OpenAIApiService) RetrieveFineTune(ctx context.Context, fineTuneId string) ApiRetrieveFineTuneRequest
RetrieveFineTune Gets info about the fine-tune job. [Learn more about Fine-tuning](/docs/guides/fine-tuning)
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param fineTuneId The ID of the fine-tune job @return ApiRetrieveFineTuneRequest
func (*OpenAIApiService) RetrieveFineTuneExecute ¶
func (a *OpenAIApiService) RetrieveFineTuneExecute(r ApiRetrieveFineTuneRequest) (*FineTune, *http.Response, error)
Execute executes the request
@return FineTune
func (*OpenAIApiService) RetrieveModel ¶
func (a *OpenAIApiService) RetrieveModel(ctx context.Context, model string) ApiRetrieveModelRequest
RetrieveModel Retrieves a model instance, providing basic information about the model such as the owner and permissioning.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param model The ID of the model to use for this request @return ApiRetrieveModelRequest
func (*OpenAIApiService) RetrieveModelExecute ¶
func (a *OpenAIApiService) RetrieveModelExecute(r ApiRetrieveModelRequest) (*Model, *http.Response, error)
Execute executes the request
@return Model
type OpenAIFile ¶
type OpenAIFile struct { Id string `json:"id"` Object string `json:"object"` Bytes int32 `json:"bytes"` CreatedAt int32 `json:"created_at"` Filename string `json:"filename"` Purpose string `json:"purpose"` Status *string `json:"status,omitempty"` StatusDetails map[string]interface{} `json:"status_details,omitempty"` }
OpenAIFile struct for OpenAIFile
func NewOpenAIFile ¶
func NewOpenAIFile(id string, object string, bytes int32, createdAt int32, filename string, purpose string) *OpenAIFile
NewOpenAIFile instantiates a new OpenAIFile 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 NewOpenAIFileWithDefaults ¶
func NewOpenAIFileWithDefaults() *OpenAIFile
NewOpenAIFileWithDefaults instantiates a new OpenAIFile 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 (*OpenAIFile) GetBytes ¶
func (o *OpenAIFile) GetBytes() int32
GetBytes returns the Bytes field value
func (*OpenAIFile) GetBytesOk ¶
func (o *OpenAIFile) GetBytesOk() (*int32, bool)
GetBytesOk returns a tuple with the Bytes field value and a boolean to check if the value has been set.
func (*OpenAIFile) GetCreatedAt ¶
func (o *OpenAIFile) GetCreatedAt() int32
GetCreatedAt returns the CreatedAt field value
func (*OpenAIFile) GetCreatedAtOk ¶
func (o *OpenAIFile) GetCreatedAtOk() (*int32, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field value and a boolean to check if the value has been set.
func (*OpenAIFile) GetFilename ¶
func (o *OpenAIFile) GetFilename() string
GetFilename returns the Filename field value
func (*OpenAIFile) GetFilenameOk ¶
func (o *OpenAIFile) GetFilenameOk() (*string, bool)
GetFilenameOk returns a tuple with the Filename field value and a boolean to check if the value has been set.
func (*OpenAIFile) GetIdOk ¶
func (o *OpenAIFile) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (*OpenAIFile) GetObject ¶
func (o *OpenAIFile) GetObject() string
GetObject returns the Object field value
func (*OpenAIFile) GetObjectOk ¶
func (o *OpenAIFile) GetObjectOk() (*string, bool)
GetObjectOk returns a tuple with the Object field value and a boolean to check if the value has been set.
func (*OpenAIFile) GetPurpose ¶
func (o *OpenAIFile) GetPurpose() string
GetPurpose returns the Purpose field value
func (*OpenAIFile) GetPurposeOk ¶
func (o *OpenAIFile) GetPurposeOk() (*string, bool)
GetPurposeOk returns a tuple with the Purpose field value and a boolean to check if the value has been set.
func (*OpenAIFile) GetStatus ¶
func (o *OpenAIFile) GetStatus() string
GetStatus returns the Status field value if set, zero value otherwise.
func (*OpenAIFile) GetStatusDetails ¶
func (o *OpenAIFile) GetStatusDetails() map[string]interface{}
GetStatusDetails returns the StatusDetails field value if set, zero value otherwise (both if not set or set to explicit null).
func (*OpenAIFile) GetStatusDetailsOk ¶
func (o *OpenAIFile) GetStatusDetailsOk() (map[string]interface{}, bool)
GetStatusDetailsOk returns a tuple with the StatusDetails field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*OpenAIFile) GetStatusOk ¶
func (o *OpenAIFile) GetStatusOk() (*string, bool)
GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.
func (*OpenAIFile) HasStatus ¶
func (o *OpenAIFile) HasStatus() bool
HasStatus returns a boolean if a field has been set.
func (*OpenAIFile) HasStatusDetails ¶
func (o *OpenAIFile) HasStatusDetails() bool
HasStatusDetails returns a boolean if a field has been set.
func (OpenAIFile) MarshalJSON ¶
func (o OpenAIFile) MarshalJSON() ([]byte, error)
func (*OpenAIFile) SetCreatedAt ¶
func (o *OpenAIFile) SetCreatedAt(v int32)
SetCreatedAt sets field value
func (*OpenAIFile) SetFilename ¶
func (o *OpenAIFile) SetFilename(v string)
SetFilename sets field value
func (*OpenAIFile) SetPurpose ¶
func (o *OpenAIFile) SetPurpose(v string)
SetPurpose sets field value
func (*OpenAIFile) SetStatus ¶
func (o *OpenAIFile) SetStatus(v string)
SetStatus gets a reference to the given string and assigns it to the Status field.
func (*OpenAIFile) SetStatusDetails ¶
func (o *OpenAIFile) SetStatusDetails(v map[string]interface{})
SetStatusDetails gets a reference to the given map[string]interface{} and assigns it to the StatusDetails field.
func (OpenAIFile) ToMap ¶
func (o OpenAIFile) ToMap() (map[string]interface{}, error)
type ServerConfiguration ¶
type ServerConfiguration struct { URL string Description string Variables map[string]ServerVariable }
ServerConfiguration stores the information about a server
type ServerConfigurations ¶
type ServerConfigurations []ServerConfiguration
ServerConfigurations stores multiple ServerConfiguration items
type ServerVariable ¶
ServerVariable stores the information about a server variable
Source Files ¶
- api_open_ai.go
- client.go
- configuration.go
- model_chat_completion_request_message.go
- model_chat_completion_response_message.go
- model_create_answer_request.go
- model_create_answer_request_stop.go
- model_create_answer_response.go
- model_create_answer_response_selected_documents_inner.go
- model_create_chat_completion_request.go
- model_create_chat_completion_request_stop.go
- model_create_chat_completion_response.go
- model_create_chat_completion_response_choices_inner.go
- model_create_classification_request.go
- model_create_classification_response.go
- model_create_classification_response_selected_examples_inner.go
- model_create_completion_request.go
- model_create_completion_request_prompt.go
- model_create_completion_request_stop.go
- model_create_completion_response.go
- model_create_completion_response_choices_inner.go
- model_create_completion_response_choices_inner_logprobs.go
- model_create_completion_response_usage.go
- model_create_edit_request.go
- model_create_edit_response.go
- model_create_embedding_request.go
- model_create_embedding_request_input.go
- model_create_embedding_response.go
- model_create_embedding_response_data_inner.go
- model_create_embedding_response_usage.go
- model_create_fine_tune_request.go
- model_create_image_request.go
- model_create_moderation_request.go
- model_create_moderation_request_input.go
- model_create_moderation_response.go
- model_create_moderation_response_results_inner.go
- model_create_moderation_response_results_inner_categories.go
- model_create_moderation_response_results_inner_category_scores.go
- model_create_search_request.go
- model_create_search_response.go
- model_create_search_response_data_inner.go
- model_create_transcription_response.go
- model_create_translation_response.go
- model_delete_file_response.go
- model_delete_model_response.go
- model_engine.go
- model_fine_tune.go
- model_fine_tune_event.go
- model_images_response.go
- model_images_response_data_inner.go
- model_list_engines_response.go
- model_list_files_response.go
- model_list_fine_tune_events_response.go
- model_list_fine_tunes_response.go
- model_list_models_response.go
- model_model.go
- model_open_ai_file.go
- response.go
- utils.go