openapi

package module
v0.0.0-...-399e7b2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 20 Imported by: 0

README

Go API client for openapi

APIs for sampling from and fine-tuning language models

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 1.2.0
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import openapi "github.com/Zhima-Mochi/openai-go"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value sw.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), openapi.ContextServerIndex, 1)
Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value sw.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), openapi.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), openapi.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), openapi.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to https://api.openai.com/v1

Class Method HTTP request Description
OpenAIApi CancelFineTune Post /fine-tunes/{fine_tune_id}/cancel Immediately cancel a fine-tune job.
OpenAIApi CreateAnswer Post /answers Answers the specified question using the provided documents and examples. The endpoint first 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.
OpenAIApi CreateChatCompletion Post /chat/completions Creates a completion for the chat message
OpenAIApi CreateClassification Post /classifications Classifies the specified `query` using provided examples. The endpoint first 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 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.
OpenAIApi CreateCompletion Post /completions Creates a completion for the provided prompt and parameters
OpenAIApi CreateEdit Post /edits Creates a new edit for the provided input, instruction, and parameters.
OpenAIApi CreateEmbedding Post /embeddings Creates an embedding vector representing the input text.
OpenAIApi CreateFile Post /files 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.
OpenAIApi CreateFineTune Post /fine-tunes 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
OpenAIApi CreateImage Post /images/generations Creates an image given a prompt.
OpenAIApi CreateImageEdit Post /images/edits Creates an edited or extended image given an original image and a prompt.
OpenAIApi CreateImageVariation Post /images/variations Creates a variation of a given image.
OpenAIApi CreateModeration Post /moderations Classifies if text violates OpenAI's Content Policy
OpenAIApi CreateSearch Post /engines/{engine_id}/search 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.
OpenAIApi CreateTranscription Post /audio/transcriptions Transcribes audio into the input language.
OpenAIApi CreateTranslation Post /audio/translations Translates audio into into English.
OpenAIApi DeleteFile Delete /files/{file_id} Delete a file.
OpenAIApi DeleteModel Delete /models/{model} Delete a fine-tuned model. You must have the Owner role in your organization.
OpenAIApi DownloadFile Get /files/{file_id}/content Returns the contents of the specified file
OpenAIApi ListEngines Get /engines Lists the currently available (non-finetuned) models, and provides basic information about each one such as the owner and availability.
OpenAIApi ListFiles Get /files Returns a list of files that belong to the user's organization.
OpenAIApi ListFineTuneEvents Get /fine-tunes/{fine_tune_id}/events Get fine-grained status updates for a fine-tune job.
OpenAIApi ListFineTunes Get /fine-tunes List your organization's fine-tuning jobs
OpenAIApi ListModels Get /models Lists the currently available models, and provides basic information about each one such as the owner and availability.
OpenAIApi RetrieveEngine Get /engines/{engine_id} Retrieves a model instance, providing basic information about it such as the owner and availability.
OpenAIApi RetrieveFile Get /files/{file_id} Returns information about a specific file.
OpenAIApi RetrieveFineTune Get /fine-tunes/{fine_tune_id} Gets info about the fine-tune job. Learn more about Fine-tuning
OpenAIApi RetrieveModel Get /models/{model} Retrieves a model instance, providing basic information about the model such as the owner and permissioning.

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func IsNil

func IsNil(i interface{}) bool

IsNil checks if an input is nil

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time 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

type APIKey struct {
	Key    string
	Prefix string
}

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
}

func (ApiCancelFineTuneRequest) Execute

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

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

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

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

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

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

type ApiCreateFileRequest

type ApiCreateFileRequest struct {
	ApiService *OpenAIApiService
	// contains filtered or unexported fields
}

func (ApiCreateFileRequest) Execute

func (ApiCreateFileRequest) File

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

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

func (ApiCreateFineTuneRequest) Execute

type ApiCreateImageEditRequest

type ApiCreateImageEditRequest struct {
	ApiService *OpenAIApiService
	// contains filtered or unexported fields
}

func (ApiCreateImageEditRequest) Execute

func (ApiCreateImageEditRequest) Image

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

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

The number of images to generate. Must be between 1 and 10.

func (ApiCreateImageEditRequest) Prompt

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

The size of the generated images. Must be one of `256x256`, `512x512`, or `1024x1024`.

func (ApiCreateImageEditRequest) User

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

type ApiCreateImageVariationRequest

type ApiCreateImageVariationRequest struct {
	ApiService *OpenAIApiService
	// contains filtered or unexported fields
}

func (ApiCreateImageVariationRequest) Execute

func (ApiCreateImageVariationRequest) Image

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

The size of the generated images. Must be one of `256x256`, `512x512`, or `1024x1024`.

func (ApiCreateImageVariationRequest) User

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

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

type ApiCreateTranscriptionRequest

type ApiCreateTranscriptionRequest struct {
	ApiService *OpenAIApiService
	// contains filtered or unexported fields
}

func (ApiCreateTranscriptionRequest) Execute

func (ApiCreateTranscriptionRequest) File

The audio file to transcribe, in one of these formats: mp3, mp4, mpeg, mpga, m4a, wav, or webm.

func (ApiCreateTranscriptionRequest) Language

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

ID of the model to use. Only `whisper-1` is currently available.

func (ApiCreateTranscriptionRequest) Prompt

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

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 (ApiCreateTranslationRequest) File

The audio file to translate, in one of these formats: mp3, mp4, mpeg, mpga, m4a, wav, or webm.

func (ApiCreateTranslationRequest) Model

ID of the model to use. Only `whisper-1` is currently available.

func (ApiCreateTranslationRequest) Prompt

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

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

type ApiDeleteModelRequest

type ApiDeleteModelRequest struct {
	ApiService *OpenAIApiService
	// contains filtered or unexported fields
}

func (ApiDeleteModelRequest) Execute

type ApiDownloadFileRequest

type ApiDownloadFileRequest struct {
	ApiService *OpenAIApiService
	// contains filtered or unexported fields
}

func (ApiDownloadFileRequest) Execute

func (r ApiDownloadFileRequest) Execute() (string, *http.Response, error)

type ApiListEnginesRequest

type ApiListEnginesRequest struct {
	ApiService *OpenAIApiService
	// contains filtered or unexported fields
}

func (ApiListEnginesRequest) Execute

type ApiListFilesRequest

type ApiListFilesRequest struct {
	ApiService *OpenAIApiService
	// contains filtered or unexported fields
}

func (ApiListFilesRequest) Execute

type ApiListFineTuneEventsRequest

type ApiListFineTuneEventsRequest struct {
	ApiService *OpenAIApiService
	// contains filtered or unexported fields
}

func (ApiListFineTuneEventsRequest) Execute

func (ApiListFineTuneEventsRequest) Stream

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

type ApiListModelsRequest

