adamrushy / OpenAISwift

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

sendChat model .gpt4(.gpt4) throws Error #103

Closed ktorimaru closed 11 months ago

ktorimaru commented 11 months ago

sendChat model .gpt4(.gpt4) throw Error: ▿ OpenAIError ▿ chatError : 1 element ▿ error : Payload

model: .chat(.chatgpt) works fine.

MarkHoath commented 11 months ago

What release are you running ?

ktorimaru commented 11 months ago

1.4.0

MarkHoath commented 11 months ago

Do you have access to the gpt-4 api ? I have no problems using sendChat with gpt-4

ktorimaru commented 11 months ago

API Access

On July 6, 2023 , we gave access to the GPT-4 API (8k) to all API users who have made a successful payment of $1 or more. We plan to open up access to new developers by the end of July 2023, and then start raising rate-limits after that depending on compute availability.

My total spending is under a dollar, that must be the problem

I'm getting close, I will let you know.

ktorimaru commented 11 months ago

So, I got my spending over $1 and have waited several days with no change. Would you consider trying out my project to see if it will run for you? https://github.com/ktorimaru/AITool.git

MarkHoath commented 11 months ago

I downloaded your project, but you appear to be saving and loading the apiKey in each document. I cant find in the interface where to upload my apikey. I suggest you create a global and use the same key for each document. (saving the key with document cant be secure). I also couldn't see how to run the scripts, or make changes to them. If your project is working with chatgpt, I would finish off the interface and see if you eventually get gpt4 access.

ktorimaru commented 11 months ago

Mark,

Clearly I need to work on the interface! The “Gear” button brings up the API key dialog. It is suppose to come down automatically if you don’t have one setup. Clicking on “New” creates a new script. Once you have a script, click “Iterate” to run the script.

Thanks,

Ken

On Jul 22, 2023, at 4:09 PM, MarkHoath @.***> wrote:

I downloaded your project, but you appear to be saving and loading the apiKey in each document. I cant find in the interface where to upload my apikey. I suggest you create a global and use the same key for each document. (saving the key with document cant be secure). I also couldn't see how to run the scripts, or make changes to them. If your project is working with chatgpt, I would finish off the interface and see if you eventually get gpt4 access.

— Reply to this email directly, view it on GitHub https://github.com/adamrushy/OpenAISwift/issues/103#issuecomment-1646688420, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQDX5JDDG6Q37YR2MLJN3TXRRMTJANCNFSM6AAAAAA2NQVJ3I. You are receiving this because you authored the thread.

MarkHoath commented 11 months ago

Actually your Gear and Iterate buttons are only on a Mac Build and I was using iOS. In any event. My API Key works for both chatgpt and gpt4, so you just need to wait to be added to the gpt4 list. I got an email once I was accepted.... Good Luck :)

ktorimaru commented 11 months ago

Thanks! Sorry, I had forgot the iOS part was still there.

Do you see any value in the project?

Ken

On Jul 23, 2023, at 1:30 AM, MarkHoath @.***> wrote:

Actually your Gear and Iterate buttons are only on a Mac Build and I was using iOS. In any event. My API Key works for both chatgpt and gpt4, so you just need to wait to be added to the gpt4 list. I got an email once I was accepted.... Good Luck :)

— Reply to this email directly, view it on GitHub https://github.com/adamrushy/OpenAISwift/issues/103#issuecomment-1646780345, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQDX5IWYIYJXBG4VOQJRMDXRTOJ7ANCNFSM6AAAAAA2NQVJ3I. You are receiving this because you authored the thread.

MarkHoath commented 11 months ago

This should be closed. Its not a bug/issue

ktorimaru commented 11 months ago

Thanks