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 Add `SSLDelegateProtocol` delegate to `StreamingSession` ## Why I've discovered that when initializing `OpenAI` class with `URLSession`, it isn't utilized if the request uses `StreamingSession` (which is logical). Consequently,...

## What Add `pathPrefix` to OpenAI.Configuration. ## Why This is needed for reverse proxy servers - for example, if the proxy server has the next path: `some-proxy-server.com/api`, and it will...

## What Add a public initializer for `ChatQuery.ChatCompletionMessageParam.ChatCompletionAssistantMessageParam.ChatCompletionMessageToolCallParam.FunctionCall`, allowing it to be created programmatically. ## Why When converting chat history from other LLM services (such as Claude and Gemini) into...

Documentation about how a proxy server can work with this client. Otherwise, it is not recommended to use this client, since you expose your API key in your client which...

## What I'm not sure if it's a recent change but the API supports `pcm` for text-to-speech and it isn't supported by this library. A simple change to allow `pcm`...

It would be nice to have an option to make a request with `gpt-4-vision-preview` model in which we provide `image` and `string prompt` and it outputs a `string answer` to...

**Is your feature request related to a problem? Please describe.** If I am understanding correctly, I cannot currently express the following type of function call: ``` let nestedParamsFunc = ChatQuery.ChatCompletionToolParam(function:...

**Describe the solution you'd like** hi, I need a way to use these great library to work with my own back end service, then my back end call Open AI...

Is there any way to cancel chatsStream closure? ``` openAI.chatsStream(query: query) { partialResult in switch partialResult { case .success(let result): print(result.choices) case .failure(let error): //Handle chunk error here } }...

**Is your feature request related to a problem? Please describe.** Yeah, I'd like to be able to support the assistant features like threads, runs, and files with assistants API. I...

enhancement