type ApiListModelsRequest struct {
	ApiService *OpenAIApiService
	// contains filtered or unexported fields
}

func (ApiListModelsRequest) Execute

type ApiRetrieveEngineRequest

type ApiRetrieveEngineRequest struct {
	ApiService *OpenAIApiService
	// contains filtered or unexported fields
}

func (ApiRetrieveEngineRequest) Execute

type ApiRetrieveFileRequest

type ApiRetrieveFileRequest struct {
	ApiService *OpenAIApiService
	// contains filtered or unexported fields
}

func (ApiRetrieveFileRequest) Execute

type ApiRetrieveFineTuneRequest

type ApiRetrieveFineTuneRequest struct {
	ApiService *OpenAIApiService
	// contains filtered or unexported fields
}

func (ApiRetrieveFineTuneRequest) Execute

type ApiRetrieveModelRequest

type ApiRetrieveModelRequest struct {
	ApiService *OpenAIApiService
	// contains filtered or unexported fields
}

func (ApiRetrieveModelRequest) Execute

func (r ApiRetrieveModelRequest) Execute() (*Model, *http.Response, error)

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

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) ServerURL

func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)

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

GetStop returns the Stop field value if set, zero value otherwise (both if not set or set to explicit null).

func (*CreateAnswerRequest) GetStopOk

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

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

type CreateAnswerRequestStop struct {
	ArrayOfString *[]string
	String        *string
}

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

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

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

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

GetText returns the Text field value if set, zero value otherwise.

func (*CreateAnswerResponseSelectedDocumentsInner) GetTextOk

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

HasDocument returns a boolean if a field has been set.

func (*CreateAnswerResponseSelectedDocumentsInner) HasText

HasText returns a boolean if a field has been set.

func (CreateAnswerResponseSelectedDocumentsInner) MarshalJSON

func (*CreateAnswerResponseSelectedDocumentsInner) SetDocument

SetDocument gets a reference to the given int32 and assigns it to the Document field.

func (*CreateAnswerResponseSelectedDocumentsInner) SetText

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

GetMessages returns the Messages field value

func (*CreateChatCompletionRequest) GetMessagesOk

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

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

GetStop returns the Stop field value if set, zero value otherwise.

func (*CreateChatCompletionRequest) GetStopOk

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

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

SetMessages sets field value

func (*CreateChatCompletionRequest) SetModel

func (o *CreateChatCompletionRequest) SetModel(v string)

SetModel sets field value

func (*CreateChatCompletionRequest) SetN

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

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

type CreateChatCompletionRequestStop struct {
	ArrayOfString *[]string
	String        *string
}

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

GetChoices returns the Choices field value

func (*CreateChatCompletionResponse) GetChoicesOk

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

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

GetUsage returns the Usage field value if set, zero value otherwise.

func (*CreateChatCompletionResponse) GetUsageOk

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

SetChoices sets field value

func (*CreateChatCompletionResponse) SetCreated

func (o *CreateChatCompletionResponse) SetCreated(v int32)

SetCreated sets field value

func (*CreateChatCompletionResponse) SetId

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

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

GetIndex returns the Index field value if set, zero value otherwise.

func (*CreateChatCompletionResponseChoicesInner) GetIndexOk

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

GetMessage returns the Message field value if set, zero value otherwise.

func (*CreateChatCompletionResponseChoicesInner) GetMessageOk

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

HasIndex returns a boolean if a field has been set.

func (*CreateChatCompletionResponseChoicesInner) HasMessage

HasMessage returns a boolean if a field has been set.

func (CreateChatCompletionResponseChoicesInner) MarshalJSON

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

SetIndex gets a reference to the given int32 and assigns it to the Index field.

func (*CreateChatCompletionResponseChoicesInner) SetMessage

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

GetSelectedExamples returns the SelectedExamples field value if set, zero value otherwise.

func (*CreateClassificationResponse) GetSelectedExamplesOk

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

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

GetDocument returns the Document field value if set, zero value otherwise.

func (*CreateClassificationResponseSelectedExamplesInner) GetDocumentOk

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

GetLabel returns the Label field value if set, zero value otherwise.

func (*CreateClassificationResponseSelectedExamplesInner) GetLabelOk

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

GetText returns the Text field value if set, zero value otherwise.

func (*CreateClassificationResponseSelectedExamplesInner) GetTextOk

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

HasDocument returns a boolean if a field has been set.

func (*CreateClassificationResponseSelectedExamplesInner) HasLabel

HasLabel returns a boolean if a field has been set.

func (*CreateClassificationResponseSelectedExamplesInner) HasText

HasText returns a boolean if a field has been set.

func (CreateClassificationResponseSelectedExamplesInner) MarshalJSON

func (*CreateClassificationResponseSelectedExamplesInner) SetDocument

SetDocument gets a reference to the given int32 and assigns it to the Document field.

func (*CreateClassificationResponseSelectedExamplesInner) SetLabel

SetLabel gets a reference to the given string and assigns it to the Label field.

func (*CreateClassificationResponseSelectedExamplesInner) SetText

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

GetPrompt returns the Prompt field value if set, zero value otherwise (both if not set or set to explicit null).

func (*CreateCompletionRequest) GetPromptOk

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

GetStop returns the Stop field value if set, zero value otherwise (both if not set or set to explicit null).

func (*CreateCompletionRequest) GetStopOk

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

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

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

type CreateCompletionRequestStop struct {
	ArrayOfString *[]string
	String        *string
}

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

GetChoices returns the Choices field value

func (*CreateCompletionResponse) GetChoicesOk

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

GetUsage returns the Usage field value if set, zero value otherwise.

func (*CreateCompletionResponse) GetUsageOk

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

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

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

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

GetLogprobs returns the Logprobs field value if set, zero value otherwise (both if not set or set to explicit null).

func (*CreateCompletionResponseChoicesInner) GetLogprobsOk

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

GetText returns the Text field value if set, zero value otherwise.

func (*CreateCompletionResponseChoicesInner) GetTextOk

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

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

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

SetIndex gets a reference to the given int32 and assigns it to the Index field.

func (*CreateCompletionResponseChoicesInner) SetLogprobs

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

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

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

GetTokens returns the Tokens field value if set, zero value otherwise.

func (*CreateCompletionResponseChoicesInnerLogprobs) GetTokensOk

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

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

HasTokens returns a boolean if a field has been set.

func (*CreateCompletionResponseChoicesInnerLogprobs) HasTopLogprobs

HasTopLogprobs returns a boolean if a field has been set.

func (CreateCompletionResponseChoicesInnerLogprobs) MarshalJSON

func (*CreateCompletionResponseChoicesInnerLogprobs) SetTextOffset

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

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

GetChoices returns the Choices field value

func (*CreateEditResponse) GetChoicesOk

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

GetUsage returns the Usage field value

func (*CreateEditResponse) GetUsageOk

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

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

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

