Skip to content

Conversation

lukepistrol
Copy link
Contributor

@lukepistrol lukepistrol commented Nov 26, 2024

This PR changes the swift-tools-version to Swift 6.

Along with this transition a couple of things needed to change:

  • Conform models to Sendable to ensure thread-safety.
  • Get rid of unneeded static var baseURL that is not thread-safe. Moved it to OllamaKit and passed it to OKRouter as an argument.
  • Updated the Playground Project's ViewModel to run UI changes on the @MainActor.
  • Added details to OKModelResponse.
  • Update GitHub workflows to run on macos-15 and use Xcode 16.1.

There is a similar PR (#38) ongoing but for some reason they changed most Double occurrences to Float which changes the public API. I'm happy to report that this PR does not change the public API!

Copy link
Owner

@kevinhermawan kevinhermawan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work, @lukepistrol! Thanks a lot!

@kevinhermawan kevinhermawan merged commit 3af02c9 into kevinhermawan:main Nov 27, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants