OpenAI icon indicating copy to clipboard operation
OpenAI copied to clipboard

Swift community driven package for OpenAI public API

Results 80 OpenAI issues
Sort by recently updated
recently updated
newest added

## What Renamed some redundant type names such as `ChatCompletionMessageParam.ChatCompletionSystemMessageParam` -> `ChatCompletionMessageParam.SystemMessageParam`. ## Why In Swift, the names of types within the nested structure usually omit the namespace prefix. This...

**Describe the bug** In the latest Version 0.2.7 the public struct Chat is missing ?! public struct Chat: Codable, Equatable { ... } Compiler errors: Cannot find 'Chat' in the...

## What Change the speed parameter type of the audioCreatSpeech request from string to double ## Why The speed parameter of type string will render the request unusable and always...

I'm unsure if anyone has started porting the new GPT-4o model to this platform. With GPT-4o just released, it would help to know if porting has started. A collaborative space...

## What This MR is to resolve the issue https://github.com/MacPaw/OpenAI/issues/68#issuecomment-1548221958 ## Why When we set up a proxy for OpenAI API, sometimes we enable a custom endpoint for it, so...

## What Add a new publick API ```swift public func chatsStream(query: ChatQuery, url: URL, onResult: @escaping (Result) -> Void, completion: ((Error?) -> Void)?) { performStreamingRequest(request: JSONRequest(body: query.makeStreamable(), url: url), onResult:...

**Is your feature request related to a problem? Please describe.** Simple use case: ```swift let task = Task { for try await result in openAI.chatsStream(query: query) { print(result) } }...

OpenAI API has support for streaming realtime audio by chunks (just like chat token-by-token streaming) Are there any plans to add support for this feature?

Hello guys, I have faced with issue that's my API key incorrect. I've tried to create a new one but still have the same problem. Previously everything was ok. I...

## What TogetherAI's API mocks OpenAI's, however the model is not returned in chat stream responses, thus it must be made optional in order to proceed without erroring. Simply added...