GetInput returns the Input field value

func (*CreateEmbeddingRequest) GetInputOk

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

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

GetData returns the Data field value

func (*CreateEmbeddingResponse) GetDataOk

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

GetUsage returns the Usage field value

func (*CreateEmbeddingResponse) GetUsageOk

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

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

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

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

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

GetInput returns the Input field value

func (*CreateModerationRequest) GetInputOk

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

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

type CreateModerationRequestInput struct {
	ArrayOfString *[]string
	String        *string
}

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

GetResults returns the Results field value

func (*CreateModerationResponse) GetResultsOk

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

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

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

GetCategories returns the Categories field value

func (*CreateModerationResponseResultsInner) GetCategoriesOk

GetCategoriesOk returns a tuple with the Categories field value and a boolean to check if the value has been set.

func (*CreateModerationResponseResultsInner) GetCategoryScores

GetCategoryScores returns the CategoryScores field value

func (*CreateModerationResponseResultsInner) GetCategoryScoresOk

GetCategoryScoresOk returns a tuple with the CategoryScores field value and a boolean to check if the value has been set.

func (*CreateModerationResponseResultsInner) GetFlagged

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

SetCategories sets field value

func (*CreateModerationResponseResultsInner) SetCategoryScores

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

GetHate returns the Hate field value

func (*CreateModerationResponseResultsInnerCategories) GetHateOk

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

GetSelfHarm returns the SelfHarm field value

func (*CreateModerationResponseResultsInnerCategories) GetSelfHarmOk

GetSelfHarmOk returns a tuple with the SelfHarm field value and a boolean to check if the value has been set.

func (*CreateModerationResponseResultsInnerCategories) GetSexual

GetSexual returns the Sexual field value

func (*CreateModerationResponseResultsInnerCategories) GetSexualMinors

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

GetSexualOk returns a tuple with the Sexual field value and a boolean to check if the value has been set.

func (*CreateModerationResponseResultsInnerCategories) GetViolence

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

GetViolenceOk returns a tuple with the Violence field value and a boolean to check if the value has been set.

func (CreateModerationResponseResultsInnerCategories) MarshalJSON

func (*CreateModerationResponseResultsInnerCategories) SetHate

SetHate sets field value

func (*CreateModerationResponseResultsInnerCategories) SetHateThreatening

func (o *CreateModerationResponseResultsInnerCategories) SetHateThreatening(v bool)

SetHateThreatening sets field value

func (*CreateModerationResponseResultsInnerCategories) SetSelfHarm

SetSelfHarm sets field value

func (*CreateModerationResponseResultsInnerCategories) SetSexual

SetSexual sets field value

func (*CreateModerationResponseResultsInnerCategories) SetSexualMinors

SetSexualMinors sets field value

func (*CreateModerationResponseResultsInnerCategories) SetViolence

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

GetHate returns the Hate field value

func (*CreateModerationResponseResultsInnerCategoryScores) GetHateOk

GetHateOk returns a tuple with the Hate field value and a boolean to check if the value has been set.

func (*CreateModerationResponseResultsInnerCategoryScores) GetHateThreatening

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

GetSelfHarm returns the SelfHarm field value

func (*CreateModerationResponseResultsInnerCategoryScores) GetSelfHarmOk

GetSelfHarmOk returns a tuple with the SelfHarm field value and a boolean to check if the value has been set.

func (*CreateModerationResponseResultsInnerCategoryScores) GetSexual

GetSexual returns the Sexual field value

func (*CreateModerationResponseResultsInnerCategoryScores) GetSexualMinors

GetSexualMinors returns the SexualMinors field value

func (*CreateModerationResponseResultsInnerCategoryScores) GetSexualMinorsOk

GetSexualMinorsOk returns a tuple with the SexualMinors field value and a boolean to check if the value has been set.

func (*CreateModerationResponseResultsInnerCategoryScores) GetSexualOk

GetSexualOk returns a tuple with the Sexual field value and a boolean to check if the value has been set.

func (*CreateModerationResponseResultsInnerCategoryScores) GetViolence

GetViolence returns the Violence field value

func (*CreateModerationResponseResultsInnerCategoryScores) GetViolenceGraphic

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

GetViolenceOk returns a tuple with the Violence field value and a boolean to check if the value has been set.

func (CreateModerationResponseResultsInnerCategoryScores) MarshalJSON

func (*CreateModerationResponseResultsInnerCategoryScores) SetHate

SetHate sets field value

func (*CreateModerationResponseResultsInnerCategoryScores) SetHateThreatening

SetHateThreatening sets field value

func (*CreateModerationResponseResultsInnerCategoryScores) SetSelfHarm

SetSelfHarm sets field value

func (*CreateModerationResponseResultsInnerCategoryScores) SetSexual

SetSexual sets field value

func (*CreateModerationResponseResultsInnerCategoryScores) SetSexualMinors

SetSexualMinors sets field value

func (*CreateModerationResponseResultsInnerCategoryScores) SetViolence

SetViolence sets field value

func (*CreateModerationResponseResultsInnerCategoryScores) SetViolenceGraphic

SetViolenceGraphic sets field value

func (CreateModerationResponseResultsInnerCategoryScores) ToMap

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

GetData returns the Data field value if set, zero value otherwise.

func (*CreateSearchResponse) GetDataOk

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

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

func (o *Engine) GetCreated() int32

GetCreated returns the Created field value If the value is explicit nil, the zero value for int32 will be returned

func (*Engine) GetCreatedOk

func (o *Engine) GetCreatedOk() (*int32, bool)

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) GetId

func (o *Engine) GetId() string

GetId returns the Id field value

func (*Engine) GetIdOk

func (o *Engine) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*Engine) GetObject

func (o *Engine) GetObject() string

GetObject returns the Object field value

func (*Engine) GetObjectOk

func (o *Engine) GetObjectOk() (*string, bool)

GetObjectOk returns a tuple with the Object field value and a boolean to check if the value has been set.

func (*Engine) GetReady

func (o *Engine) GetReady() bool

GetReady returns the Ready field value

func (*Engine) GetReadyOk

func (o *Engine) GetReadyOk() (*bool, bool)

GetReadyOk returns a tuple with the Ready field value and a boolean to check if the value has been set.

func (Engine) MarshalJSON

func (o Engine) MarshalJSON() ([]byte, error)

func (*Engine) SetCreated

func (o *Engine) SetCreated(v int32)

SetCreated sets field value

func (*Engine) SetId

func (o *Engine) SetId(v string)

SetId sets field value

func (*Engine) SetObject

func (o *Engine) SetObject(v string)

SetObject sets field value

func (*Engine) SetReady

func (o *Engine) SetReady(v bool)

SetReady sets field value

func (Engine) ToMap

func (o Engine) ToMap() (map[string]interface{}, error)

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

func (o *FineTune) GetCreatedAt() int32

