adamrushy / OpenAISwift

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

Trying to take a sendCompletion request with gpt4 model #116

Open BeppeDicio opened 9 months ago

BeppeDicio commented 9 months ago

Hi all!

can someone make me an exampele how to use sendChat function and use GPT 3.5 and GPT4 ? I tryed the examples into the readme and nothing works, It gives me back an empty object.

Thanks a lot

tingspain commented 9 months ago

Check if you have credit in OpenAI, also double check the API TOKEN.

I hope this will help you. This happened to me and it was that i didnt have credit