gitextract_yuqwznni/ ├── .github/ │ ├── FUNDING.yml │ ├── ISSUE_TEMPLATE/ │ │ ├── bug_report.yml │ │ └── feature_request.yml │ ├── pull_request_template.md │ └── workflows/ │ └── swift.yml ├── .gitignore ├── .swiftpm/ │ └── xcode/ │ └── package.xcworkspace/ │ └── contents.xcworkspacedata ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── Examples/ │ ├── iOS_Example/ │ │ ├── iOS_Example/ │ │ │ ├── Assets.xcassets/ │ │ │ │ ├── AccentColor.colorset/ │ │ │ │ │ └── Contents.json │ │ │ │ ├── AppIcon.appiconset/ │ │ │ │ │ └── Contents.json │ │ │ │ └── Contents.json │ │ │ ├── Audio/ │ │ │ │ ├── AudioPlayerViewModel.swift │ │ │ │ └── CreateTranscription.swift │ │ │ ├── Chat/ │ │ │ │ ├── ChatMainView.swift │ │ │ │ ├── CreateChatCompletion.swift │ │ │ │ ├── CreateChatCompletionStreaming.swift │ │ │ │ └── CreateChatFunctionCallExample.swift │ │ │ ├── Completion/ │ │ │ │ ├── CompletionMainView.swift │ │ │ │ └── GenerateCompletionExample.swift │ │ │ ├── Content Policy/ │ │ │ │ └── ContentPolicyExample.swift │ │ │ ├── ContentView.swift │ │ │ ├── Embeddings/ │ │ │ │ └── CreateEmbeddingsExample.swift │ │ │ ├── File/ │ │ │ │ ├── DeleteFileExample.swift │ │ │ │ ├── File/ │ │ │ │ │ └── SampleData.jsonl │ │ │ │ ├── FileDetailsView.swift │ │ │ │ ├── FileMainView.swift │ │ │ │ ├── ListFilesExample.swift │ │ │ │ ├── RetrieveFileContentsExample.swift │ │ │ │ ├── RetrieveFileExample.swift │ │ │ │ └── UploadFileExample.swift │ │ │ ├── Image/ │ │ │ │ ├── EditImageExample.swift │ │ │ │ ├── GenerateImageExample.swift │ │ │ │ ├── GenerateImageVariationsExample.swift │ │ │ │ └── ImageMainView.swift │ │ │ ├── Model/ │ │ │ │ ├── ListModelsExample.swift │ │ │ │ ├── ModelMainView.swift │ │ │ │ └── RetrieveModelExample.swift │ │ │ ├── Preview Content/ │ │ │ │ └── Preview Assets.xcassets/ │ │ │ │ └── Contents.json │ │ │ └── iOS_ExampleApp.swift │ │ └── iOS_Example.xcodeproj/ │ │ ├── project.pbxproj │ │ └── project.xcworkspace/ │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata/ │ │ └── IDEWorkspaceChecks.plist │ ├── macOS_Example/ │ │ ├── macOS_Example/ │ │ │ ├── Assets.xcassets/ │ │ │ │ ├── AccentColor.colorset/ │ │ │ │ │ └── Contents.json │ │ │ │ ├── AppIcon.appiconset/ │ │ │ │ │ └── Contents.json │ │ │ │ └── Contents.json │ │ │ ├── ContentView.swift │ │ │ ├── Preview Content/ │ │ │ │ └── Preview Assets.xcassets/ │ │ │ │ └── Contents.json │ │ │ ├── macOS_Example.entitlements │ │ │ └── macOS_ExampleApp.swift │ │ └── macOS_Example.xcodeproj/ │ │ ├── project.pbxproj │ │ └── project.xcworkspace/ │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata/ │ │ └── IDEWorkspaceChecks.plist │ ├── tvOS_Example/ │ │ ├── tvOS_Example/ │ │ │ ├── Assets.xcassets/ │ │ │ │ ├── AccentColor.colorset/ │ │ │ │ │ └── Contents.json │ │ │ │ ├── App Icon & Top Shelf Image.brandassets/ │ │ │ │ │ ├── App Icon - App Store.imagestack/ │ │ │ │ │ │ ├── Back.imagestacklayer/ │ │ │ │ │ │ │ ├── Content.imageset/ │ │ │ │ │ │ │ │ └── Contents.json │ │ │ │ │ │ │ └── Contents.json │ │ │ │ │ │ ├── Contents.json │ │ │ │ │ │ ├── Front.imagestacklayer/ │ │ │ │ │ │ │ ├── Content.imageset/ │ │ │ │ │ │ │ │ └── Contents.json │ │ │ │ │ │ │ └── Contents.json │ │ │ │ │ │ └── Middle.imagestacklayer/ │ │ │ │ │ │ ├── Content.imageset/ │ │ │ │ │ │ │ └── Contents.json │ │ │ │ │ │ └── Contents.json │ │ │ │ │ ├── App Icon.imagestack/ │ │ │ │ │ │ ├── Back.imagestacklayer/ │ │ │ │ │ │ │ ├── Content.imageset/ │ │ │ │ │ │ │ │ └── Contents.json │ │ │ │ │ │ │ └── Contents.json │ │ │ │ │ │ ├── Contents.json │ │ │ │ │ │ ├── Front.imagestacklayer/ │ │ │ │ │ │ │ ├── Content.imageset/ │ │ │ │ │ │ │ │ └── Contents.json │ │ │ │ │ │ │ └── Contents.json │ │ │ │ │ │ └── Middle.imagestacklayer/ │ │ │ │ │ │ ├── Content.imageset/ │ │ │ │ │ │ │ └── Contents.json │ │ │ │ │ │ └── Contents.json │ │ │ │ │ ├── Contents.json │ │ │ │ │ ├── Top Shelf Image Wide.imageset/ │ │ │ │ │ │ └── Contents.json │ │ │ │ │ └── Top Shelf Image.imageset/ │ │ │ │ │ └── Contents.json │ │ │ │ └── Contents.json │ │ │ ├── ContentView.swift │ │ │ ├── Preview Content/ │ │ │ │ └── Preview Assets.xcassets/ │ │ │ │ └── Contents.json │ │ │ └── tvOS_ExampleApp.swift │ │ └── tvOS_Example.xcodeproj/ │ │ ├── project.pbxproj │ │ └── project.xcworkspace/ │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata/ │ │ └── IDEWorkspaceChecks.plist │ └── watchOS_Example/ │ ├── watchOS_Example Watch App/ │ │ ├── Assets.xcassets/ │ │ │ ├── AccentColor.colorset/ │ │ │ │ └── Contents.json │ │ │ ├── AppIcon.appiconset/ │ │ │ │ └── Contents.json │ │ │ └── Contents.json │ │ ├── ContentView.swift │ │ ├── Preview Content/ │ │ │ └── Preview Assets.xcassets/ │ │ │ └── Contents.json │ │ └── watchOS_ExampleApp.swift │ └── watchOS_Example.xcodeproj/ │ ├── project.pbxproj │ └── project.xcworkspace/ │ ├── contents.xcworkspacedata │ └── xcshareddata/ │ └── IDEWorkspaceChecks.plist ├── LICENSE ├── Package.swift ├── Package@swift-5.5.swift ├── Package@swift-5.6.swift ├── Package@swift-5.7.swift ├── Package@swift-5.8.swift ├── README.md ├── SECURITY.md ├── Sources/ │ └── OpenAIKit/ │ ├── Client/ │ │ ├── AudioSpeechResource+API.swift │ │ ├── BatchesResource+API.swift │ │ ├── BetaResources+API.swift │ │ ├── ContainersResource+API.swift │ │ ├── ConversationsResource+API.swift │ │ ├── EvalsResource+API.swift │ │ ├── FineTuningResource+API.swift │ │ ├── RealtimeResource+API.swift │ │ ├── ResourceNamespaces.swift │ │ ├── ResponsesResource+API.swift │ │ ├── SkillsAndVideosResource+API.swift │ │ ├── UploadsResource+API.swift │ │ ├── VectorStoresResource+API.swift │ │ └── WebhooksResource+Helpers.swift │ ├── Extensions/ │ │ ├── NSImageExtension.swift │ │ ├── NSMutableDataExtension.swift │ │ ├── String.swift │ │ └── StringPropertyMap.swift │ ├── OpenAI.swift │ ├── Protocols/ │ │ ├── Chat/ │ │ │ └── Property.swift │ │ └── OpenAIProtocol.swift │ ├── Types/ │ │ ├── Enums/ │ │ │ ├── Audio/ │ │ │ │ └── AudioResponseFormat.swift │ │ │ ├── Chat/ │ │ │ │ ├── ChatModels.swift │ │ │ │ └── ChatRole.swift │ │ │ ├── Completions/ │ │ │ │ └── CompletionModels.swift │ │ │ ├── Files/ │ │ │ │ └── FileStatus.swift │ │ │ ├── Images/ │ │ │ │ ├── ImageData.swift │ │ │ │ ├── ImageModel.swift │ │ │ │ ├── ImageQuality.swift │ │ │ │ ├── ImageResolutions.swift │ │ │ │ ├── ImageStyle.swift │ │ │ │ └── ResponseFormat.swift │ │ │ ├── Moderations/ │ │ │ │ └── ContentPolicyModels.swift │ │ │ └── OpenAI/ │ │ │ ├── OpenAIErrors.swift │ │ │ └── OpenAIObject.swift │ │ └── Structs/ │ │ ├── Parameters/ │ │ │ ├── Audio/ │ │ │ │ ├── SpeechParameters.swift │ │ │ │ └── TranscriptionParameters.swift │ │ │ ├── Batches/ │ │ │ │ └── BatchParameters.swift │ │ │ ├── Beta/ │ │ │ │ └── AssistantParameters.swift │ │ │ ├── Chat/ │ │ │ │ ├── ChatParameters.swift │ │ │ │ ├── ChatResponseFormat.swift │ │ │ │ ├── ChatTool.swift │ │ │ │ ├── Function.swift │ │ │ │ ├── Parameter.swift │ │ │ │ └── ParameterDetail.swift │ │ │ ├── Completions/ │ │ │ │ └── CompletionParameters.swift │ │ │ ├── Containers/ │ │ │ │ └── ContainerParameters.swift │ │ │ ├── Conversations/ │ │ │ │ └── ConversationParameters.swift │ │ │ ├── Embeddings/ │ │ │ │ └── EmbeddingsParameters.swift │ │ │ ├── Evals/ │ │ │ │ └── EvalParameters.swift │ │ │ ├── Files/ │ │ │ │ └── UploadFileParameters.swift │ │ │ ├── FineTuning/ │ │ │ │ └── FineTuningParameters.swift │ │ │ ├── Images/ │ │ │ │ ├── ImageEditParameters.swift │ │ │ │ ├── ImageParameters.swift │ │ │ │ └── ImageVariationParameters.swift │ │ │ ├── Moderations/ │ │ │ │ └── ConentPolicyParameters.swift │ │ │ ├── Realtime/ │ │ │ │ └── RealtimeParameters.swift │ │ │ ├── Responses/ │ │ │ │ └── ResponseParameters.swift │ │ │ ├── Skills/ │ │ │ │ └── SkillParameters.swift │ │ │ ├── Uploads/ │ │ │ │ └── UploadParameters.swift │ │ │ ├── VectorStores/ │ │ │ │ └── VectorStoreParameters.swift │ │ │ └── Videos/ │ │ │ └── VideoParameters.swift │ │ └── Schemas/ │ │ ├── Audio/ │ │ │ └── TranscriptionResponse.swift │ │ ├── Batches/ │ │ │ └── BatchModels.swift │ │ ├── Beta/ │ │ │ └── AssistantModels.swift │ │ ├── Chat/ │ │ │ └── ChatResponse.swift │ │ ├── Completions/ │ │ │ └── CompletionResponse.swift │ │ ├── Containers/ │ │ │ └── ContainerModels.swift │ │ ├── Conversations/ │ │ │ └── ConversationModels.swift │ │ ├── Embeddings/ │ │ │ ├── EmbeddingsData.swift │ │ │ ├── EmbeddingsResponse.swift │ │ │ └── EmbeddingsUsage.swift │ │ ├── Evals/ │ │ │ └── EvalModels.swift │ │ ├── Files/ │ │ │ ├── File.swift │ │ │ ├── FileContent.swift │ │ │ └── ListFilesResponse.swift │ │ ├── FineTuning/ │ │ │ └── FineTuningModels.swift │ │ ├── Images/ │ │ │ └── ImageResponse.swift │ │ ├── Models/ │ │ │ ├── ListModelResponse.swift │ │ │ └── Model.swift │ │ ├── Moderations/ │ │ │ ├── ContentPolicyCategories.swift │ │ │ ├── ContentPolicyCategoryScore.swift │ │ │ ├── ContentPolicyResponse.swift │ │ │ └── ContentPolicyResult.swift │ │ ├── OpenAI/ │ │ │ ├── ChatChoice.swift │ │ │ ├── ChatMessage.swift │ │ │ ├── Choice.swift │ │ │ ├── Configuration.swift │ │ │ ├── DeleteObject.swift │ │ │ ├── FormData.swift │ │ │ ├── FunctionCall.swift │ │ │ ├── OpenAIErrorMessage.swift │ │ │ ├── OpenAIErrorResponse.swift │ │ │ ├── OpenAIRequestOptions.swift │ │ │ └── Usage.swift │ │ ├── Realtime/ │ │ │ └── RealtimeModels.swift │ │ ├── Responses/ │ │ │ └── ResponseModels.swift │ │ ├── Skills/ │ │ │ └── SkillModels.swift │ │ ├── Uploads/ │ │ │ └── UploadModels.swift │ │ ├── VectorStores/ │ │ │ └── VectorStoreModels.swift │ │ └── Videos/ │ │ └── VideoModels.swift │ └── Utils/ │ ├── ClampedPropertyWrapper.swift │ ├── FormDataHelper.swift │ ├── GenericCodingKeys.swift │ ├── OpenAIKitSession.swift │ ├── OpenAIStreamer/ │ │ ├── OpenAIEvent.swift │ │ ├── OpenAISource.swift │ │ └── OpenAIStreamParser.swift │ └── Whisper/ │ ├── SRT.swift │ └── WebVTT.swift └── Tests/ ├── OpenAIKitTests/ │ ├── Client/ │ │ ├── OpenAIAudioSpeechTests.swift │ │ ├── OpenAIBatchesTests.swift │ │ ├── OpenAIBetaAssistantsTests.swift │ │ ├── OpenAIClientScaffoldTests.swift │ │ ├── OpenAIContainersTests.swift │ │ ├── OpenAIConversationsTests.swift │ │ ├── OpenAIEncodingMigrationTests.swift │ │ ├── OpenAIEvalsTests.swift │ │ ├── OpenAIFineTuningTests.swift │ │ ├── OpenAIRealtimeTests.swift │ │ ├── OpenAIResponsesTests.swift │ │ ├── OpenAISkillsAndVideosTests.swift │ │ ├── OpenAITransportOptionsTests.swift │ │ ├── OpenAIUploadsTests.swift │ │ ├── OpenAIVectorStoresTests.swift │ │ └── OpenAIWebhooksTests.swift │ ├── Extension/ │ │ └── BundleExtension.swift │ ├── Mocks/ │ │ └── MockOpenAI.swift │ ├── OpenAIKitTests.swift │ └── Types/ │ └── Enums/ │ └── MockOpenAIError.swift ├── Resources/ │ └── JSON Responses/ │ ├── Completions/ │ │ └── CompletionResponse.json │ ├── Content Policy/ │ │ └── ContentPolicyResponse.json │ ├── Delete File/ │ │ └── DeleteFileResponse.json │ ├── Images/ │ │ ├── Embeddings/ │ │ │ └── EmbeddingsResponse.json │ │ ├── NumberOfImages/ │ │ │ ├── ImageURL-1.json │ │ │ ├── ImageURL0.json │ │ │ ├── ImageURL1.json │ │ │ ├── ImageURL10.json │ │ │ ├── ImageURL11.json │ │ │ └── ImageURL2.json │ │ ├── Prompt/ │ │ │ ├── ImageApple.json │ │ │ └── ImageOtter.json │ │ ├── Resolution/ │ │ │ ├── Large/ │ │ │ │ ├── ImageB64Large.json │ │ │ │ └── ImageURLLarge.json │ │ │ ├── Medium/ │ │ │ │ ├── ImageB64Medium.json │ │ │ │ └── ImageURLMedium.json │ │ │ └── Small/ │ │ │ ├── ImageB64Small.json │ │ │ └── ImageURLSmall.json │ │ └── ResponseFormat/ │ │ ├── ImageB64.json │ │ └── ImageURL.json │ ├── List Files/ │ │ └── ListFilesResponse.json │ ├── List Models/ │ │ └── ModelsResponse.json │ └── Retrieve Model/ │ └── RetrieveModelResponse.json └── Test Plans/ └── iOS-TS.xctestplan