Versions in this module Expand all Collapse all v0 v0.1.2 Apr 10, 2023 Changes in this version + func NewBearerAuthClient(serverURL, token string) (*bearerAuthClient, error) + func WithServerURL(ctx context.Context, u *url.URL) context.Context + type CancelFineTuneParams struct + FineTuneID string + type ChatCompletionRequestMessage struct + Content string + Name OptString + Role ChatCompletionRequestMessageRole + func (s *ChatCompletionRequestMessage) Decode(d *jx.Decoder) error + func (s *ChatCompletionRequestMessage) Encode(e *jx.Encoder) + func (s *ChatCompletionRequestMessage) GetContent() string + func (s *ChatCompletionRequestMessage) GetName() OptString + func (s *ChatCompletionRequestMessage) GetRole() ChatCompletionRequestMessageRole + func (s *ChatCompletionRequestMessage) MarshalJSON() ([]byte, error) + func (s *ChatCompletionRequestMessage) SetContent(val string) + func (s *ChatCompletionRequestMessage) SetName(val OptString) + func (s *ChatCompletionRequestMessage) SetRole(val ChatCompletionRequestMessageRole) + func (s *ChatCompletionRequestMessage) UnmarshalJSON(data []byte) error + func (s *ChatCompletionRequestMessage) Validate() error + type ChatCompletionRequestMessageRole string + const ChatCompletionRequestMessageRoleAssistant + const ChatCompletionRequestMessageRoleSystem + const ChatCompletionRequestMessageRoleUser + func (s *ChatCompletionRequestMessageRole) Decode(d *jx.Decoder) error + func (s *ChatCompletionRequestMessageRole) UnmarshalJSON(data []byte) error + func (s *ChatCompletionRequestMessageRole) UnmarshalText(data []byte) error + func (s ChatCompletionRequestMessageRole) Encode(e *jx.Encoder) + func (s ChatCompletionRequestMessageRole) MarshalJSON() ([]byte, error) + func (s ChatCompletionRequestMessageRole) MarshalText() ([]byte, error) + func (s ChatCompletionRequestMessageRole) Validate() error + type ChatCompletionResponseMessage struct + Content string + Role ChatCompletionResponseMessageRole + func (s *ChatCompletionResponseMessage) Decode(d *jx.Decoder) error + func (s *ChatCompletionResponseMessage) Encode(e *jx.Encoder) + func (s *ChatCompletionResponseMessage) GetContent() string + func (s *ChatCompletionResponseMessage) GetRole() ChatCompletionResponseMessageRole + func (s *ChatCompletionResponseMessage) MarshalJSON() ([]byte, error) + func (s *ChatCompletionResponseMessage) SetContent(val string) + func (s *ChatCompletionResponseMessage) SetRole(val ChatCompletionResponseMessageRole) + func (s *ChatCompletionResponseMessage) UnmarshalJSON(data []byte) error + func (s *ChatCompletionResponseMessage) Validate() error + type ChatCompletionResponseMessageRole string + const ChatCompletionResponseMessageRoleAssistant + const ChatCompletionResponseMessageRoleSystem + const ChatCompletionResponseMessageRoleUser + func (s *ChatCompletionResponseMessageRole) Decode(d *jx.Decoder) error + func (s *ChatCompletionResponseMessageRole) UnmarshalJSON(data []byte) error + func (s *ChatCompletionResponseMessageRole) UnmarshalText(data []byte) error + func (s ChatCompletionResponseMessageRole) Encode(e *jx.Encoder) + func (s ChatCompletionResponseMessageRole) MarshalJSON() ([]byte, error) + func (s ChatCompletionResponseMessageRole) MarshalText() ([]byte, error) + func (s ChatCompletionResponseMessageRole) Validate() error + type Client struct + func NewClient(serverURL string, opts ...ClientOption) (*Client, error) + func (c *Client) CancelFineTune(ctx context.Context, params CancelFineTuneParams) (FineTune, error) + func (c *Client) CreateChatCompletion(ctx context.Context, request *CreateChatCompletionRequest) (*CreateChatCompletionResponse, error) + func (c *Client) CreateEdit(ctx context.Context, request *CreateEditRequest) (*CreateEditResponse, error) + func (c *Client) CreateFineTune(ctx context.Context, request *CreateFineTuneRequest) (FineTune, error) + func (c *Client) CreateImage(ctx context.Context, request *CreateImageRequest) (ImagesResponse, error) + func (c *Client) CreateImageEdit(ctx context.Context, request *CreateImageEditRequestForm) (ImagesResponse, error) + func (c *Client) CreateImageVariation(ctx context.Context, request *CreateImageVariationRequestForm) (ImagesResponse, error) + func (c *Client) CreateModeration(ctx context.Context, request *CreateModerationRequest) (*CreateModerationResponse, error) + func (c *Client) DeleteFile(ctx context.Context, params DeleteFileParams) (*DeleteFileResponse, error) + func (c *Client) DeleteModel(ctx context.Context, params DeleteModelParams) (*DeleteModelResponse, error) + func (c *Client) DownloadFile(ctx context.Context, params DownloadFileParams) (string, error) + func (c *Client) ListFiles(ctx context.Context) (*ListFilesResponse, error) + func (c *Client) ListFineTuneEvents(ctx context.Context, params ListFineTuneEventsParams) (*ListFineTuneEventsResponse, error) + func (c *Client) ListFineTunes(ctx context.Context) (*ListFineTunesResponse, error) + func (c *Client) ListModels(ctx context.Context) (*ListModelsResponse, error) + func (c *Client) RetrieveFile(ctx context.Context, params RetrieveFileParams) (OpenAIFile, error) + func (c *Client) RetrieveFineTune(ctx context.Context, params RetrieveFineTuneParams) (FineTune, error) + func (c *Client) RetrieveModel(ctx context.Context, params RetrieveModelParams) (Model, error) + type ClientOption interface + func WithClient(client ht.Client) ClientOption + type CreateChatCompletionRequest struct + FrequencyPenalty OptNilFloat64 + LogitBias OptCreateChatCompletionRequestLogitBias + MaxTokens OptInt + Messages []ChatCompletionRequestMessage + Model string + N OptNilInt + PresencePenalty OptNilFloat64 + Stop OptCreateChatCompletionRequestStop + Stream OptNilBool + Temperature OptNilFloat64 + TopP OptNilFloat64 + User OptString + func (s *CreateChatCompletionRequest) Decode(d *jx.Decoder) error + func (s *CreateChatCompletionRequest) Encode(e *jx.Encoder) + func (s *CreateChatCompletionRequest) GetFrequencyPenalty() OptNilFloat64 + func (s *CreateChatCompletionRequest) GetLogitBias() OptCreateChatCompletionRequestLogitBias + func (s *CreateChatCompletionRequest) GetMaxTokens() OptInt + func (s *CreateChatCompletionRequest) GetMessages() []ChatCompletionRequestMessage + func (s *CreateChatCompletionRequest) GetModel() string + func (s *CreateChatCompletionRequest) GetN() OptNilInt + func (s *CreateChatCompletionRequest) GetPresencePenalty() OptNilFloat64 + func (s *CreateChatCompletionRequest) GetStop() OptCreateChatCompletionRequestStop + func (s *CreateChatCompletionRequest) GetStream() OptNilBool + func (s *CreateChatCompletionRequest) GetTemperature() OptNilFloat64 + func (s *CreateChatCompletionRequest) GetTopP() OptNilFloat64 + func (s *CreateChatCompletionRequest) GetUser() OptString + func (s *CreateChatCompletionRequest) MarshalJSON() ([]byte, error) + func (s *CreateChatCompletionRequest) SetFrequencyPenalty(val OptNilFloat64) + func (s *CreateChatCompletionRequest) SetLogitBias(val OptCreateChatCompletionRequestLogitBias) + func (s *CreateChatCompletionRequest) SetMaxTokens(val OptInt) + func (s *CreateChatCompletionRequest) SetMessages(val []ChatCompletionRequestMessage) + func (s *CreateChatCompletionRequest) SetModel(val string) + func (s *CreateChatCompletionRequest) SetN(val OptNilInt) + func (s *CreateChatCompletionRequest) SetPresencePenalty(val OptNilFloat64) + func (s *CreateChatCompletionRequest) SetStop(val OptCreateChatCompletionRequestStop) + func (s *CreateChatCompletionRequest) SetStream(val OptNilBool) + func (s *CreateChatCompletionRequest) SetTemperature(val OptNilFloat64) + func (s *CreateChatCompletionRequest) SetTopP(val OptNilFloat64) + func (s *CreateChatCompletionRequest) SetUser(val OptString) + func (s *CreateChatCompletionRequest) UnmarshalJSON(data []byte) error + func (s *CreateChatCompletionRequest) Validate() error + type CreateChatCompletionRequestLogitBias struct + func (s *CreateChatCompletionRequestLogitBias) Decode(d *jx.Decoder) error + func (s *CreateChatCompletionRequestLogitBias) Encode(e *jx.Encoder) + func (s *CreateChatCompletionRequestLogitBias) MarshalJSON() ([]byte, error) + func (s *CreateChatCompletionRequestLogitBias) UnmarshalJSON(data []byte) error + type CreateChatCompletionRequestStop struct + Null struct{} + String string + StringArray []string + Type CreateChatCompletionRequestStopType + func NewNullCreateChatCompletionRequestStop(v struct{}) CreateChatCompletionRequestStop + func NewStringArrayCreateChatCompletionRequestStop(v []string) CreateChatCompletionRequestStop + func NewStringCreateChatCompletionRequestStop(v string) CreateChatCompletionRequestStop + func (s *CreateChatCompletionRequestStop) Decode(d *jx.Decoder) error + func (s *CreateChatCompletionRequestStop) SetNull(v struct{}) + func (s *CreateChatCompletionRequestStop) SetString(v string) + func (s *CreateChatCompletionRequestStop) SetStringArray(v []string) + func (s *CreateChatCompletionRequestStop) UnmarshalJSON(data []byte) error + func (s CreateChatCompletionRequestStop) Encode(e *jx.Encoder) + func (s CreateChatCompletionRequestStop) GetNull() (v struct{}, ok bool) + func (s CreateChatCompletionRequestStop) GetString() (v string, ok bool) + func (s CreateChatCompletionRequestStop) GetStringArray() (v []string, ok bool) + func (s CreateChatCompletionRequestStop) IsNull() bool + func (s CreateChatCompletionRequestStop) IsString() bool + func (s CreateChatCompletionRequestStop) IsStringArray() bool + func (s CreateChatCompletionRequestStop) MarshalJSON() ([]byte, error) + func (s CreateChatCompletionRequestStop) Validate() error + type CreateChatCompletionRequestStopType string + const NullCreateChatCompletionRequestStop + const StringArrayCreateChatCompletionRequestStop + const StringCreateChatCompletionRequestStop + type CreateChatCompletionResponse struct + Choices []CreateChatCompletionResponseChoicesItem + Created int + ID string + Model string + Object string + Usage OptCreateChatCompletionResponseUsage + func (s *CreateChatCompletionResponse) Decode(d *jx.Decoder) error + func (s *CreateChatCompletionResponse) Encode(e *jx.Encoder) + func (s *CreateChatCompletionResponse) GetChoices() []CreateChatCompletionResponseChoicesItem + func (s *CreateChatCompletionResponse) GetCreated() int + func (s *CreateChatCompletionResponse) GetID() string + func (s *CreateChatCompletionResponse) GetModel() string + func (s *CreateChatCompletionResponse) GetObject() string + func (s *CreateChatCompletionResponse) GetUsage() OptCreateChatCompletionResponseUsage + func (s *CreateChatCompletionResponse) MarshalJSON() ([]byte, error) + func (s *CreateChatCompletionResponse) SetChoices(val []CreateChatCompletionResponseChoicesItem) + func (s *CreateChatCompletionResponse) SetCreated(val int) + func (s *CreateChatCompletionResponse) SetID(val string) + func (s *CreateChatCompletionResponse) SetModel(val string) + func (s *CreateChatCompletionResponse) SetObject(val string) + func (s *CreateChatCompletionResponse) SetUsage(val OptCreateChatCompletionResponseUsage) + func (s *CreateChatCompletionResponse) UnmarshalJSON(data []byte) error + func (s *CreateChatCompletionResponse) Validate() error + type CreateChatCompletionResponseChoicesItem struct + FinishReason OptString + Index OptInt + Message OptChatCompletionResponseMessage + func (s *CreateChatCompletionResponseChoicesItem) Decode(d *jx.Decoder) error + func (s *CreateChatCompletionResponseChoicesItem) Encode(e *jx.Encoder) + func (s *CreateChatCompletionResponseChoicesItem) GetFinishReason() OptString + func (s *CreateChatCompletionResponseChoicesItem) GetIndex() OptInt + func (s *CreateChatCompletionResponseChoicesItem) GetMessage() OptChatCompletionResponseMessage + func (s *CreateChatCompletionResponseChoicesItem) MarshalJSON() ([]byte, error) + func (s *CreateChatCompletionResponseChoicesItem) SetFinishReason(val OptString) + func (s *CreateChatCompletionResponseChoicesItem) SetIndex(val OptInt) + func (s *CreateChatCompletionResponseChoicesItem) SetMessage(val OptChatCompletionResponseMessage) + func (s *CreateChatCompletionResponseChoicesItem) UnmarshalJSON(data []byte) error + func (s *CreateChatCompletionResponseChoicesItem) Validate() error + type CreateChatCompletionResponseUsage struct + CompletionTokens int + PromptTokens int + TotalTokens int + func (s *CreateChatCompletionResponseUsage) Decode(d *jx.Decoder) error + func (s *CreateChatCompletionResponseUsage) Encode(e *jx.Encoder) + func (s *CreateChatCompletionResponseUsage) GetCompletionTokens() int + func (s *CreateChatCompletionResponseUsage) GetPromptTokens() int + func (s *CreateChatCompletionResponseUsage) GetTotalTokens() int + func (s *CreateChatCompletionResponseUsage) MarshalJSON() ([]byte, error) + func (s *CreateChatCompletionResponseUsage) SetCompletionTokens(val int) + func (s *CreateChatCompletionResponseUsage) SetPromptTokens(val int) + func (s *CreateChatCompletionResponseUsage) SetTotalTokens(val int) + func (s *CreateChatCompletionResponseUsage) UnmarshalJSON(data []byte) error + type CreateEditRequest struct + Input OptNilString + Instruction string + Model string + N OptNilInt + Temperature OptNilFloat64 + TopP OptNilFloat64 + func (s *CreateEditRequest) Decode(d *jx.Decoder) error + func (s *CreateEditRequest) Encode(e *jx.Encoder) + func (s *CreateEditRequest) GetInput() OptNilString + func (s *CreateEditRequest) GetInstruction() string + func (s *CreateEditRequest) GetModel() string + func (s *CreateEditRequest) GetN() OptNilInt + func (s *CreateEditRequest) GetTemperature() OptNilFloat64 + func (s *CreateEditRequest) GetTopP() OptNilFloat64 + func (s *CreateEditRequest) MarshalJSON() ([]byte, error) + func (s *CreateEditRequest) SetInput(val OptNilString) + func (s *CreateEditRequest) SetInstruction(val string) + func (s *CreateEditRequest) SetModel(val string) + func (s *CreateEditRequest) SetN(val OptNilInt) + func (s *CreateEditRequest) SetTemperature(val OptNilFloat64) + func (s *CreateEditRequest) SetTopP(val OptNilFloat64) + func (s *CreateEditRequest) UnmarshalJSON(data []byte) error + func (s *CreateEditRequest) Validate() error + type CreateEditResponse struct + Choices []CreateEditResponseChoicesItem + Created int + Object string + Usage CreateEditResponseUsage + func (s *CreateEditResponse) Decode(d *jx.Decoder) error + func (s *CreateEditResponse) Encode(e *jx.Encoder) + func (s *CreateEditResponse) GetChoices() []CreateEditResponseChoicesItem + func (s *CreateEditResponse) GetCreated() int + func (s *CreateEditResponse) GetObject() string + func (s *CreateEditResponse) GetUsage() CreateEditResponseUsage + func (s *CreateEditResponse) MarshalJSON() ([]byte, error) + func (s *CreateEditResponse) SetChoices(val []CreateEditResponseChoicesItem) + func (s *CreateEditResponse) SetCreated(val int) + func (s *CreateEditResponse) SetObject(val string) + func (s *CreateEditResponse) SetUsage(val CreateEditResponseUsage) + func (s *CreateEditResponse) UnmarshalJSON(data []byte) error + func (s *CreateEditResponse) Validate() error + type CreateEditResponseChoicesItem struct + FinishReason OptString + Index OptInt + Logprobs OptNilCreateEditResponseChoicesItemLogprobs + Text OptString + func (s *CreateEditResponseChoicesItem) Decode(d *jx.Decoder) error + func (s *CreateEditResponseChoicesItem) Encode(e *jx.Encoder) + func (s *CreateEditResponseChoicesItem) GetFinishReason() OptString + func (s *CreateEditResponseChoicesItem) GetIndex() OptInt + func (s *CreateEditResponseChoicesItem) GetLogprobs() OptNilCreateEditResponseChoicesItemLogprobs + func (s *CreateEditResponseChoicesItem) GetText() OptString + func (s *CreateEditResponseChoicesItem) MarshalJSON() ([]byte, error) + func (s *CreateEditResponseChoicesItem) SetFinishReason(val OptString) + func (s *CreateEditResponseChoicesItem) SetIndex(val OptInt) + func (s *CreateEditResponseChoicesItem) SetLogprobs(val OptNilCreateEditResponseChoicesItemLogprobs) + func (s *CreateEditResponseChoicesItem) SetText(val OptString) + func (s *CreateEditResponseChoicesItem) UnmarshalJSON(data []byte) error + func (s *CreateEditResponseChoicesItem) Validate() error + type CreateEditResponseChoicesItemLogprobs struct + TextOffset []int + TokenLogprobs []float64 + Tokens []string + TopLogprobs []CreateEditResponseChoicesItemLogprobsTopLogprobsItem + func (s *CreateEditResponseChoicesItemLogprobs) Decode(d *jx.Decoder) error + func (s *CreateEditResponseChoicesItemLogprobs) Encode(e *jx.Encoder) + func (s *CreateEditResponseChoicesItemLogprobs) GetTextOffset() []int + func (s *CreateEditResponseChoicesItemLogprobs) GetTokenLogprobs() []float64 + func (s *CreateEditResponseChoicesItemLogprobs) GetTokens() []string + func (s *CreateEditResponseChoicesItemLogprobs) GetTopLogprobs() []CreateEditResponseChoicesItemLogprobsTopLogprobsItem + func (s *CreateEditResponseChoicesItemLogprobs) MarshalJSON() ([]byte, error) + func (s *CreateEditResponseChoicesItemLogprobs) SetTextOffset(val []int) + func (s *CreateEditResponseChoicesItemLogprobs) SetTokenLogprobs(val []float64) + func (s *CreateEditResponseChoicesItemLogprobs) SetTokens(val []string) + func (s *CreateEditResponseChoicesItemLogprobs) SetTopLogprobs(val []CreateEditResponseChoicesItemLogprobsTopLogprobsItem) + func (s *CreateEditResponseChoicesItemLogprobs) UnmarshalJSON(data []byte) error + func (s *CreateEditResponseChoicesItemLogprobs) Validate() error + type CreateEditResponseChoicesItemLogprobsTopLogprobsItem struct + func (s *CreateEditResponseChoicesItemLogprobsTopLogprobsItem) Decode(d *jx.Decoder) error + func (s *CreateEditResponseChoicesItemLogprobsTopLogprobsItem) Encode(e *jx.Encoder) + func (s *CreateEditResponseChoicesItemLogprobsTopLogprobsItem) MarshalJSON() ([]byte, error) + func (s *CreateEditResponseChoicesItemLogprobsTopLogprobsItem) UnmarshalJSON(data []byte) error + type CreateEditResponseUsage struct + CompletionTokens int + PromptTokens int + TotalTokens int + func (s *CreateEditResponseUsage) Decode(d *jx.Decoder) error + func (s *CreateEditResponseUsage) Encode(e *jx.Encoder) + func (s *CreateEditResponseUsage) GetCompletionTokens() int + func (s *CreateEditResponseUsage) GetPromptTokens() int + func (s *CreateEditResponseUsage) GetTotalTokens() int + func (s *CreateEditResponseUsage) MarshalJSON() ([]byte, error) + func (s *CreateEditResponseUsage) SetCompletionTokens(val int) + func (s *CreateEditResponseUsage) SetPromptTokens(val int) + func (s *CreateEditResponseUsage) SetTotalTokens(val int) + func (s *CreateEditResponseUsage) UnmarshalJSON(data []byte) error + type CreateFineTuneRequest struct + BatchSize OptNilInt + ClassificationBetas OptNilFloat64Array + ClassificationNClasses OptNilInt + ClassificationPositiveClass OptNilString + ComputeClassificationMetrics OptNilBool + LearningRateMultiplier OptNilFloat64 + Model OptNilString + NEpochs OptNilInt + PromptLossWeight OptNilFloat64 + Suffix OptNilString + TrainingFile string + ValidationFile OptNilString + func (s *CreateFineTuneRequest) Decode(d *jx.Decoder) error + func (s *CreateFineTuneRequest) Encode(e *jx.Encoder) + func (s *CreateFineTuneRequest) GetBatchSize() OptNilInt + func (s *CreateFineTuneRequest) GetClassificationBetas() OptNilFloat64Array + func (s *CreateFineTuneRequest) GetClassificationNClasses() OptNilInt + func (s *CreateFineTuneRequest) GetClassificationPositiveClass() OptNilString + func (s *CreateFineTuneRequest) GetComputeClassificationMetrics() OptNilBool + func (s *CreateFineTuneRequest) GetLearningRateMultiplier() OptNilFloat64 + func (s *CreateFineTuneRequest) GetModel() OptNilString + func (s *CreateFineTuneRequest) GetNEpochs() OptNilInt + func (s *CreateFineTuneRequest) GetPromptLossWeight() OptNilFloat64 + func (s *CreateFineTuneRequest) GetSuffix() OptNilString + func (s *CreateFineTuneRequest) GetTrainingFile() string + func (s *CreateFineTuneRequest) GetValidationFile() OptNilString + func (s *CreateFineTuneRequest) MarshalJSON() ([]byte, error) + func (s *CreateFineTuneRequest) SetBatchSize(val OptNilInt) + func (s *CreateFineTuneRequest) SetClassificationBetas(val OptNilFloat64Array) + func (s *CreateFineTuneRequest) SetClassificationNClasses(val OptNilInt) + func (s *CreateFineTuneRequest) SetClassificationPositiveClass(val OptNilString) + func (s *CreateFineTuneRequest) SetComputeClassificationMetrics(val OptNilBool) + func (s *CreateFineTuneRequest) SetLearningRateMultiplier(val OptNilFloat64) + func (s *CreateFineTuneRequest) SetModel(val OptNilString) + func (s *CreateFineTuneRequest) SetNEpochs(val OptNilInt) + func (s *CreateFineTuneRequest) SetPromptLossWeight(val OptNilFloat64) + func (s *CreateFineTuneRequest) SetSuffix(val OptNilString) + func (s *CreateFineTuneRequest) SetTrainingFile(val string) + func (s *CreateFineTuneRequest) SetValidationFile(val OptNilString) + func (s *CreateFineTuneRequest) UnmarshalJSON(data []byte) error + func (s *CreateFineTuneRequest) Validate() error + type CreateImageEditRequest struct + Image string + Mask OptString + N OptNilInt + Prompt string + ResponseFormat OptNilCreateImageEditRequestResponseFormat + Size OptNilCreateImageEditRequestSize + User OptString + func (s *CreateImageEditRequest) GetImage() string + func (s *CreateImageEditRequest) GetMask() OptString + func (s *CreateImageEditRequest) GetN() OptNilInt + func (s *CreateImageEditRequest) GetPrompt() string + func (s *CreateImageEditRequest) GetResponseFormat() OptNilCreateImageEditRequestResponseFormat + func (s *CreateImageEditRequest) GetSize() OptNilCreateImageEditRequestSize + func (s *CreateImageEditRequest) GetUser() OptString + func (s *CreateImageEditRequest) SetImage(val string) + func (s *CreateImageEditRequest) SetMask(val OptString) + func (s *CreateImageEditRequest) SetN(val OptNilInt) + func (s *CreateImageEditRequest) SetPrompt(val string) + func (s *CreateImageEditRequest) SetResponseFormat(val OptNilCreateImageEditRequestResponseFormat) + func (s *CreateImageEditRequest) SetSize(val OptNilCreateImageEditRequestSize) + func (s *CreateImageEditRequest) SetUser(val OptString) + func (s *CreateImageEditRequest) Validate() error + type CreateImageEditRequestForm struct + Image ht.MultipartFile + Mask OptMultipartFile + N OptNilInt + Prompt string + ResponseFormat OptNilCreateImageEditRequestResponseFormat + Size OptNilCreateImageEditRequestSize + User OptString + func (s *CreateImageEditRequestForm) GetImage() ht.MultipartFile + func (s *CreateImageEditRequestForm) GetMask() OptMultipartFile + func (s *CreateImageEditRequestForm) GetN() OptNilInt + func (s *CreateImageEditRequestForm) GetPrompt() string + func (s *CreateImageEditRequestForm) GetResponseFormat() OptNilCreateImageEditRequestResponseFormat + func (s *CreateImageEditRequestForm) GetSize() OptNilCreateImageEditRequestSize + func (s *CreateImageEditRequestForm) GetUser() OptString + func (s *CreateImageEditRequestForm) SetImage(val ht.MultipartFile) + func (s *CreateImageEditRequestForm) SetMask(val OptMultipartFile) + func (s *CreateImageEditRequestForm) SetN(val OptNilInt) + func (s *CreateImageEditRequestForm) SetPrompt(val string) + func (s *CreateImageEditRequestForm) SetResponseFormat(val OptNilCreateImageEditRequestResponseFormat) + func (s *CreateImageEditRequestForm) SetSize(val OptNilCreateImageEditRequestSize) + func (s *CreateImageEditRequestForm) SetUser(val OptString) + func (s *CreateImageEditRequestForm) Validate() error + type CreateImageEditRequestResponseFormat string + const CreateImageEditRequestResponseFormatB64JSON + const CreateImageEditRequestResponseFormatURL + func (s *CreateImageEditRequestResponseFormat) UnmarshalText(data []byte) error + func (s CreateImageEditRequestResponseFormat) MarshalText() ([]byte, error) + func (s CreateImageEditRequestResponseFormat) Validate() error + type CreateImageEditRequestSize string + const CreateImageEditRequestSize1024x1024 + const CreateImageEditRequestSize256x256 + const CreateImageEditRequestSize512x512 + func (s *CreateImageEditRequestSize) UnmarshalText(data []byte) error + func (s CreateImageEditRequestSize) MarshalText() ([]byte, error) + func (s CreateImageEditRequestSize) Validate() error + type CreateImageRequest struct + N OptNilInt + Prompt string + ResponseFormat OptNilCreateImageRequestResponseFormat + Size OptNilCreateImageRequestSize + User OptString + func (s *CreateImageRequest) Decode(d *jx.Decoder) error + func (s *CreateImageRequest) Encode(e *jx.Encoder) + func (s *CreateImageRequest) GetN() OptNilInt + func (s *CreateImageRequest) GetPrompt() string + func (s *CreateImageRequest) GetResponseFormat() OptNilCreateImageRequestResponseFormat + func (s *CreateImageRequest) GetSize() OptNilCreateImageRequestSize + func (s *CreateImageRequest) GetUser() OptString + func (s *CreateImageRequest) MarshalJSON() ([]byte, error) + func (s *CreateImageRequest) SetN(val OptNilInt) + func (s *CreateImageRequest) SetPrompt(val string) + func (s *CreateImageRequest) SetResponseFormat(val OptNilCreateImageRequestResponseFormat) + func (s *CreateImageRequest) SetSize(val OptNilCreateImageRequestSize) + func (s *CreateImageRequest) SetUser(val OptString) + func (s *CreateImageRequest) UnmarshalJSON(data []byte) error + func (s *CreateImageRequest) Validate() error + type CreateImageRequestResponseFormat string + const CreateImageRequestResponseFormatB64JSON + const CreateImageRequestResponseFormatURL + func (s *CreateImageRequestResponseFormat) Decode(d *jx.Decoder) error + func (s *CreateImageRequestResponseFormat) UnmarshalJSON(data []byte) error + func (s *CreateImageRequestResponseFormat) UnmarshalText(data []byte) error + func (s CreateImageRequestResponseFormat) Encode(e *jx.Encoder) + func (s CreateImageRequestResponseFormat) MarshalJSON() ([]byte, error) + func (s CreateImageRequestResponseFormat) MarshalText() ([]byte, error) + func (s CreateImageRequestResponseFormat) Validate() error + type CreateImageRequestSize string + const CreateImageRequestSize1024x1024 + const CreateImageRequestSize256x256 + const CreateImageRequestSize512x512 + func (s *CreateImageRequestSize) Decode(d *jx.Decoder) error + func (s *CreateImageRequestSize) UnmarshalJSON(data []byte) error + func (s *CreateImageRequestSize) UnmarshalText(data []byte) error + func (s CreateImageRequestSize) Encode(e *jx.Encoder) + func (s CreateImageRequestSize) MarshalJSON() ([]byte, error) + func (s CreateImageRequestSize) MarshalText() ([]byte, error) + func (s CreateImageRequestSize) Validate() error + type CreateImageVariationRequest struct + Image string + N OptNilInt + ResponseFormat OptNilCreateImageVariationRequestResponseFormat + Size OptNilCreateImageVariationRequestSize + User OptString + func (s *CreateImageVariationRequest) GetImage() string + func (s *CreateImageVariationRequest) GetN() OptNilInt + func (s *CreateImageVariationRequest) GetResponseFormat() OptNilCreateImageVariationRequestResponseFormat + func (s *CreateImageVariationRequest) GetSize() OptNilCreateImageVariationRequestSize + func (s *CreateImageVariationRequest) GetUser() OptString + func (s *CreateImageVariationRequest) SetImage(val string) + func (s *CreateImageVariationRequest) SetN(val OptNilInt) + func (s *CreateImageVariationRequest) SetResponseFormat(val OptNilCreateImageVariationRequestResponseFormat) + func (s *CreateImageVariationRequest) SetSize(val OptNilCreateImageVariationRequestSize) + func (s *CreateImageVariationRequest) SetUser(val OptString) + func (s *CreateImageVariationRequest) Validate() error + type CreateImageVariationRequestForm struct + Image ht.MultipartFile + N OptNilInt + ResponseFormat OptNilCreateImageVariationRequestResponseFormat + Size OptNilCreateImageVariationRequestSize + User OptString + func (s *CreateImageVariationRequestForm) GetImage() ht.MultipartFile + func (s *CreateImageVariationRequestForm) GetN() OptNilInt + func (s *CreateImageVariationRequestForm) GetResponseFormat() OptNilCreateImageVariationRequestResponseFormat + func (s *CreateImageVariationRequestForm) GetSize() OptNilCreateImageVariationRequestSize + func (s *CreateImageVariationRequestForm) GetUser() OptString + func (s *CreateImageVariationRequestForm) SetImage(val ht.MultipartFile) + func (s *CreateImageVariationRequestForm) SetN(val OptNilInt) + func (s *CreateImageVariationRequestForm) SetResponseFormat(val OptNilCreateImageVariationRequestResponseFormat) + func (s *CreateImageVariationRequestForm) SetSize(val OptNilCreateImageVariationRequestSize) + func (s *CreateImageVariationRequestForm) SetUser(val OptString) + func (s *CreateImageVariationRequestForm) Validate() error + type CreateImageVariationRequestResponseFormat string + const CreateImageVariationRequestResponseFormatB64JSON + const CreateImageVariationRequestResponseFormatURL + func (s *CreateImageVariationRequestResponseFormat) UnmarshalText(data []byte) error + func (s CreateImageVariationRequestResponseFormat) MarshalText() ([]byte, error) + func (s CreateImageVariationRequestResponseFormat) Validate() error + type CreateImageVariationRequestSize string + const CreateImageVariationRequestSize1024x1024 + const CreateImageVariationRequestSize256x256 + const CreateImageVariationRequestSize512x512 + func (s *CreateImageVariationRequestSize) UnmarshalText(data []byte) error + func (s CreateImageVariationRequestSize) MarshalText() ([]byte, error) + func (s CreateImageVariationRequestSize) Validate() error + type CreateModerationRequest struct + Input CreateModerationRequestInput + Model OptString + func (s *CreateModerationRequest) Decode(d *jx.Decoder) error + func (s *CreateModerationRequest) Encode(e *jx.Encoder) + func (s *CreateModerationRequest) GetInput() CreateModerationRequestInput + func (s *CreateModerationRequest) GetModel() OptString + func (s *CreateModerationRequest) MarshalJSON() ([]byte, error) + func (s *CreateModerationRequest) SetInput(val CreateModerationRequestInput) + func (s *CreateModerationRequest) SetModel(val OptString) + func (s *CreateModerationRequest) UnmarshalJSON(data []byte) error + func (s *CreateModerationRequest) Validate() error + type CreateModerationRequestInput struct + String string + StringArray []string + Type CreateModerationRequestInputType + func NewStringArrayCreateModerationRequestInput(v []string) CreateModerationRequestInput + func NewStringCreateModerationRequestInput(v string) CreateModerationRequestInput + func (s *CreateModerationRequestInput) Decode(d *jx.Decoder) error + func (s *CreateModerationRequestInput) SetString(v string) + func (s *CreateModerationRequestInput) SetStringArray(v []string) + func (s *CreateModerationRequestInput) UnmarshalJSON(data []byte) error + func (s CreateModerationRequestInput) Encode(e *jx.Encoder) + func (s CreateModerationRequestInput) GetString() (v string, ok bool) + func (s CreateModerationRequestInput) GetStringArray() (v []string, ok bool) + func (s CreateModerationRequestInput) IsString() bool + func (s CreateModerationRequestInput) IsStringArray() bool + func (s CreateModerationRequestInput) MarshalJSON() ([]byte, error) + func (s CreateModerationRequestInput) Validate() error + type CreateModerationRequestInputType string + const StringArrayCreateModerationRequestInput + const StringCreateModerationRequestInput + type CreateModerationResponse struct + ID string + Model string + Results []CreateModerationResponseResultsItem + func (s *CreateModerationResponse) Decode(d *jx.Decoder) error + func (s *CreateModerationResponse) Encode(e *jx.Encoder) + func (s *CreateModerationResponse) GetID() string + func (s *CreateModerationResponse) GetModel() string + func (s *CreateModerationResponse) GetResults() []CreateModerationResponseResultsItem + func (s *CreateModerationResponse) MarshalJSON() ([]byte, error) + func (s *CreateModerationResponse) SetID(val string) + func (s *CreateModerationResponse) SetModel(val string) + func (s *CreateModerationResponse) SetResults(val []CreateModerationResponseResultsItem) + func (s *CreateModerationResponse) UnmarshalJSON(data []byte) error + func (s *CreateModerationResponse) Validate() error + type CreateModerationResponseResultsItem struct + Categories CreateModerationResponseResultsItemCategories + CategoryScores CreateModerationResponseResultsItemCategoryScores + Flagged bool + func (s *CreateModerationResponseResultsItem) Decode(d *jx.Decoder) error + func (s *CreateModerationResponseResultsItem) Encode(e *jx.Encoder) + func (s *CreateModerationResponseResultsItem) GetCategories() CreateModerationResponseResultsItemCategories + func (s *CreateModerationResponseResultsItem) GetCategoryScores() CreateModerationResponseResultsItemCategoryScores + func (s *CreateModerationResponseResultsItem) GetFlagged() bool + func (s *CreateModerationResponseResultsItem) MarshalJSON() ([]byte, error) + func (s *CreateModerationResponseResultsItem) SetCategories(val CreateModerationResponseResultsItemCategories) + func (s *CreateModerationResponseResultsItem) SetCategoryScores(val CreateModerationResponseResultsItemCategoryScores) + func (s *CreateModerationResponseResultsItem) SetFlagged(val bool) + func (s *CreateModerationResponseResultsItem) UnmarshalJSON(data []byte) error + func (s *CreateModerationResponseResultsItem) Validate() error + type CreateModerationResponseResultsItemCategories struct + Hate bool + HateSlashThreatening bool + SelfMinusHarm bool + Sexual bool + SexualSlashMinors bool + Violence bool + ViolenceSlashGraphic bool + func (s *CreateModerationResponseResultsItemCategories) Decode(d *jx.Decoder) error + func (s *CreateModerationResponseResultsItemCategories) Encode(e *jx.Encoder) + func (s *CreateModerationResponseResultsItemCategories) GetHate() bool + func (s *CreateModerationResponseResultsItemCategories) GetHateSlashThreatening() bool + func (s *CreateModerationResponseResultsItemCategories) GetSelfMinusHarm() bool + func (s *CreateModerationResponseResultsItemCategories) GetSexual() bool + func (s *CreateModerationResponseResultsItemCategories) GetSexualSlashMinors() bool + func (s *CreateModerationResponseResultsItemCategories) GetViolence() bool + func (s *CreateModerationResponseResultsItemCategories) GetViolenceSlashGraphic() bool + func (s *CreateModerationResponseResultsItemCategories) MarshalJSON() ([]byte, error) + func (s *CreateModerationResponseResultsItemCategories) SetHate(val bool) + func (s *CreateModerationResponseResultsItemCategories) SetHateSlashThreatening(val bool) + func (s *CreateModerationResponseResultsItemCategories) SetSelfMinusHarm(val bool) + func (s *CreateModerationResponseResultsItemCategories) SetSexual(val bool) + func (s *CreateModerationResponseResultsItemCategories) SetSexualSlashMinors(val bool) + func (s *CreateModerationResponseResultsItemCategories) SetViolence(val bool) + func (s *CreateModerationResponseResultsItemCategories) SetViolenceSlashGraphic(val bool) + func (s *CreateModerationResponseResultsItemCategories) UnmarshalJSON(data []byte) error + type CreateModerationResponseResultsItemCategoryScores struct + Hate float64 + HateSlashThreatening float64 + SelfMinusHarm float64 + Sexual float64 + SexualSlashMinors float64 + Violence float64 + ViolenceSlashGraphic float64 + func (s *CreateModerationResponseResultsItemCategoryScores) Decode(d *jx.Decoder) error + func (s *CreateModerationResponseResultsItemCategoryScores) Encode(e *jx.Encoder) + func (s *CreateModerationResponseResultsItemCategoryScores) GetHate() float64 + func (s *CreateModerationResponseResultsItemCategoryScores) GetHateSlashThreatening() float64 + func (s *CreateModerationResponseResultsItemCategoryScores) GetSelfMinusHarm() float64 + func (s *CreateModerationResponseResultsItemCategoryScores) GetSexual() float64 + func (s *CreateModerationResponseResultsItemCategoryScores) GetSexualSlashMinors() float64 + func (s *CreateModerationResponseResultsItemCategoryScores) GetViolence() float64 + func (s *CreateModerationResponseResultsItemCategoryScores) GetViolenceSlashGraphic() float64 + func (s *CreateModerationResponseResultsItemCategoryScores) MarshalJSON() ([]byte, error) + func (s *CreateModerationResponseResultsItemCategoryScores) SetHate(val float64) + func (s *CreateModerationResponseResultsItemCategoryScores) SetHateSlashThreatening(val float64) + func (s *CreateModerationResponseResultsItemCategoryScores) SetSelfMinusHarm(val float64) + func (s *CreateModerationResponseResultsItemCategoryScores) SetSexual(val float64) + func (s *CreateModerationResponseResultsItemCategoryScores) SetSexualSlashMinors(val float64) + func (s *CreateModerationResponseResultsItemCategoryScores) SetViolence(val float64) + func (s *CreateModerationResponseResultsItemCategoryScores) SetViolenceSlashGraphic(val float64) + func (s *CreateModerationResponseResultsItemCategoryScores) UnmarshalJSON(data []byte) error + func (s *CreateModerationResponseResultsItemCategoryScores) Validate() error + type DeleteFileParams struct + FileID string + type DeleteFileResponse struct + Deleted bool + ID string + Object string + func (s *DeleteFileResponse) Decode(d *jx.Decoder) error + func (s *DeleteFileResponse) Encode(e *jx.Encoder) + func (s *DeleteFileResponse) GetDeleted() bool + func (s *DeleteFileResponse) GetID() string + func (s *DeleteFileResponse) GetObject() string + func (s *DeleteFileResponse) MarshalJSON() ([]byte, error) + func (s *DeleteFileResponse) SetDeleted(val bool) + func (s *DeleteFileResponse) SetID(val string) + func (s *DeleteFileResponse) SetObject(val string) + func (s *DeleteFileResponse) UnmarshalJSON(data []byte) error + type DeleteModelParams struct + Model string + type DeleteModelResponse struct + Deleted bool + ID string + Object string + func (s *DeleteModelResponse) Decode(d *jx.Decoder) error + func (s *DeleteModelResponse) Encode(e *jx.Encoder) + func (s *DeleteModelResponse) GetDeleted() bool + func (s *DeleteModelResponse) GetID() string + func (s *DeleteModelResponse) GetObject() string + func (s *DeleteModelResponse) MarshalJSON() ([]byte, error) + func (s *DeleteModelResponse) SetDeleted(val bool) + func (s *DeleteModelResponse) SetID(val string) + func (s *DeleteModelResponse) SetObject(val string) + func (s *DeleteModelResponse) UnmarshalJSON(data []byte) error + type DownloadFileParams struct + FileID string + type ErrorHandler = ogenerrors.ErrorHandler + type FineTune jx.Raw + func (s *FineTune) Decode(d *jx.Decoder) error + func (s *FineTune) UnmarshalJSON(data []byte) error + func (s FineTune) Encode(e *jx.Encoder) + func (s FineTune) MarshalJSON() ([]byte, error) + type FineTuneEvent jx.Raw + func (s *FineTuneEvent) Decode(d *jx.Decoder) error + func (s *FineTuneEvent) UnmarshalJSON(data []byte) error + func (s FineTuneEvent) Encode(e *jx.Encoder) + func (s FineTuneEvent) MarshalJSON() ([]byte, error) + type Handler interface + CancelFineTune func(ctx context.Context, params CancelFineTuneParams) (FineTune, error) + CreateChatCompletion func(ctx context.Context, req *CreateChatCompletionRequest) (*CreateChatCompletionResponse, error) + CreateEdit func(ctx context.Context, req *CreateEditRequest) (*CreateEditResponse, error) + CreateFineTune func(ctx context.Context, req *CreateFineTuneRequest) (FineTune, error) + CreateImage func(ctx context.Context, req *CreateImageRequest) (ImagesResponse, error) + CreateImageEdit func(ctx context.Context, req *CreateImageEditRequestForm) (ImagesResponse, error) + CreateImageVariation func(ctx context.Context, req *CreateImageVariationRequestForm) (ImagesResponse, error) + CreateModeration func(ctx context.Context, req *CreateModerationRequest) (*CreateModerationResponse, error) + DeleteFile func(ctx context.Context, params DeleteFileParams) (*DeleteFileResponse, error) + DeleteModel func(ctx context.Context, params DeleteModelParams) (*DeleteModelResponse, error) + DownloadFile func(ctx context.Context, params DownloadFileParams) (string, error) + ListFiles func(ctx context.Context) (*ListFilesResponse, error) + ListFineTuneEvents func(ctx context.Context, params ListFineTuneEventsParams) (*ListFineTuneEventsResponse, error) + ListFineTunes func(ctx context.Context) (*ListFineTunesResponse, error) + ListModels func(ctx context.Context) (*ListModelsResponse, error) + RetrieveFile func(ctx context.Context, params RetrieveFileParams) (OpenAIFile, error) + RetrieveFineTune func(ctx context.Context, params RetrieveFineTuneParams) (FineTune, error) + RetrieveModel func(ctx context.Context, params RetrieveModelParams) (Model, error) + type ImagesResponse jx.Raw + func (s *ImagesResponse) Decode(d *jx.Decoder) error + func (s *ImagesResponse) UnmarshalJSON(data []byte) error + func (s ImagesResponse) Encode(e *jx.Encoder) + func (s ImagesResponse) MarshalJSON() ([]byte, error) + type ListFilesResponse struct + Data []OpenAIFile + Object string + func (s *ListFilesResponse) Decode(d *jx.Decoder) error + func (s *ListFilesResponse) Encode(e *jx.Encoder) + func (s *ListFilesResponse) GetData() []OpenAIFile + func (s *ListFilesResponse) GetObject() string + func (s *ListFilesResponse) MarshalJSON() ([]byte, error) + func (s *ListFilesResponse) SetData(val []OpenAIFile) + func (s *ListFilesResponse) SetObject(val string) + func (s *ListFilesResponse) UnmarshalJSON(data []byte) error + func (s *ListFilesResponse) Validate() error + type ListFineTuneEventsParams struct + FineTuneID string + Stream OptBool + type ListFineTuneEventsResponse struct + Data []FineTuneEvent + Object string + func (s *ListFineTuneEventsResponse) Decode(d *jx.Decoder) error + func (s *ListFineTuneEventsResponse) Encode(e *jx.Encoder) + func (s *ListFineTuneEventsResponse) GetData() []FineTuneEvent + func (s *ListFineTuneEventsResponse) GetObject() string + func (s *ListFineTuneEventsResponse) MarshalJSON() ([]byte, error) + func (s *ListFineTuneEventsResponse) SetData(val []FineTuneEvent) + func (s *ListFineTuneEventsResponse) SetObject(val string) + func (s *ListFineTuneEventsResponse) UnmarshalJSON(data []byte) error + func (s *ListFineTuneEventsResponse) Validate() error + type ListFineTunesResponse struct + Data []FineTune + Object string + func (s *ListFineTunesResponse) Decode(d *jx.Decoder) error + func (s *ListFineTunesResponse) Encode(e *jx.Encoder) + func (s *ListFineTunesResponse) GetData() []FineTune + func (s *ListFineTunesResponse) GetObject() string + func (s *ListFineTunesResponse) MarshalJSON() ([]byte, error) + func (s *ListFineTunesResponse) SetData(val []FineTune) + func (s *ListFineTunesResponse) SetObject(val string) + func (s *ListFineTunesResponse) UnmarshalJSON(data []byte) error + func (s *ListFineTunesResponse) Validate() error + type ListModelsResponse struct + Data []Model + Object string + func (s *ListModelsResponse) Decode(d *jx.Decoder) error + func (s *ListModelsResponse) Encode(e *jx.Encoder) + func (s *ListModelsResponse) GetData() []Model + func (s *ListModelsResponse) GetObject() string + func (s *ListModelsResponse) MarshalJSON() ([]byte, error) + func (s *ListModelsResponse) SetData(val []Model) + func (s *ListModelsResponse) SetObject(val string) + func (s *ListModelsResponse) UnmarshalJSON(data []byte) error + func (s *ListModelsResponse) Validate() error + type Middleware = middleware.Middleware + type Model jx.Raw + func (s *Model) Decode(d *jx.Decoder) error + func (s *Model) UnmarshalJSON(data []byte) error + func (s Model) Encode(e *jx.Encoder) + func (s Model) MarshalJSON() ([]byte, error) + type OpenAIFile jx.Raw + func (s *OpenAIFile) Decode(d *jx.Decoder) error + func (s *OpenAIFile) UnmarshalJSON(data []byte) error + func (s OpenAIFile) Encode(e *jx.Encoder) + func (s OpenAIFile) MarshalJSON() ([]byte, error) + type OptBool struct + Set bool + Value bool + func NewOptBool(v bool) OptBool + func (o *OptBool) Reset() + func (o *OptBool) SetTo(v bool) + func (o OptBool) Get() (v bool, ok bool) + func (o OptBool) IsSet() bool + func (o OptBool) Or(d bool) bool + type OptChatCompletionResponseMessage struct + Set bool + Value ChatCompletionResponseMessage + func NewOptChatCompletionResponseMessage(v ChatCompletionResponseMessage) OptChatCompletionResponseMessage + func (o *OptChatCompletionResponseMessage) Decode(d *jx.Decoder) error + func (o *OptChatCompletionResponseMessage) Reset() + func (o *OptChatCompletionResponseMessage) SetTo(v ChatCompletionResponseMessage) + func (o OptChatCompletionResponseMessage) Encode(e *jx.Encoder) + func (o OptChatCompletionResponseMessage) Get() (v ChatCompletionResponseMessage, ok bool) + func (o OptChatCompletionResponseMessage) IsSet() bool + func (o OptChatCompletionResponseMessage) Or(d ChatCompletionResponseMessage) ChatCompletionResponseMessage + func (s *OptChatCompletionResponseMessage) UnmarshalJSON(data []byte) error + func (s OptChatCompletionResponseMessage) MarshalJSON() ([]byte, error) + type OptCreateChatCompletionRequestLogitBias struct + Set bool + Value *CreateChatCompletionRequestLogitBias + func NewOptCreateChatCompletionRequestLogitBias(v *CreateChatCompletionRequestLogitBias) OptCreateChatCompletionRequestLogitBias + func (o *OptCreateChatCompletionRequestLogitBias) Decode(d *jx.Decoder) error + func (o *OptCreateChatCompletionRequestLogitBias) Reset() + func (o *OptCreateChatCompletionRequestLogitBias) SetTo(v *CreateChatCompletionRequestLogitBias) + func (o OptCreateChatCompletionRequestLogitBias) Encode(e *jx.Encoder) + func (o OptCreateChatCompletionRequestLogitBias) Get() (v *CreateChatCompletionRequestLogitBias, ok bool) + func (o OptCreateChatCompletionRequestLogitBias) IsSet() bool + func (o OptCreateChatCompletionRequestLogitBias) Or(d *CreateChatCompletionRequestLogitBias) *CreateChatCompletionRequestLogitBias + func (s *OptCreateChatCompletionRequestLogitBias) UnmarshalJSON(data []byte) error + func (s OptCreateChatCompletionRequestLogitBias) MarshalJSON() ([]byte, error) + type OptCreateChatCompletionRequestStop struct + Set bool + Value CreateChatCompletionRequestStop + func NewOptCreateChatCompletionRequestStop(v CreateChatCompletionRequestStop) OptCreateChatCompletionRequestStop + func (o *OptCreateChatCompletionRequestStop) Decode(d *jx.Decoder) error + func (o *OptCreateChatCompletionRequestStop) Reset() + func (o *OptCreateChatCompletionRequestStop) SetTo(v CreateChatCompletionRequestStop) + func (o OptCreateChatCompletionRequestStop) Encode(e *jx.Encoder) + func (o OptCreateChatCompletionRequestStop) Get() (v CreateChatCompletionRequestStop, ok bool) + func (o OptCreateChatCompletionRequestStop) IsSet() bool + func (o OptCreateChatCompletionRequestStop) Or(d CreateChatCompletionRequestStop) CreateChatCompletionRequestStop + func (s *OptCreateChatCompletionRequestStop) UnmarshalJSON(data []byte) error + func (s OptCreateChatCompletionRequestStop) MarshalJSON() ([]byte, error) + type OptCreateChatCompletionResponseUsage struct + Set bool + Value CreateChatCompletionResponseUsage + func NewOptCreateChatCompletionResponseUsage(v CreateChatCompletionResponseUsage) OptCreateChatCompletionResponseUsage + func (o *OptCreateChatCompletionResponseUsage) Decode(d *jx.Decoder) error + func (o *OptCreateChatCompletionResponseUsage) Reset() + func (o *OptCreateChatCompletionResponseUsage) SetTo(v CreateChatCompletionResponseUsage) + func (o OptCreateChatCompletionResponseUsage) Encode(e *jx.Encoder) + func (o OptCreateChatCompletionResponseUsage) Get() (v CreateChatCompletionResponseUsage, ok bool) + func (o OptCreateChatCompletionResponseUsage) IsSet() bool + func (o OptCreateChatCompletionResponseUsage) Or(d CreateChatCompletionResponseUsage) CreateChatCompletionResponseUsage + func (s *OptCreateChatCompletionResponseUsage) UnmarshalJSON(data []byte) error + func (s OptCreateChatCompletionResponseUsage) MarshalJSON() ([]byte, error) + type OptInt struct + Set bool + Value int + func NewOptInt(v int) OptInt + func (o *OptInt) Decode(d *jx.Decoder) error + func (o *OptInt) Reset() + func (o *OptInt) SetTo(v int) + func (o OptInt) Encode(e *jx.Encoder) + func (o OptInt) Get() (v int, ok bool) + func (o OptInt) IsSet() bool + func (o OptInt) Or(d int) int + func (s *OptInt) UnmarshalJSON(data []byte) error + func (s OptInt) MarshalJSON() ([]byte, error) + type OptMultipartFile struct + Set bool + Value ht.MultipartFile + func NewOptMultipartFile(v ht.MultipartFile) OptMultipartFile + func (o *OptMultipartFile) Reset() + func (o *OptMultipartFile) SetTo(v ht.MultipartFile) + func (o OptMultipartFile) Get() (v ht.MultipartFile, ok bool) + func (o OptMultipartFile) IsSet() bool + func (o OptMultipartFile) Or(d ht.MultipartFile) ht.MultipartFile + type OptNilBool struct + Null bool + Set bool + Value bool + func NewOptNilBool(v bool) OptNilBool + func (o *OptNilBool) Decode(d *jx.Decoder) error + func (o *OptNilBool) Reset() + func (o *OptNilBool) SetTo(v bool) + func (o *OptNilBool) SetToNull() + func (o OptNilBool) Encode(e *jx.Encoder) + func (o OptNilBool) Get() (v bool, ok bool) + func (o OptNilBool) IsNull() bool + func (o OptNilBool) IsSet() bool + func (o OptNilBool) Or(d bool) bool + func (s *OptNilBool) UnmarshalJSON(data []byte) error + func (s OptNilBool) MarshalJSON() ([]byte, error) + type OptNilCreateEditResponseChoicesItemLogprobs struct + Null bool + Set bool + Value CreateEditResponseChoicesItemLogprobs + func NewOptNilCreateEditResponseChoicesItemLogprobs(v CreateEditResponseChoicesItemLogprobs) OptNilCreateEditResponseChoicesItemLogprobs + func (o *OptNilCreateEditResponseChoicesItemLogprobs) Decode(d *jx.Decoder) error + func (o *OptNilCreateEditResponseChoicesItemLogprobs) Reset() + func (o *OptNilCreateEditResponseChoicesItemLogprobs) SetTo(v CreateEditResponseChoicesItemLogprobs) + func (o *OptNilCreateEditResponseChoicesItemLogprobs) SetToNull() + func (o OptNilCreateEditResponseChoicesItemLogprobs) Encode(e *jx.Encoder) + func (o OptNilCreateEditResponseChoicesItemLogprobs) Get() (v CreateEditResponseChoicesItemLogprobs, ok bool) + func (o OptNilCreateEditResponseChoicesItemLogprobs) IsNull() bool + func (o OptNilCreateEditResponseChoicesItemLogprobs) IsSet() bool + func (o OptNilCreateEditResponseChoicesItemLogprobs) Or(d CreateEditResponseChoicesItemLogprobs) CreateEditResponseChoicesItemLogprobs + func (s *OptNilCreateEditResponseChoicesItemLogprobs) UnmarshalJSON(data []byte) error + func (s OptNilCreateEditResponseChoicesItemLogprobs) MarshalJSON() ([]byte, error) + type OptNilCreateImageEditRequestResponseFormat struct + Null bool + Set bool + Value CreateImageEditRequestResponseFormat + func NewOptNilCreateImageEditRequestResponseFormat(v CreateImageEditRequestResponseFormat) OptNilCreateImageEditRequestResponseFormat + func (o *OptNilCreateImageEditRequestResponseFormat) Reset() + func (o *OptNilCreateImageEditRequestResponseFormat) SetTo(v CreateImageEditRequestResponseFormat) + func (o *OptNilCreateImageEditRequestResponseFormat) SetToNull() + func (o OptNilCreateImageEditRequestResponseFormat) Get() (v CreateImageEditRequestResponseFormat, ok bool) + func (o OptNilCreateImageEditRequestResponseFormat) IsNull() bool + func (o OptNilCreateImageEditRequestResponseFormat) IsSet() bool + func (o OptNilCreateImageEditRequestResponseFormat) Or(d CreateImageEditRequestResponseFormat) CreateImageEditRequestResponseFormat + type OptNilCreateImageEditRequestSize struct + Null bool + Set bool + Value CreateImageEditRequestSize + func NewOptNilCreateImageEditRequestSize(v CreateImageEditRequestSize) OptNilCreateImageEditRequestSize + func (o *OptNilCreateImageEditRequestSize) Reset() + func (o *OptNilCreateImageEditRequestSize) SetTo(v CreateImageEditRequestSize) + func (o *OptNilCreateImageEditRequestSize) SetToNull() + func (o OptNilCreateImageEditRequestSize) Get() (v CreateImageEditRequestSize, ok bool) + func (o OptNilCreateImageEditRequestSize) IsNull() bool + func (o OptNilCreateImageEditRequestSize) IsSet() bool + func (o OptNilCreateImageEditRequestSize) Or(d CreateImageEditRequestSize) CreateImageEditRequestSize + type OptNilCreateImageRequestResponseFormat struct + Null bool + Set bool + Value CreateImageRequestResponseFormat + func NewOptNilCreateImageRequestResponseFormat(v CreateImageRequestResponseFormat) OptNilCreateImageRequestResponseFormat + func (o *OptNilCreateImageRequestResponseFormat) Decode(d *jx.Decoder) error + func (o *OptNilCreateImageRequestResponseFormat) Reset() + func (o *OptNilCreateImageRequestResponseFormat) SetTo(v CreateImageRequestResponseFormat) + func (o *OptNilCreateImageRequestResponseFormat) SetToNull() + func (o OptNilCreateImageRequestResponseFormat) Encode(e *jx.Encoder) + func (o OptNilCreateImageRequestResponseFormat) Get() (v CreateImageRequestResponseFormat, ok bool) + func (o OptNilCreateImageRequestResponseFormat) IsNull() bool + func (o OptNilCreateImageRequestResponseFormat) IsSet() bool + func (o OptNilCreateImageRequestResponseFormat) Or(d CreateImageRequestResponseFormat) CreateImageRequestResponseFormat + func (s *OptNilCreateImageRequestResponseFormat) UnmarshalJSON(data []byte) error + func (s OptNilCreateImageRequestResponseFormat) MarshalJSON() ([]byte, error) + type OptNilCreateImageRequestSize struct + Null bool + Set bool + Value CreateImageRequestSize + func NewOptNilCreateImageRequestSize(v CreateImageRequestSize) OptNilCreateImageRequestSize + func (o *OptNilCreateImageRequestSize) Decode(d *jx.Decoder) error + func (o *OptNilCreateImageRequestSize) Reset() + func (o *OptNilCreateImageRequestSize) SetTo(v CreateImageRequestSize) + func (o *OptNilCreateImageRequestSize) SetToNull() + func (o OptNilCreateImageRequestSize) Encode(e *jx.Encoder) + func (o OptNilCreateImageRequestSize) Get() (v CreateImageRequestSize, ok bool) + func (o OptNilCreateImageRequestSize) IsNull() bool + func (o OptNilCreateImageRequestSize) IsSet() bool + func (o OptNilCreateImageRequestSize) Or(d CreateImageRequestSize) CreateImageRequestSize + func (s *OptNilCreateImageRequestSize) UnmarshalJSON(data []byte) error + func (s OptNilCreateImageRequestSize) MarshalJSON() ([]byte, error) + type OptNilCreateImageVariationRequestResponseFormat struct + Null bool + Set bool + Value CreateImageVariationRequestResponseFormat + func NewOptNilCreateImageVariationRequestResponseFormat(v CreateImageVariationRequestResponseFormat) OptNilCreateImageVariationRequestResponseFormat + func (o *OptNilCreateImageVariationRequestResponseFormat) Reset() + func (o *OptNilCreateImageVariationRequestResponseFormat) SetTo(v CreateImageVariationRequestResponseFormat) + func (o *OptNilCreateImageVariationRequestResponseFormat) SetToNull() + func (o OptNilCreateImageVariationRequestResponseFormat) Get() (v CreateImageVariationRequestResponseFormat, ok bool) + func (o OptNilCreateImageVariationRequestResponseFormat) IsNull() bool + func (o OptNilCreateImageVariationRequestResponseFormat) IsSet() bool + func (o OptNilCreateImageVariationRequestResponseFormat) Or(d CreateImageVariationRequestResponseFormat) CreateImageVariationRequestResponseFormat + type OptNilCreateImageVariationRequestSize struct + Null bool + Set bool + Value CreateImageVariationRequestSize + func NewOptNilCreateImageVariationRequestSize(v CreateImageVariationRequestSize) OptNilCreateImageVariationRequestSize + func (o *OptNilCreateImageVariationRequestSize) Reset() + func (o *OptNilCreateImageVariationRequestSize) SetTo(v CreateImageVariationRequestSize) + func (o *OptNilCreateImageVariationRequestSize) SetToNull() + func (o OptNilCreateImageVariationRequestSize) Get() (v CreateImageVariationRequestSize, ok bool) + func (o OptNilCreateImageVariationRequestSize) IsNull() bool + func (o OptNilCreateImageVariationRequestSize) IsSet() bool + func (o OptNilCreateImageVariationRequestSize) Or(d CreateImageVariationRequestSize) CreateImageVariationRequestSize + type OptNilFloat64 struct + Null bool + Set bool + Value float64 + func NewOptNilFloat64(v float64) OptNilFloat64 + func (o *OptNilFloat64) Decode(d *jx.Decoder) error + func (o *OptNilFloat64) Reset() + func (o *OptNilFloat64) SetTo(v float64) + func (o *OptNilFloat64) SetToNull() + func (o OptNilFloat64) Encode(e *jx.Encoder) + func (o OptNilFloat64) Get() (v float64, ok bool) + func (o OptNilFloat64) IsNull() bool + func (o OptNilFloat64) IsSet() bool + func (o OptNilFloat64) Or(d float64) float64 + func (s *OptNilFloat64) UnmarshalJSON(data []byte) error + func (s OptNilFloat64) MarshalJSON() ([]byte, error) + type OptNilFloat64Array struct + Null bool + Set bool + Value []float64 + func NewOptNilFloat64Array(v []float64) OptNilFloat64Array + func (o *OptNilFloat64Array) Decode(d *jx.Decoder) error + func (o *OptNilFloat64Array) Reset() + func (o *OptNilFloat64Array) SetTo(v []float64) + func (o *OptNilFloat64Array) SetToNull() + func (o OptNilFloat64Array) Encode(e *jx.Encoder) + func (o OptNilFloat64Array) Get() (v []float64, ok bool) + func (o OptNilFloat64Array) IsNull() bool + func (o OptNilFloat64Array) IsSet() bool + func (o OptNilFloat64Array) Or(d []float64) []float64 + func (s *OptNilFloat64Array) UnmarshalJSON(data []byte) error + func (s OptNilFloat64Array) MarshalJSON() ([]byte, error) + type OptNilInt struct + Null bool + Set bool + Value int + func NewOptNilInt(v int) OptNilInt + func (o *OptNilInt) Decode(d *jx.Decoder) error + func (o *OptNilInt) Reset() + func (o *OptNilInt) SetTo(v int) + func (o *OptNilInt) SetToNull() + func (o OptNilInt) Encode(e *jx.Encoder) + func (o OptNilInt) Get() (v int, ok bool) + func (o OptNilInt) IsNull() bool + func (o OptNilInt) IsSet() bool + func (o OptNilInt) Or(d int) int + func (s *OptNilInt) UnmarshalJSON(data []byte) error + func (s OptNilInt) MarshalJSON() ([]byte, error) + type OptNilString struct + Null bool + Set bool + Value string + func NewOptNilString(v string) OptNilString + func (o *OptNilString) Decode(d *jx.Decoder) error + func (o *OptNilString) Reset() + func (o *OptNilString) SetTo(v string) + func (o *OptNilString) SetToNull() + func (o OptNilString) Encode(e *jx.Encoder) + func (o OptNilString) Get() (v string, ok bool) + func (o OptNilString) IsNull() bool + func (o OptNilString) IsSet() bool + func (o OptNilString) Or(d string) string + func (s *OptNilString) UnmarshalJSON(data []byte) error + func (s OptNilString) MarshalJSON() ([]byte, error) + type OptString struct + Set bool + Value string + func NewOptString(v string) OptString + func (o *OptString) Decode(d *jx.Decoder) error + func (o *OptString) Reset() + func (o *OptString) SetTo(v string) + func (o OptString) Encode(e *jx.Encoder) + func (o OptString) Get() (v string, ok bool) + func (o OptString) IsSet() bool + func (o OptString) Or(d string) string + func (s *OptString) UnmarshalJSON(data []byte) error + func (s OptString) MarshalJSON() ([]byte, error) + type Option interface + func WithMeterProvider(provider metric.MeterProvider) Option + func WithTracerProvider(provider trace.TracerProvider) Option + type RetrieveFileParams struct + FileID string + type RetrieveFineTuneParams struct + FineTuneID string + type RetrieveModelParams struct + Model string + type Route struct + func (r Route) Args() []string + func (r Route) Name() string + func (r Route) OperationID() string + func (r Route) PathPattern() string + type Server struct + func NewServer(h Handler, opts ...ServerOption) (*Server, error) + func (s *Server) FindPath(method string, u *url.URL) (r Route, _ bool) + func (s *Server) FindRoute(method, path string) (Route, bool) + func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) + type ServerOption interface + func WithErrorHandler(h ErrorHandler) ServerOption + func WithMaxMultipartMemory(max int64) ServerOption + func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) ServerOption + func WithMiddleware(m ...Middleware) ServerOption + func WithNotFound(notFound http.HandlerFunc) ServerOption + func WithPathPrefix(prefix string) ServerOption + type UnimplementedHandler struct + func (UnimplementedHandler) CancelFineTune(ctx context.Context, params CancelFineTuneParams) (r FineTune, _ error) + func (UnimplementedHandler) CreateChatCompletion(ctx context.Context, req *CreateChatCompletionRequest) (r *CreateChatCompletionResponse, _ error) + func (UnimplementedHandler) CreateEdit(ctx context.Context, req *CreateEditRequest) (r *CreateEditResponse, _ error) + func (UnimplementedHandler) CreateFineTune(ctx context.Context, req *CreateFineTuneRequest) (r FineTune, _ error) + func (UnimplementedHandler) CreateImage(ctx context.Context, req *CreateImageRequest) (r ImagesResponse, _ error) + func (UnimplementedHandler) CreateImageEdit(ctx context.Context, req *CreateImageEditRequestForm) (r ImagesResponse, _ error) + func (UnimplementedHandler) CreateImageVariation(ctx context.Context, req *CreateImageVariationRequestForm) (r ImagesResponse, _ error) + func (UnimplementedHandler) CreateModeration(ctx context.Context, req *CreateModerationRequest) (r *CreateModerationResponse, _ error) + func (UnimplementedHandler) DeleteFile(ctx context.Context, params DeleteFileParams) (r *DeleteFileResponse, _ error) + func (UnimplementedHandler) DeleteModel(ctx context.Context, params DeleteModelParams) (r *DeleteModelResponse, _ error) + func (UnimplementedHandler) DownloadFile(ctx context.Context, params DownloadFileParams) (r string, _ error) + func (UnimplementedHandler) ListFiles(ctx context.Context) (r *ListFilesResponse, _ error) + func (UnimplementedHandler) ListFineTuneEvents(ctx context.Context, params ListFineTuneEventsParams) (r *ListFineTuneEventsResponse, _ error) + func (UnimplementedHandler) ListFineTunes(ctx context.Context) (r *ListFineTunesResponse, _ error) + func (UnimplementedHandler) ListModels(ctx context.Context) (r *ListModelsResponse, _ error) + func (UnimplementedHandler) RetrieveFile(ctx context.Context, params RetrieveFileParams) (r OpenAIFile, _ error) + func (UnimplementedHandler) RetrieveFineTune(ctx context.Context, params RetrieveFineTuneParams) (r FineTune, _ error) + func (UnimplementedHandler) RetrieveModel(ctx context.Context, params RetrieveModelParams) (r Model, _ error)