#Error 400
1 messages Β· Page 1 of 1 (latest)
/key
Please use #π€ππ¨π to use commands.
and make sure you use the commands instead of sending text messages.
Thank you for using the appropriate channels.
I am using my key
just by saying error 400 we can't help you, you have to read the response body to see what is the error
and you're not a supporter you can't use that model, check https://discord.com/channels/1055397662976905229/1213171976407883866
Well the github saying it was free was misleading then
where?
where i said gpt-3.5-turbo for free?
so which one of the APIs is for free, sorry for the misunderstanding
it is not stated which one is free in the docs thats why I am confused
you can see the availability of models here https://discord.com/channels/1055397662976905229/1213171976407883866
i wrote accessing our hosted API, i didn't mention OpenAI models
our models are free, if you spend 2 mins reading the models channel, you will understand which models you can use
Response body:
{
"status": false,
"error": {
"message": "Incorrect API Endpoint, Please check https://discord.pawan.krd for more information.",
"type": "invalid_request_error"
},
"support": "https://discord.pawan.krd"
}
What I forward to the API:
async function forwardToApi(message) {
const apiUrl = 'https://api.pawan.krd/gpt-3.5-unfiltered/v1';
const payload = {
model: 'gpt-3.5-unfiltered',
messages: [{ role: 'user', content: message }]
};
try {
const response = await fetch(apiUrl, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': `Bearer ${ApiKey}`
},
body: JSON.stringify(payload)
});
you sent the requests to the base URL not the endpoint
you have to know base URL and the full endpoint are 2 different things
when you use the OpenAI lib you need the base URL
but when you send the requests directly you have to write the full endpoint
if you read it i wrote Base URL
so what do I do to fix my issue im still learning javascript sorry
the full endpoint is https://api.pawan.krd/gpt-3.5-unfiltered/v1/chat/completions
you have to learn more about how API and OpenAI API works
Thank you
I finally got it working now my project is almost complete
Its a project im doing for my university, where it will use an exploit where when u chat withurself on the university websites that u take the exams on u will be talking to chatgpt
u can write full prompts and stuff, now its finally giving responses
gpt-3.5-unfiltered is not very stable and we may remove it in the next few weeks, you can use pai-001 instead if it stopped working