GetCreatedAt returns the CreatedAt field value

func (*FineTune) GetCreatedAtOk

func (o *FineTune) GetCreatedAtOk() (*int32, bool)

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

func (o *FineTune) GetFineTunedModel() string

GetFineTunedModel returns the FineTunedModel field value If the value is explicit nil, the zero value for string will be returned

func (*FineTune) GetFineTunedModelOk

func (o *FineTune) GetFineTunedModelOk() (*string, bool)

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

func (o *FineTune) GetHyperparams() map[string]interface{}

GetHyperparams returns the Hyperparams field value

func (*FineTune) GetHyperparamsOk

func (o *FineTune) GetHyperparamsOk() (map[string]interface{}, bool)

GetHyperparamsOk returns a tuple with the Hyperparams field value and a boolean to check if the value has been set.

func (*FineTune) GetId

func (o *FineTune) GetId() string

GetId returns the Id field value

func (*FineTune) GetIdOk

func (o *FineTune) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*FineTune) GetModel

func (o *FineTune) GetModel() string

GetModel returns the Model field value

func (*FineTune) GetModelOk

func (o *FineTune) GetModelOk() (*string, bool)

GetModelOk returns a tuple with the Model field value and a boolean to check if the value has been set.

func (*FineTune) GetObject

func (o *FineTune) GetObject() string

GetObject returns the Object field value

func (*FineTune) GetObjectOk

func (o *FineTune) GetObjectOk() (*string, bool)

GetObjectOk returns a tuple with the Object field value and a boolean to check if the value has been set.

func (*FineTune) GetOrganizationId

func (o *FineTune) GetOrganizationId() string

GetOrganizationId returns the OrganizationId field value

func (*FineTune) GetOrganizationIdOk

func (o *FineTune) GetOrganizationIdOk() (*string, bool)

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) GetStatus

func (o *FineTune) GetStatus() string

GetStatus returns the Status field value

func (*FineTune) GetStatusOk

func (o *FineTune) GetStatusOk() (*string, bool)

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

func (o *FineTune) GetUpdatedAt() int32

GetUpdatedAt returns the UpdatedAt field value

func (*FineTune) GetUpdatedAtOk

func (o *FineTune) GetUpdatedAtOk() (*int32, bool)

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) HasEvents

func (o *FineTune) HasEvents() bool

HasEvents returns a boolean if a field has been set.

func (FineTune) MarshalJSON

func (o FineTune) MarshalJSON() ([]byte, error)

func (*FineTune) SetCreatedAt

func (o *FineTune) SetCreatedAt(v int32)

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

func (o *FineTune) SetFineTunedModel(v string)

SetFineTunedModel sets field value

func (*FineTune) SetHyperparams

func (o *FineTune) SetHyperparams(v map[string]interface{})

SetHyperparams sets field value

func (*FineTune) SetId

func (o *FineTune) SetId(v string)

SetId sets field value

func (*FineTune) SetModel

func (o *FineTune) SetModel(v string)

SetModel sets field value

func (*FineTune) SetObject

func (o *FineTune) SetObject(v string)

SetObject sets field value

func (*FineTune) SetOrganizationId

func (o *FineTune) SetOrganizationId(v string)

SetOrganizationId sets field value

func (*FineTune) SetResultFiles

func (o *FineTune) SetResultFiles(v []OpenAIFile)

SetResultFiles sets field value

func (*FineTune) SetStatus

func (o *FineTune) SetStatus(v string)

SetStatus sets field value

func (*FineTune) SetTrainingFiles

func (o *FineTune) SetTrainingFiles(v []OpenAIFile)

SetTrainingFiles sets field value

func (*FineTune) SetUpdatedAt

func (o *FineTune) SetUpdatedAt(v int32)

SetUpdatedAt sets field value

func (*FineTune) SetValidationFiles

func (o *FineTune) SetValidationFiles(v []OpenAIFile)

SetValidationFiles sets field value

func (FineTune) ToMap

func (o FineTune) ToMap() (map[string]interface{}, error)

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

type ListEnginesResponse struct {
	Object string   `json:"object"`
	Data   []Engine `json:"data"`
}

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

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

type ListFineTunesResponse struct {
	Object string     `json:"object"`
	Data   []FineTune `json:"data"`
}

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

type ListModelsResponse struct {
	Object string  `json:"object"`
	Data   []Model `json:"data"`
}

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 MappedNullable interface {
	ToMap() (map[string]interface{}, error)
}

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

func NewModel(id string, object string, created int32, ownedBy string) *Model

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

func (o *Model) GetCreated() int32

GetCreated returns the Created field value

func (*Model) GetCreatedOk

func (o *Model) GetCreatedOk() (*int32, bool)

GetCreatedOk returns a tuple with the Created field value and a boolean to check if the value has been set.

func (*Model) GetId

func (o *Model) GetId() string

GetId returns the Id field value

func (*Model) GetIdOk

func (o *Model) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*Model) GetObject

func (o *Model) GetObject() string

GetObject returns the Object field value

func (*Model) GetObjectOk

func (o *Model) GetObjectOk() (*string, bool)

GetObjectOk returns a tuple with the Object field value and a boolean to check if the value has been set.

func (*Model) GetOwnedBy

func (o *Model) GetOwnedBy() string

GetOwnedBy returns the OwnedBy field value

func (*Model) GetOwnedByOk

func (o *Model) GetOwnedByOk() (*string, bool)

GetOwnedByOk returns a tuple with the OwnedBy field value and a boolean to check if the value has been set.

func (Model) MarshalJSON

func (o Model) MarshalJSON() ([]byte, error)

func (*Model) SetCreated

func (o *Model) SetCreated(v int32)

SetCreated sets field value

func (*Model) SetId

func (o *Model) SetId(v string)

SetId sets field value

func (*Model) SetObject

func (o *Model) SetObject(v string)

SetObject sets field value

func (*Model) SetOwnedBy

func (o *Model) SetOwnedBy(v string)

SetOwnedBy sets field value

func (Model) ToMap

func (o Model) ToMap() (map[string]interface{}, error)

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 (NullableChatCompletionRequestMessage) Get

func (NullableChatCompletionRequestMessage) IsSet

func (NullableChatCompletionRequestMessage) MarshalJSON

func (v NullableChatCompletionRequestMessage) MarshalJSON() ([]byte, error)

func (*NullableChatCompletionRequestMessage) Set

func (*NullableChatCompletionRequestMessage) UnmarshalJSON

func (v *NullableChatCompletionRequestMessage) UnmarshalJSON(src []byte) error

func (*NullableChatCompletionRequestMessage) Unset

type NullableChatCompletionResponseMessage

type NullableChatCompletionResponseMessage struct {
	// contains filtered or unexported fields
}

func (NullableChatCompletionResponseMessage) Get

func (NullableChatCompletionResponseMessage) IsSet

