Releases: SwiftedMind/GPTSwift
Releases · SwiftedMind/GPTSwift
3.0.1
3.0.0
Note
Fun Fact: Parts of the documentation for this update have been written by GPT4! I have proof-read them to make sure everything is fine but GPT4 just did it perfectly.
Added
- Added GPT4 models (also including stable and large context versions) to
ChatGPT
. If you have access, enjoy! - Added
GPT
, which is a wrapper around the completion API for GPT3. Also supports streaming the answers. - Added
OpenAI
, which is a wrapper around two general OpenAI endpoints that list available models. - Added more robust and convenient error handling. All errors are now exposed through
GPTSwiftError
.- OpenAI error messages are now also passed through, which is useful to debug invalid requests (like out-of-bounds values).
- Added option to configure underlying URLSession in the initializers of
ChatGPT
,GPT
andOpenAI
. - Added option to set the default model to use for instances of
ChatGPT
,GPT
andOpenAI
. You can set that in the initializer and then, if needed, override it in the individual methods. - Added convenience methods to initialize requests and messages, for example
ChatRequest.gpt3(_:)
orChatMessage.system(_:)
. - Added
curl(for:pretty:formatOutput:)
methods toChatGPT
andGPT
that turns requests into a usablecurl
prompt that you can paste into a terminal to manually call the OpenAI endpoints.OpenAI
also has these convenience methods:curlForAvailableModels(pretty:formatOutput:)
andcurlForModel(withId:pretty:formatOutput:)
Changed
- Renamed
ChatGPTSwift
toChatGPT
. ChatGPT.ask(_:)
andChatGPT.ask(messages:)
have been made easier to use. They now return a String as the answer, instead of a complex object.- The intention behind this is to make basic usage of the framework as easy as possible while still allowing full control through
ChatGPT.ask(request:)
- The intention behind this is to make basic usage of the framework as easy as possible while still allowing full control through
ChatGPT
,GPT
andOpenAI
now each have their own product to reduce namespace pollution. Simply import whichever you are using.
2.0.2
- Added
.spi.yml
file
2.0.0
- Refined the API and renamed GPTSwift into ChatGPTSwift to make room for additional OpenAI APIs
- Added support for streaming answers
- Added platform support for watchOS and tvOS
2.0.1
- Fixed small README.md problem
2.0.0 Features
- Refined the API and renamed GPTSwift into ChatGPTSwift to make room for additional OpenAI APIs
- Added support for streaming answers
- Added platform support for watchOS and tvOS
2.0.0
- Refined the API and renamed
GPTSwift
intoChatGPTSwift
to make room for additional OpenAI APIs - Added support for streaming answers
- Added platform support for watchOS and tvOS
1.0.0
- First release of the app!
- Full control over ChatGPT API