-
-
Notifications
You must be signed in to change notification settings - Fork 46
Home
MarcoDotIO edited this page Mar 1, 2023
·
4 revisions
- ChatRole: Used for selecting who sent the message
- FileStatus: The uploaded status of the file.
- FineTuneEventInfo: The Fine-tune event information type.
- FineTuneStatus: Provides Fine-tune status information about the fine-tune model.
- ImageData: The image type of the image response data.
- ImageResolutions: The image resolution being requested.
- ResponseFormat: The type of image of the response data that will be returned
-
ContentPolicyModels:
Two content moderations models are available:
text-moderation-stable
andtext-moderation-latest
. The default istext-moderation-latest
which will be automatically upgraded over time. This ensures you are always using our most accurate model. If you usetext-moderation-stable
, we will provide advanced notice before updating the model. Accuracy oftext-moderation-stable
may be slightly lower than fortext-moderation-latest
. - OpenAIError: OpenAIKit errors that are thrown depending on the context.
- OpenAIObject: A specific type of object that OpenAI has responded with.
- HTTPMethod: Uses URLRequest to set up a HTTPMethod, and implement default values for the method cases.
- ChatParameters
- CompletionParameters: Parameter struct used for creating GPT3 completions.
- EditParameters: Parameter struct for the Edit endpoint.
- EmbeddingsParameters: Parameter used for the Embeddings endpoint.
- UploadFileParameters: Parameter used for uploading files.
- CreateFineTuneParameters: Parameter struct used for creating Fine-tune jobs.
- ImageEditParameters: Parameter used for creating image edits
- ImageParameters: Parameter used for generating images given a prompt.
- ImageVariationParameters: Parameter struct used for generating image variation(s).
- ContentPolicyParameters: The parameter struct used for the Moderations endpoint
- ChatResponse
- CompletionResponse: Completion Response from OpenAI
- EditResponse: The Edit response sent from OpenAI
- EmbeddingsData: Contains the raw embeddings for the Embeddings endpoint
- EmbeddingsResponse: The response sent by the Embeddings endpoint.
- EmbeddingsUsage: The token usage of the Embeddings endpoint.
- File: The file object used to read file information from the Files endpoint.
- ListFilesResponse: The response object sent by the File endpoint
- FineTune: The fine-tune job object itself that shows information pertaining to the job.
- FineTuneEvent: The struct that lists information pertaining to a Fine-tune job event.
- FineTuneEventsResponse: The response sent by the Fine-tune Event Endpoint
- FineTuneHyperparamters: The hyperparameters used to tweak the Fine-tune model.
- FineTuneTraining: The struct representing each data point within a Fine-tune training file.
- ListFineTuneResponse: The struct sent from the List Fine-tune Endpoint
- ImageResponse: The struct sent by the Images Endpoint
- ListModelResponse: The struct sent by the List Models Endpoint
- Model: The GPT3 models used for text and code completions.
- ModelPermission: Struct containing permissions associated with the model.
- ContentPolicyCategories: The categories flagged by the Moderations endpoint.
- ContentPolicyCategoryScore: The moderation score amount associated with a prompt.
- ContentPolicyResponse: The struct sent from the Moderations endpoint.
- ContentPolicyResult: The result of the moderation check from the Moderations endpoint.
- ChatChoice: The output choice for the Chat Ednpoint.
- ChatMessage: The chat message object used for each chat conversation message.
- Choice: The output completion / edit of the Completions and Edits endpoints.
- Configuration: The configuration object used for the OpenAIKit object to represent the organization of the user.
- DeleteObject: The struct returned from deleting a file or Fine-tune from their associated endpoints.
- FormData: The form query parameter used for submitting images and files with their associated endpoints.
- OpenAIErrorMessage: The struct sent if the request is malformed, or if OpenAI's server isn't functioning correctly.
- OpenAIErrorResponse: The response struct itself when an error is thrown.
- Usage: The amount of tokens used with any GPT3 function.
-
decodeBase64Image(_:):
Input a
Base64
image binaryString
to receive anUIImage
object. -
decodeBase64Image(_:):
Input a
Base64
image binaryString
to receive anNSImage
object. - listModels()
- retrieveModel(modelId:)
- generateCompletion(parameters:)
- generateEdit(parameters:)
- generateChatCompletion(parameters:)
- createImage(parameters:)
- generateImageEdits(parameters:)
- generateImageVariations(parameters:)
- createEmbeddings(parameters:)
- listFiles()
- uploadFile(parameters:)
- deleteFile(fileId:)
- retrieveFile(fileId:)
- retrieveFileContent(fileId:)
- createFineTune(parameters:)
- listFineTunes()
- retrieveFineTune(fineTune:)
- cancelFineTune(fineTune:)
- listFineTuneEvents(fineTune:)
- deleteFineTuneModel(model:)
- checkContentPolicy(parameters:)
-
retrieveJsonLine(_:with:apiKey:):
Used for parsing
.jsonl
files when retrieving fine-tuning files from OpenAI's server. -
decodeUrl(_:with:apiKey:body:method:bodyRequired:formSubmission:):
Decode a
URL
to the typeT
using eitherasyncData()
for the Production Server; or usingdecode()
for the Mock Server.
Generated at 2023-03-04T02:43:47+0000 using swift-doc 1.0.0-rc.1.
Types
- ChatChoice
- ChatMessage
- ChatParameters
- ChatResponse
- ChatRole
- Choice
- CompletionParameters
- CompletionResponse
- Configuration
- ContentPolicyCategories
- ContentPolicyCategoryScore
- ContentPolicyModels
- ContentPolicyParameters
- ContentPolicyResponse
- ContentPolicyResult
- CreateFineTuneParameters
- DeleteObject
- EditParameters
- EditResponse
- EmbeddingsData
- EmbeddingsParameters
- EmbeddingsResponse
- EmbeddingsUsage
- File
- FileStatus
- FineTune
- FineTuneEvent
- FineTuneEventInfo
- FineTuneEventsResponse
- FineTuneHyperparamters
- FineTuneStatus
- FineTuneTraining
- FormData
- HTTPMethod
- ImageData
- ImageEditParameters
- ImageParameters
- ImageResolutions
- ImageResponse
- ImageVariationParameters
- ListFilesResponse
- ListFineTuneResponse
- ListModelResponse
- Model
- ModelPermission
- OpenAIError
- OpenAIErrorMessage
- OpenAIErrorResponse
- OpenAIObject
- ResponseFormat
- UploadFileParameters
- Usage
Global Functions
- cancelFineTune(fineTune:)
- checkContentPolicy(parameters:)
- createEmbeddings(parameters:)
- createFineTune(parameters:)
- createImage(parameters:)
- decodeBase64Image(_:)
- decodeUrl(_:with:apiKey:body:method:bodyRequired:formSubmission:)
- deleteFile(fileId:)
- deleteFineTuneModel(model:)
- generateChatCompletion(parameters:)
- generateCompletion(parameters:)
- generateEdit(parameters:)
- generateImageEdits(parameters:)
- generateImageVariations(parameters:)
- listFiles()
- listFineTuneEvents(fineTune:)
- listFineTunes()
- listModels()
- retrieveFile(fileId:)
- retrieveFileContent(fileId:)
- retrieveFineTune(fineTune:)
- retrieveJsonLine(_:with:apiKey:)
- retrieveModel(modelId:)
- uploadFile(parameters:)