• 10-02-2024, 23:12:26
    #1
    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
            })
        };
  • 10-02-2024, 23:14:26
    #2
    GPT-4 modelleri için şu adları kullanmayı deneyin:
    • text-davinci-003
    • text-davinci-002
    • text-curie-001
    • text-babbage-001
  • 10-02-2024, 23:20:04
    #3
    DiZiNi adlı üyeden alıntı: mesajı görüntüle
    GPT-4 modelleri için şu adları kullanmayı deneyin:
    • text-davinci-003
    • text-davinci-002
    • text-curie-001
    • text-babbage-001
    Hangisi doğru nasıl anlayabilirim







    text-davinci-003 yaptım