OpenAI Swift. A Swift library for connecting to OpenAI's AI models.

github.com/mattt/OpenAI

Vaya's read on this project

Problem, audience, market, and the verdict — sign in to see it.

Updates

December 2022
  • Add deprecation notice (#18)
May 2022
  • Document best practices for using available engines (#11)
October 2021
  • Bump version to 0.1.3
  • Pass additional parameters to completions call (#5)
  • Bump version to 0.1.2
  • Adding user field in completions (#3)
August 2021
  • Add example completion for Codex engine
  • Bump version to 0.1.1
  • Add platform entries for iOS, tvOS, and watchOS
  • Update README with Codex and Instruct examples
June 2021
  • Update README.md
  • Add CI badge to README
  • Add documentation workflow
  • Trim whitespace in OPENAI_API_KEY environment variable
  • Bump version to 0.1.0
  • Fix warning: Variable 'configuration' was never mutated; consider cha…
  • Mock requests in tests when OPENAI_API_KEY isn't provided
  • Change Client from a struct to a class
May 2021
  • Conform Client.Error to LocalizedError
  • Initial import