OpenAI
OpenAI copied to clipboard
Swift community driven package for OpenAI public API
Hi. Pretty new to both Swift and this package. Can anyone include an example of how to supply an image from assets or uploaded from the device with a prompt...
**Describe the bug** I copied the block of code you had in the README.txt to set up functions, I pasted it into a swift file where I had "import OpenAI"...
## What Added new `required` option to ChatCompletionFunctionCallOptionParam enum. ## Why This new `required` enum value was introduced to the API on April 29 2024 and is now featured in...
## What Close https://github.com/MacPaw/OpenAI/issues/198 This PR enable user to cancel stream request, just picked up the commit from https://github.com/longseespace/OpenAI/commit/a290a1a119fc465cdb1740472242fbfca57069b9#diff-2a16b8014d00e2223611951c839756f88dd24a58d6d2d34962fa9c329eab6580 ## Why Currently stream requests cannot be canceled once they are...
Hi guys, Hello, I'm encountering an issue where my code breaks at the following line. The same code works flawlessly in Swift 5.x, but in Swift 6 (as detailed below),...
I'm working on a Vapor server to proxy OpenAI requests, and since [it is not recommended to use `URLSession` with Vapor](https://forums.swift.org/t/urlsession-data-for-request-urlrequest-delegate-async-throws-data-urlresponse-function-migration/58813/3), I was wondering if there is a plan to...
**Is your feature request related to a problem? Please describe.** I would like to communicate with my custom assistant that I've created. So I can build a product around it....
## What Support the optional `strict` parameter in function definitions, which was released with Structured Outputs. When `strict` is provided, the API requires `additionalProperties` to be provided in the `parameters`...
## What Adds support for [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs/introduction). ## Why From the official guides: > Structured Outputs is a feature that ensures the model will always generate responses that adhere to...