func (NullableChatCompletionResponseMessage) MarshalJSON

func (v NullableChatCompletionResponseMessage) MarshalJSON() ([]byte, error)

func (*NullableChatCompletionResponseMessage) Set

func (*NullableChatCompletionResponseMessage) UnmarshalJSON

func (v *NullableChatCompletionResponseMessage) UnmarshalJSON(src []byte) error

func (*NullableChatCompletionResponseMessage) Unset

type NullableCreateAnswerRequest

type NullableCreateAnswerRequest struct {
	// contains filtered or unexported fields
}

func NewNullableCreateAnswerRequest

func NewNullableCreateAnswerRequest(val *CreateAnswerRequest) *NullableCreateAnswerRequest

func (NullableCreateAnswerRequest) Get

func (NullableCreateAnswerRequest) IsSet

func (NullableCreateAnswerRequest) MarshalJSON

func (v NullableCreateAnswerRequest) MarshalJSON() ([]byte, error)

func (*NullableCreateAnswerRequest) Set

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 (NullableCreateAnswerRequestStop) Get

func (NullableCreateAnswerRequestStop) IsSet

func (NullableCreateAnswerRequestStop) MarshalJSON

func (v NullableCreateAnswerRequestStop) MarshalJSON() ([]byte, error)

func (*NullableCreateAnswerRequestStop) Set

func (*NullableCreateAnswerRequestStop) UnmarshalJSON

func (v *NullableCreateAnswerRequestStop) UnmarshalJSON(src []byte) error

func (*NullableCreateAnswerRequestStop) Unset

type NullableCreateAnswerResponse

type NullableCreateAnswerResponse struct {
	// contains filtered or unexported fields
}

func NewNullableCreateAnswerResponse

func NewNullableCreateAnswerResponse(val *CreateAnswerResponse) *NullableCreateAnswerResponse

func (NullableCreateAnswerResponse) Get

func (NullableCreateAnswerResponse) IsSet

func (NullableCreateAnswerResponse) MarshalJSON

func (v NullableCreateAnswerResponse) MarshalJSON() ([]byte, error)

func (*NullableCreateAnswerResponse) Set

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 (NullableCreateAnswerResponseSelectedDocumentsInner) Get

func (NullableCreateAnswerResponseSelectedDocumentsInner) IsSet

func (NullableCreateAnswerResponseSelectedDocumentsInner) MarshalJSON

func (*NullableCreateAnswerResponseSelectedDocumentsInner) Set

func (*NullableCreateAnswerResponseSelectedDocumentsInner) UnmarshalJSON

func (*NullableCreateAnswerResponseSelectedDocumentsInner) Unset

type NullableCreateChatCompletionRequest

type NullableCreateChatCompletionRequest struct {
	// contains filtered or unexported fields
}

func (NullableCreateChatCompletionRequest) Get

func (NullableCreateChatCompletionRequest) IsSet

func (NullableCreateChatCompletionRequest) MarshalJSON

func (v NullableCreateChatCompletionRequest) MarshalJSON() ([]byte, error)

func (*NullableCreateChatCompletionRequest) Set

func (*NullableCreateChatCompletionRequest) UnmarshalJSON

func (v *NullableCreateChatCompletionRequest) UnmarshalJSON(src []byte) error

func (*NullableCreateChatCompletionRequest) Unset

type NullableCreateChatCompletionRequestStop

type NullableCreateChatCompletionRequestStop struct {
	// contains filtered or unexported fields
}

func (NullableCreateChatCompletionRequestStop) Get

func (NullableCreateChatCompletionRequestStop) IsSet

func (NullableCreateChatCompletionRequestStop) MarshalJSON

func (v NullableCreateChatCompletionRequestStop) MarshalJSON() ([]byte, error)

func (*NullableCreateChatCompletionRequestStop) Set

func (*NullableCreateChatCompletionRequestStop) UnmarshalJSON

func (v *NullableCreateChatCompletionRequestStop) UnmarshalJSON(src []byte) error

func (*NullableCreateChatCompletionRequestStop) Unset

type NullableCreateChatCompletionResponse

type NullableCreateChatCompletionResponse struct {
	// contains filtered or unexported fields
}

func (NullableCreateChatCompletionResponse) Get

func (NullableCreateChatCompletionResponse) IsSet

func (NullableCreateChatCompletionResponse) MarshalJSON

func (v NullableCreateChatCompletionResponse) MarshalJSON() ([]byte, error)

func (*NullableCreateChatCompletionResponse) Set

func (*NullableCreateChatCompletionResponse) UnmarshalJSON

func (v *NullableCreateChatCompletionResponse) UnmarshalJSON(src []byte) error

func (*NullableCreateChatCompletionResponse) Unset

type NullableCreateChatCompletionResponseChoicesInner

type NullableCreateChatCompletionResponseChoicesInner struct {
	// contains filtered or unexported fields
}

func (NullableCreateChatCompletionResponseChoicesInner) Get

func (NullableCreateChatCompletionResponseChoicesInner) IsSet

func (NullableCreateChatCompletionResponseChoicesInner) MarshalJSON

func (*NullableCreateChatCompletionResponseChoicesInner) Set

func (*NullableCreateChatCompletionResponseChoicesInner) UnmarshalJSON

func (*NullableCreateChatCompletionResponseChoicesInner) Unset

type NullableCreateClassificationRequest

type NullableCreateClassificationRequest struct {
	// contains filtered or unexported fields
}

func (NullableCreateClassificationRequest) Get

func (NullableCreateClassificationRequest) IsSet

func (NullableCreateClassificationRequest) MarshalJSON

func (v NullableCreateClassificationRequest) MarshalJSON() ([]byte, error)

func (*NullableCreateClassificationRequest) Set

func (*NullableCreateClassificationRequest) UnmarshalJSON

func (v *NullableCreateClassificationRequest) UnmarshalJSON(src []byte) error

func (*NullableCreateClassificationRequest) Unset

type NullableCreateClassificationResponse

type NullableCreateClassificationResponse struct {
	// contains filtered or unexported fields
}

func (NullableCreateClassificationResponse) Get

func (NullableCreateClassificationResponse) IsSet

func (NullableCreateClassificationResponse) MarshalJSON

func (v NullableCreateClassificationResponse) MarshalJSON() ([]byte, error)

func (*NullableCreateClassificationResponse) Set

func (*NullableCreateClassificationResponse) UnmarshalJSON

func (v *NullableCreateClassificationResponse) UnmarshalJSON(src []byte) error

func (*NullableCreateClassificationResponse) Unset

type NullableCreateClassificationResponseSelectedExamplesInner

type NullableCreateClassificationResponseSelectedExamplesInner struct {
	// contains filtered or unexported fields
}

func (NullableCreateClassificationResponseSelectedExamplesInner) Get

