SwiftOpenAI icon indicating copy to clipboard operation
SwiftOpenAI copied to clipboard

An open-source Swift package for interacting with OpenAI's public API.

Results 13 SwiftOpenAI issues
Sort by recently updated
recently updated
newest added

override init() { super.init() service = OpenAIServiceFactory.service(apiKey: Constants.apiKey, organizationID: Constants.orgId) imagesProvider = ImagesProvider(service: service) provider = AssistantConfigurationProvider(service: service) if Constants.isAssistantCreated == false { Task { parameters.tools.append(AssistantFunctionCallDefinition.createImage.functionTool) parameters.tools.append(AssistantObject.Tool(type: .codeInterpreter)) parameters.name =...

For example, `https://api.groq.com/openai` does not work as a `baseURL`. The `openai` parts gets replaced and the URL ends up as `https://api.groq.com/v1/chat/completions` instead. It's what Groq uses to access their OpenAI...

Will there be suppose for structured output?

Any plans to make this buildable on Linux? Since its better to not put your API-keys on the client I want to use this on my swift server project. I...

Currently, MessageParameter `content` is always a string. Could you update it to allow more flexibility, similar to the `content` in [createMessage](https://platform.openai.com/docs/api-reference/messages/createMessage), since messages might need to handle different types of...

We should add the new gpt-4.1-nano model for usage: https://platform.openai.com/docs/models/gpt-4.1-nano

`mask` parameter should be sent as a `file` (instead of a `string`). It can also be `nil`, so don't throw an assertion error in that case.

When trying to convert to using the new Responses API, whilst the input does accept an array of items, it is not possible afaict to pass an array of items...

I think the issue is specifically with the URL construction in the `DefaultOpenAIAzureService` initialization. The format of Azure OpenAI endpoints is typically `https://{resourceName}.openai.azure.com`, but the code is constructing it as...

Previously, with custom providers, like Fireworks, parts of the path were being discarded preceeding the v1 version tag. As a result, this meant that many providers would result in 404...