MacPaw / OpenAI

Swift community driven package for OpenAI public API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Strict Concurrency Checking

nibe opened this issue · comments

commented

Is your feature request related to a problem? Please describe.

With strict concurrency checking enabled, I get several warnings both inside this library and in my code when using it. For example, ChatQuery and ChatResult are not Sendable for use with the async chats function. I can suppress the warnings by adding @preconcurrency to the import but I wonder if that's really safe.

Describe the solution you'd like

Strict concurrency support would be nice.