func (NullableCreateClassificationResponseSelectedExamplesInner) IsSet

func (NullableCreateClassificationResponseSelectedExamplesInner) MarshalJSON

func (*NullableCreateClassificationResponseSelectedExamplesInner) Set

func (*NullableCreateClassificationResponseSelectedExamplesInner) UnmarshalJSON

func (*NullableCreateClassificationResponseSelectedExamplesInner) Unset

type NullableCreateCompletionRequest

type NullableCreateCompletionRequest struct {
	// contains filtered or unexported fields
}

func (NullableCreateCompletionRequest) Get

func (NullableCreateCompletionRequest) IsSet

func (NullableCreateCompletionRequest) MarshalJSON

func (v NullableCreateCompletionRequest) MarshalJSON() ([]byte, error)

func (*NullableCreateCompletionRequest) Set

func (*NullableCreateCompletionRequest) UnmarshalJSON

func (v *NullableCreateCompletionRequest) UnmarshalJSON(src []byte) error

func (*NullableCreateCompletionRequest) Unset

type NullableCreateCompletionRequestPrompt

type NullableCreateCompletionRequestPrompt struct {
	// contains filtered or unexported fields
}

func (NullableCreateCompletionRequestPrompt) Get

func (NullableCreateCompletionRequestPrompt) IsSet

func (NullableCreateCompletionRequestPrompt) MarshalJSON

func (v NullableCreateCompletionRequestPrompt) MarshalJSON() ([]byte, error)

func (*NullableCreateCompletionRequestPrompt) Set

func (*NullableCreateCompletionRequestPrompt) UnmarshalJSON

func (v *NullableCreateCompletionRequestPrompt) UnmarshalJSON(src []byte) error

func (*NullableCreateCompletionRequestPrompt) Unset

type NullableCreateCompletionRequestStop

type NullableCreateCompletionRequestStop struct {
	// contains filtered or unexported fields
}

func (NullableCreateCompletionRequestStop) Get

func (NullableCreateCompletionRequestStop) IsSet

func (NullableCreateCompletionRequestStop) MarshalJSON

func (v NullableCreateCompletionRequestStop) MarshalJSON() ([]byte, error)

func (*NullableCreateCompletionRequestStop) Set

func (*NullableCreateCompletionRequestStop) UnmarshalJSON

func (v *NullableCreateCompletionRequestStop) UnmarshalJSON(src []byte) error

func (*NullableCreateCompletionRequestStop) Unset

type NullableCreateCompletionResponse

type NullableCreateCompletionResponse struct {
	// contains filtered or unexported fields
}

func (NullableCreateCompletionResponse) Get

func (NullableCreateCompletionResponse) IsSet

func (NullableCreateCompletionResponse) MarshalJSON

func (v NullableCreateCompletionResponse) MarshalJSON() ([]byte, error)

func (*NullableCreateCompletionResponse) Set

func (*NullableCreateCompletionResponse) UnmarshalJSON

func (v *NullableCreateCompletionResponse) UnmarshalJSON(src []byte) error

func (*NullableCreateCompletionResponse) Unset

type NullableCreateCompletionResponseChoicesInner

type NullableCreateCompletionResponseChoicesInner struct {
	// contains filtered or unexported fields
}

func (NullableCreateCompletionResponseChoicesInner) Get

func (NullableCreateCompletionResponseChoicesInner) IsSet

func (NullableCreateCompletionResponseChoicesInner) MarshalJSON

func (*NullableCreateCompletionResponseChoicesInner) Set

func (*NullableCreateCompletionResponseChoicesInner) UnmarshalJSON

func (*NullableCreateCompletionResponseChoicesInner) Unset

type NullableCreateCompletionResponseChoicesInnerLogprobs

type NullableCreateCompletionResponseChoicesInnerLogprobs struct {
	// contains filtered or unexported fields
}

func (NullableCreateCompletionResponseChoicesInnerLogprobs) Get

func (NullableCreateCompletionResponseChoicesInnerLogprobs) IsSet

func (NullableCreateCompletionResponseChoicesInnerLogprobs) MarshalJSON

func (*NullableCreateCompletionResponseChoicesInnerLogprobs) Set

func (*NullableCreateCompletionResponseChoicesInnerLogprobs) UnmarshalJSON

func (*NullableCreateCompletionResponseChoicesInnerLogprobs) Unset

type NullableCreateCompletionResponseUsage

type NullableCreateCompletionResponseUsage struct {
	// contains filtered or unexported fields
}

func (NullableCreateCompletionResponseUsage) Get

func (NullableCreateCompletionResponseUsage) IsSet

func (NullableCreateCompletionResponseUsage) MarshalJSON

func (v NullableCreateCompletionResponseUsage) MarshalJSON() ([]byte, error)

func (*NullableCreateCompletionResponseUsage) Set

func (*NullableCreateCompletionResponseUsage) UnmarshalJSON

func (v *NullableCreateCompletionResponseUsage) UnmarshalJSON(src []byte) error

func (*NullableCreateCompletionResponseUsage) Unset

type NullableCreateEditRequest

type NullableCreateEditRequest struct {
	// contains filtered or unexported fields
}

func NewNullableCreateEditRequest

func NewNullableCreateEditRequest(val *CreateEditRequest) *NullableCreateEditRequest

func (NullableCreateEditRequest) Get

func (NullableCreateEditRequest) IsSet

func (v NullableCreateEditRequest) IsSet() bool

func (NullableCreateEditRequest) MarshalJSON

func (v NullableCreateEditRequest) MarshalJSON() ([]byte, error)

func (*NullableCreateEditRequest) Set

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 (NullableCreateEditResponse) IsSet

func (v NullableCreateEditResponse) IsSet() bool

func (NullableCreateEditResponse) MarshalJSON

func (v NullableCreateEditResponse) MarshalJSON() ([]byte, error)

func (*NullableCreateEditResponse) Set

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 (NullableCreateEmbeddingRequest) Get

func (NullableCreateEmbeddingRequest) IsSet

func (NullableCreateEmbeddingRequest) MarshalJSON

func (v NullableCreateEmbeddingRequest) MarshalJSON() ([]byte, error)

func (*NullableCreateEmbeddingRequest) Set

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 (NullableCreateEmbeddingRequestInput) Get

func (NullableCreateEmbeddingRequestInput) IsSet

func (NullableCreateEmbeddingRequestInput) MarshalJSON

func (v NullableCreateEmbeddingRequestInput) MarshalJSON() ([]byte, error)

func (*NullableCreateEmbeddingRequestInput) Set

func (*NullableCreateEmbeddingRequestInput) UnmarshalJSON

func (v *NullableCreateEmbeddingRequestInput) UnmarshalJSON(src []byte) error

func (*NullableCreateEmbeddingRequestInput) Unset

type NullableCreateEmbeddingResponse

type NullableCreateEmbeddingResponse struct {
	// contains filtered or unexported fields
}

