You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Up-to-date, maintainable and properly versioned OpenAI API library for Swift that is utilized by SpeziLLM
Problem
As of now, we're using the OpenAI package from MacPaw for SpeziLLM: https://github.com/MacPaw/OpenAI
This package definitely is useable, however, it doesn't include the most up-to-date functionality of the OpenAI API, the code is sadly poorly maintained with little to no documentation, and there are lots of inefficiencies throughout the codebase.
Use Case
Up-to-date, maintainable and properly versioned OpenAI API library for Swift that is utilized by SpeziLLM
Problem
As of now, we're using the OpenAI package from MacPaw for SpeziLLM: https://github.com/MacPaw/OpenAI
This package definitely is useable, however, it doesn't include the most up-to-date functionality of the OpenAI API, the code is sadly poorly maintained with little to no documentation, and there are lots of inefficiencies throughout the codebase.
Solution
We use the official OpenAPI spec from OpenAI together with the https://github.com/apple/swift-openapi-generator to generate the Swift client-code for the OpenAI API.
One needs to build proper wrappers on top of the generated code pieces, but it is definitely a good start.
Alternatives considered
Using other OpenAI API Swift packages like: https://github.com/OpenDive/OpenAIKit or https://github.com/adamrushy/OpenAISwift or https://github.com/SwiftBeta/SwiftOpenAI
Sadly, most of the packages suffer from similar problems as the MacPaw OpenAI library, as described above.
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: