• chatbot setup problem

    Posted by roni sarker on January 17, 2025 at 6:23 pm

    To follow the video tutorial linked here, I attempted to create a chatbot. Everything is set up correctly, but when I provide a prompt, I receive the message: “Oops! Something went wrong!”

    you can check it out here : https://you.bestasiandishes.com/first-chatbot/

    I am using the following Free API URL and key:

    php

    $api_url = 'https://api.openai.com/v1/chat/completions'; $api_key = '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'; // Replace with your actual API key

    I’m not sure if the issue is related to using OpenAI’s free API or something else. Could you please clarify if free API usage is supported and what might be causing the error?

    Hasan replied 4 days, 4 hours ago 2 Members · 1 Reply
  • 1 Reply
  • Hasan

    Administrator
    January 18, 2025 at 4:32 am

    Hi Roni,

    First, please make sure that you haven’t shared your actual API key here, it is a public forum.

    second, to know the problem, we need to narrow it down, can you test the chtabot endpoint without the UI, like using any API client to make sure it is working first before we test with the UI

Log in to reply.