Creating PHP GPT-4 Function Calling Chatbot From Scratch

Поділитися
Вставка
  • Опубліковано 9 лис 2024

КОМЕНТАРІ • 9

  • @derrickobedgiu
    @derrickobedgiu Рік тому

    What an incredible video! Commenting from the future where we now have GPT-4 turbo. I was basically confused on that part of looping conversations. My database structure just seem coded for the previous version. Now I have to re-design the flow of conversation history and the function calling. Would be glad if we could see another update php version with the GPT4V version. Not sure it supports function calling too.
    Thanks for the cool video

  • @uwegenosdude
    @uwegenosdude 9 місяців тому

    Interesting video, thanks a lot. I'm also using visual studio code but I didn't know that I can select several characters in several lines of code and replace all marked selections at once. Good to know that this is possible. Do I need a plugin for this or is it a standard feature?

    • @unconv
      @unconv  9 місяців тому

      It's a standard feature. If you select a word and then press Ctrl+D it will select the next same word. Then if you type, it will replace all of them at once. You can also use Alt+Shift+Arrow keys to select a "column" of text over multiple lines

  • @diseynotilm
    @diseynotilm Рік тому

    great!

  • @tahiranajeebb3890
    @tahiranajeebb3890 Рік тому

    i have the subscription of ChatGPT 4 plus. i have just put your code in my directory and execute "chatbot_without_library.php".
    it gives me following error: "Fatal error: Uncaught Exception: Error in OpenAI request: The model `gpt-4-0613` does not exist or you do not have access to it. " i am Newby in ChatGPT. Please help me how to resolve this issue.

    • @unconv
      @unconv  Рік тому

      ChatGPT Plus subscription is separate from the GPT-4 API access. You might still not have access to GPT-4 API. Try changing the model to `gpt-3.5-turbo` or try `gpt-4` without the 0613 extension.

    • @tahiranajeebb3890
      @tahiranajeebb3890 Рік тому

      i have tried all options like gpt-4, gpt-3.5-turbo...it give me same error like model does ot exist
      @@unconv

    • @tahiranajeebb3890
      @tahiranajeebb3890 11 місяців тому

      @@unconv how to get access of GPT-4 API?

  • @hopevzla
    @hopevzla 10 місяців тому

    have you tryed $last_item_array = end($my_Array);