adamrushy / OpenAISwift

This is a wrapper library around the ChatGPT and OpenAI HTTP API
MIT License
1.6k stars 242 forks source link

sendChat issue? #93

Open WilliamClancy opened 1 year ago

WilliamClancy commented 1 year ago

This just started happening yesterday out of no where but I started getting an error for let result = try await openAI.sendChat(with: chat) ---- >> Value of type 'OpenAISwift' has no member 'sendChat' let chat: [ChatMessage] = [. ------ >>. Cannot find type 'ChatMessage' in scope

I can't seem to figure out why it's not working. Completions workout however.

Alexx1105 commented 9 months ago

I have this exact same error except nine of the same "Cannot find ChatMessage in scope" errors. Its only an issue in the new 1.4.0 version.