Merhaba şöyle bir kodum var gpt-3.5-turbo çalışıyor ama gpt-4 ve diğer gpt-4 modellerini yazınca çalışmıyor. Bu API URL doğru diye biliyorum
onst sendUserMessageToAI = async (userMessage) => {
const API_URL = "https://api.openai.com/v1/chat/completions";
const requestOptions = {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": `Bearer ${API_KEY}`
},
body: JSON.stringify({
model: "gpt-3.5-turbo",
messages: [
{
role: "system",
content: "İnsancıl"
},
{
role: "user",
content: userMessage
}
],
temperature: 1,
max_tokens: 3000,
top_p: 1,
frequency_penalty: 0,
presence_penalty: 0
})
};