func (NullableCreateEmbeddingResponse) Get

func (NullableCreateEmbeddingResponse) IsSet

func (NullableCreateEmbeddingResponse) MarshalJSON

func (v NullableCreateEmbeddingResponse) MarshalJSON() ([]byte, error)

func (*NullableCreateEmbeddingResponse) Set

func (*NullableCreateEmbeddingResponse) UnmarshalJSON

func (v *NullableCreateEmbeddingResponse) UnmarshalJSON(src []byte) error

func (*NullableCreateEmbeddingResponse) Unset

type NullableCreateEmbeddingResponseDataInner

type NullableCreateEmbeddingResponseDataInner struct {
	// contains filtered or unexported fields
}

func (NullableCreateEmbeddingResponseDataInner) Get

func (NullableCreateEmbeddingResponseDataInner) IsSet

func (NullableCreateEmbeddingResponseDataInner) MarshalJSON

func (*NullableCreateEmbeddingResponseDataInner) Set

func (*NullableCreateEmbeddingResponseDataInner) UnmarshalJSON

func (v *NullableCreateEmbeddingResponseDataInner) UnmarshalJSON(src []byte) error

func (*NullableCreateEmbeddingResponseDataInner) Unset

type NullableCreateEmbeddingResponseUsage

type NullableCreateEmbeddingResponseUsage struct {
	// contains filtered or unexported fields
}

func (NullableCreateEmbeddingResponseUsage) Get

func (NullableCreateEmbeddingResponseUsage) IsSet

func (NullableCreateEmbeddingResponseUsage) MarshalJSON

func (v NullableCreateEmbeddingResponseUsage) MarshalJSON() ([]byte, error)

func (*NullableCreateEmbeddingResponseUsage) Set

func (*NullableCreateEmbeddingResponseUsage) UnmarshalJSON

func (v *NullableCreateEmbeddingResponseUsage) UnmarshalJSON(src []byte) error

func (*NullableCreateEmbeddingResponseUsage) Unset

type NullableCreateFineTuneRequest

type NullableCreateFineTuneRequest struct {
	// contains filtered or unexported fields
}

func (NullableCreateFineTuneRequest) Get

func (NullableCreateFineTuneRequest) IsSet

func (NullableCreateFineTuneRequest) MarshalJSON

func (v NullableCreateFineTuneRequest) MarshalJSON() ([]byte, error)

func (*NullableCreateFineTuneRequest) Set

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 (NullableCreateImageRequest) IsSet

func (v NullableCreateImageRequest) IsSet() bool

func (NullableCreateImageRequest) MarshalJSON

func (v NullableCreateImageRequest) MarshalJSON() ([]byte, error)

func (*NullableCreateImageRequest) Set

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 (NullableCreateModerationRequest) Get

func (NullableCreateModerationRequest) IsSet

func (NullableCreateModerationRequest) MarshalJSON

func (v NullableCreateModerationRequest) MarshalJSON() ([]byte, error)

func (*NullableCreateModerationRequest) Set

func (*NullableCreateModerationRequest) UnmarshalJSON

func (v *NullableCreateModerationRequest) UnmarshalJSON(src []byte) error

func (*NullableCreateModerationRequest) Unset

type NullableCreateModerationRequestInput

type NullableCreateModerationRequestInput struct {
	// contains filtered or unexported fields
}

func (NullableCreateModerationRequestInput) Get

func (NullableCreateModerationRequestInput) IsSet

func (NullableCreateModerationRequestInput) MarshalJSON

func (v NullableCreateModerationRequestInput) MarshalJSON() ([]byte, error)

func (*NullableCreateModerationRequestInput) Set

func (*NullableCreateModerationRequestInput) UnmarshalJSON

func (v *NullableCreateModerationRequestInput) UnmarshalJSON(src []byte) error

func (*NullableCreateModerationRequestInput) Unset

type NullableCreateModerationResponse

type NullableCreateModerationResponse struct {
	// contains filtered or unexported fields
}

func (NullableCreateModerationResponse) Get

func (NullableCreateModerationResponse) IsSet

func (NullableCreateModerationResponse) MarshalJSON

func (v NullableCreateModerationResponse) MarshalJSON() ([]byte, error)

func (*NullableCreateModerationResponse) Set

func (*NullableCreateModerationResponse) UnmarshalJSON

func (v *NullableCreateModerationResponse) UnmarshalJSON(src []byte) error

func (*NullableCreateModerationResponse) Unset

type NullableCreateModerationResponseResultsInner

type NullableCreateModerationResponseResultsInner struct {
	// contains filtered or unexported fields
}

func (NullableCreateModerationResponseResultsInner) Get

func (NullableCreateModerationResponseResultsInner) IsSet

func (NullableCreateModerationResponseResultsInner) MarshalJSON

func (*NullableCreateModerationResponseResultsInner) Set

func (*NullableCreateModerationResponseResultsInner) UnmarshalJSON

func (*NullableCreateModerationResponseResultsInner) Unset

type NullableCreateModerationResponseResultsInnerCategories

type NullableCreateModerationResponseResultsInnerCategories struct {
	// contains filtered or unexported fields
}

func (NullableCreateModerationResponseResultsInnerCategories) Get

func (NullableCreateModerationResponseResultsInnerCategories) IsSet

func (NullableCreateModerationResponseResultsInnerCategories) MarshalJSON

func (*NullableCreateModerationResponseResultsInnerCategories) Set

func (*NullableCreateModerationResponseResultsInnerCategories) UnmarshalJSON

func (*NullableCreateModerationResponseResultsInnerCategories) Unset

type NullableCreateModerationResponseResultsInnerCategoryScores

type NullableCreateModerationResponseResultsInnerCategoryScores struct {
	// contains filtered or unexported fields
}

func (NullableCreateModerationResponseResultsInnerCategoryScores) Get

func (NullableCreateModerationResponseResultsInnerCategoryScores) IsSet

func (NullableCreateModerationResponseResultsInnerCategoryScores) MarshalJSON

func (*NullableCreateModerationResponseResultsInnerCategoryScores) Set

func (*NullableCreateModerationResponseResultsInnerCategoryScores) UnmarshalJSON

func (*NullableCreateModerationResponseResultsInnerCategoryScores) Unset

type NullableCreateSearchRequest

type NullableCreateSearchRequest struct {
	// contains filtered or unexported fields
}

func NewNullableCreateSearchRequest

func NewNullableCreateSearchRequest(val *CreateSearchRequest) *NullableCreateSearchRequest

func (NullableCreateSearchRequest) Get

func (NullableCreateSearchRequest) IsSet

func (NullableCreateSearchRequest) MarshalJSON

func (v NullableCreateSearchRequest) MarshalJSON() ([]byte, error)

func (*NullableCreateSearchRequest) Set

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 (NullableCreateSearchResponse) IsSet

func (NullableCreateSearchResponse) MarshalJSON

func (v NullableCreateSearchResponse) MarshalJSON() ([]byte, error)

func (*NullableCreateSearchResponse) Set

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 (NullableCreateSearchResponseDataInner) Get

func (NullableCreateSearchResponseDataInner) IsSet

func (NullableCreateSearchResponseDataInner) MarshalJSON

func (v NullableCreateSearchResponseDataInner) MarshalJSON() ([]byte, error)

func (*NullableCreateSearchResponseDataInner) Set

func (*NullableCreateSearchResponseDataInner) UnmarshalJSON

func (v *NullableCreateSearchResponseDataInner) UnmarshalJSON(src []byte) error

func (*NullableCreateSearchResponseDataInner) Unset

type NullableCreateTranscriptionResponse

type NullableCreateTranscriptionResponse struct {
	// contains filtered or unexported fields
}

func (NullableCreateTranscriptionResponse) Get

func (NullableCreateTranscriptionResponse) IsSet

func (NullableCreateTranscriptionResponse) MarshalJSON

func (v NullableCreateTranscriptionResponse) MarshalJSON() ([]byte, error)

func (*NullableCreateTranscriptionResponse) Set

func (*NullableCreateTranscriptionResponse) UnmarshalJSON

func (v *NullableCreateTranscriptionResponse) UnmarshalJSON(src []byte) error

func (*NullableCreateTranscriptionResponse) Unset

type NullableCreateTranslationResponse

type NullableCreateTranslationResponse struct {
	// contains filtered or unexported fields
}

func (NullableCreateTranslationResponse) Get

func (NullableCreateTranslationResponse) IsSet

func (NullableCreateTranslationResponse) MarshalJSON

func (v NullableCreateTranslationResponse) MarshalJSON() ([]byte, error)

func (*NullableCreateTranslationResponse) Set

func (*NullableCreateTranslationResponse) UnmarshalJSON

func (v *NullableCreateTranslationResponse) UnmarshalJSON(src []byte) error

func (*NullableCreateTranslationResponse) Unset

type NullableDeleteFileResponse

type NullableDeleteFileResponse struct {
	// contains filtered or unexported fields
}

func NewNullableDeleteFileResponse

func NewNullableDeleteFileResponse(val *DeleteFileResponse) *NullableDeleteFileResponse

func (NullableDeleteFileResponse) Get

func (NullableDeleteFileResponse) IsSet

func (v NullableDeleteFileResponse) IsSet() bool

func (NullableDeleteFileResponse) MarshalJSON

func (v NullableDeleteFileResponse) MarshalJSON() ([]byte, error)

func (*NullableDeleteFileResponse) Set

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 (NullableDeleteModelResponse) IsSet

func (NullableDeleteModelResponse) MarshalJSON

func (v NullableDeleteModelResponse) MarshalJSON() ([]byte, error)

func (*NullableDeleteModelResponse) Set

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 (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 (NullableImagesResponse) IsSet

func (v NullableImagesResponse) IsSet() bool

func (NullableImagesResponse) MarshalJSON

func (v NullableImagesResponse) MarshalJSON() ([]byte, error)

func (*NullableImagesResponse) Set

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 (NullableImagesResponseDataInner) Get

func (NullableImagesResponseDataInner) IsSet

func (NullableImagesResponseDataInner) MarshalJSON

func (v NullableImagesResponseDataInner) MarshalJSON() ([]byte, error)

func (*NullableImagesResponseDataInner) Set

func (*NullableImagesResponseDataInner) UnmarshalJSON

func (v *NullableImagesResponseDataInner) UnmarshalJSON(src []byte) error

func (*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 (NullableListEnginesResponse) IsSet

func (NullableListEnginesResponse) MarshalJSON

func (v NullableListEnginesResponse) MarshalJSON() ([]byte, error)

func (*NullableListEnginesResponse) Set

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 (NullableListFilesResponse) IsSet

func (v NullableListFilesResponse) IsSet() bool

func (NullableListFilesResponse) MarshalJSON

func (v NullableListFilesResponse) MarshalJSON() ([]byte, error)

func (*NullableListFilesResponse) Set

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 (NullableListFineTuneEventsResponse) Get

func (NullableListFineTuneEventsResponse) IsSet

func (NullableListFineTuneEventsResponse) MarshalJSON

func (v NullableListFineTuneEventsResponse) MarshalJSON() ([]byte, error)

func (*NullableListFineTuneEventsResponse) Set

func (*NullableListFineTuneEventsResponse) UnmarshalJSON

func (v *NullableListFineTuneEventsResponse) UnmarshalJSON(src []byte) error

func (*NullableListFineTuneEventsResponse) Unset

type NullableListFineTunesResponse

type NullableListFineTunesResponse struct {
	// contains filtered or unexported fields
}

func (NullableListFineTunesResponse) Get

func (NullableListFineTunesResponse) IsSet

func (NullableListFineTunesResponse) MarshalJSON

func (v NullableListFineTunesResponse) MarshalJSON() ([]byte, error)

func (*NullableListFineTunesResponse) Set

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 (NullableListModelsResponse) IsSet

func (v NullableListModelsResponse) IsSet() bool

func (NullableListModelsResponse) MarshalJSON

func (v NullableListModelsResponse) MarshalJSON() ([]byte, error)

func (*NullableListModelsResponse) Set

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

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

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

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

Execute executes the request

@return CreateClassificationResponse

Deprecated

func (*OpenAIApiService) CreateCompletion

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

Execute executes the request

@return CreateCompletionResponse

func (*OpenAIApiService) CreateEdit

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

Execute executes the request

@return CreateEditResponse

func (*OpenAIApiService) CreateEmbedding

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

Execute executes the request

@return CreateEmbeddingResponse

func (*OpenAIApiService) CreateFile

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

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

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

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

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

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

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

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

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

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

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

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

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

Execute executes the request

@return ListEnginesResponse

Deprecated

func (*OpenAIApiService) ListFiles

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

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

Execute executes the request

@return ListFineTuneEventsResponse

func (*OpenAIApiService) ListFineTunes

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

Execute executes the request

@return ListFineTunesResponse

func (*OpenAIApiService) ListModels

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

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) GetId

func (o *OpenAIFile) GetId() string

GetId returns the Id field value

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) SetBytes

func (o *OpenAIFile) SetBytes(v int32)

SetBytes sets field value

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) SetId

func (o *OpenAIFile) SetId(v string)

SetId sets field value

func (*OpenAIFile) SetObject

func (o *OpenAIFile) SetObject(v string)

SetObject 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

func (ServerConfigurations) URL

func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error)

URL formats template on a index using given variables

type ServerVariable

type ServerVariable struct {
	Description  string
	DefaultValue string
	EnumValues   []string
}

ServerVariable stores the information about a server variable

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL