I made my own ChatGPT...

  Рет қаралды 4,342

Unconventional Coding

Unconventional Coding

Күн бұрын

Пікірлер: 41
@dominikkaminski4600
@dominikkaminski4600 Жыл бұрын
Great work man! Keep on doing!
@unconv
@unconv Жыл бұрын
Thank you! I will :)
@shawnmckenzie_offcial9598
@shawnmckenzie_offcial9598 Жыл бұрын
wow!! Superb!! This really come handy, Thanks man! really appreacite this content!! Kudos! By the way, I need your kind assitantce. Is there anyway that we could modified the output so that the word could appear slowly one-by-one just like what we experience in ChatGPT instead come out all at once? Thanks in advance! Again, love you works. Thumbs up from me.
@unconv
@unconv Жыл бұрын
Thanks! You need to use Server Sent Events (SSE) to do that. I might make a follow-up video adding that functionality
@shawnmckenzie_offcial9598
@shawnmckenzie_offcial9598 Жыл бұрын
@@unconv Thanks Man!
@shawnmckenzie_offcial9598
@shawnmckenzie_offcial9598 Жыл бұрын
@@unconv Currently we are using the ChatGPT 3.5 Turbo. Now there is ChatGPT 4...how we can change or use the chatGPT4 model?
@unconv
@unconv Жыл бұрын
@@shawnmckenzie_offcial9598 If you have access to the GPT-4 API, you should be able to just change the model from 'gpt-3.5-turbo' to 'gpt-4' in the message.php file. I don't have access to it yet, as it is in Limited Beta and I'm still on the waitlist.
@shawnmckenzie_offcial9598
@shawnmckenzie_offcial9598 Жыл бұрын
@@unconv Thanks Brother!
@SBWebDev
@SBWebDev Жыл бұрын
I'm thinking how many subscribers this dude going to have in 3 months. Very good content. Keep it up
@unconv
@unconv Жыл бұрын
Thank you!!
@ovrkl
@ovrkl Жыл бұрын
Top content right here
@unconv
@unconv Жыл бұрын
Thank you!
@LOLlol-kw5fo
@LOLlol-kw5fo Жыл бұрын
Hey I need to see what user is asking and run a function which will give a custom response to the user how to do that??
@unconv
@unconv Жыл бұрын
Check out my latest video (and 2 upcoming videos)
@LOLlol-kw5fo
@LOLlol-kw5fo Жыл бұрын
​@@unconvwhich one??
@LOLlol-kw5fo
@LOLlol-kw5fo Жыл бұрын
​@@unconvplease respond
@richmedialabs
@richmedialabs Жыл бұрын
Thanks for the video and code! I have been playing around with it and notice that the reply from Chat WTF often has the first word twice. Like "SureSure Here's an inspirational quote to keep you motivated..." Do you have any idea why that's happening?
@unconv
@unconv Жыл бұрын
Is this happening with the latest version? If you can reproduce it, would be good if you could look at the Network tab of Chrome dev tools and see the EventStream tab of the request to "message.php?chat_id=XXX" and see if the first word repeats there too or not.
@richmedialabs
@richmedialabs Жыл бұрын
The version is from a few days ago. I’ll have to check the specifics. And I’ll check the eventstream.
@richmedialabs
@richmedialabs Жыл бұрын
@@unconv yes the first word is repeted in the EventStream. it doesn't happen all of the time, so not sure what is causing it. i'll test more, thanks.
@all-in-one7730
@all-in-one7730 Жыл бұрын
what code is included on vendor/autoload.php file?
@unconv
@unconv Жыл бұрын
It is the composer autoloader for the orhanerday/open-ai package
@unconv
@unconv Жыл бұрын
Search for how to install composer (or ask ChatGPT) and then you need to run "composer install" from the command line in the project folder. This will create the vendor/autoload.php file
@mulamulelimphaphuli8301
@mulamulelimphaphuli8301 Жыл бұрын
Thank you.
@mathew9893
@mathew9893 Жыл бұрын
So once I import my API key from open AI is this good to go or is there anything else I need to do
@unconv
@unconv Жыл бұрын
You need to run composer install to install the OpenAI client and the Markdown formatter also, but that should be it
@alirezadaneshmayeh5248
@alirezadaneshmayeh5248 Жыл бұрын
"Thank you very much, the tutorials were excellent, and the project was really good. I would appreciate it if you could guide me. I want to upload some PDF files into my database so that when a user asks a question, it retrieves the answer from within those files. Could you please advise on which files to use and what changes I should make to make it work correctly?"
@WebkooIndonesia
@WebkooIndonesia Жыл бұрын
Error now, can you check it? please
@WebkooIndonesia
@WebkooIndonesia Жыл бұрын
VM387:1 Uncaught (in promise) SyntaxError: Unexpected token '
@unconv
@unconv Жыл бұрын
Check this GitHub issue: github.com/unconv/chat-wtf/issues/2
@FaheemShah-i7n
@FaheemShah-i7n Жыл бұрын
it takes to much time to send back response how can we reduce response time
@unconv
@unconv Жыл бұрын
Sometimes the OpenAI API is just slow :( Also, this chatbot only responds after the full response has been generated, so it seems slower than ChatGPT, which starts outputting the response right away. I might update it in the future to use the streaming version so it seems faster. You can also change the token limit, so that the response will be shorter (which might not be what you want, though)
@unconv
@unconv Жыл бұрын
I just posted a video where I upgrade the code to use the streaming version of the API. It's a lot faster to respond now!
@bestoftatebros8901
@bestoftatebros8901 Жыл бұрын
So how does it work? Do I just upload the files from github to my hosting and add my API key?
@unconv
@unconv Жыл бұрын
And you need to install the composer packages
@focusxmedia2014
@focusxmedia2014 Жыл бұрын
can i reach out. i need to get this working. I added my api key and its not working. Im willing to contribute
@unconv
@unconv Жыл бұрын
You might have whitespace or a newline in the api_key.txt file. I forgot to trim those in the original version. Also you need to run "composer install" to install the dependencies before you can use the code. I made some last minute organizing of folders before I published the code on GitHub and I forgot to move the composer files to the php folder. I have fixed these now in the repository. If it still doesn't work, check your PHP error log or check the HTTP response of message.php from Chrome dev tools.
@saebifar
@saebifar Жыл бұрын
its fantastic :)
@unconv
@unconv Жыл бұрын
Thank you! You should check out the video where I update it to the new ChatGPT API
I enabled ChatGPT API in my PHP Chatbot (and told it to act like a Reddit troll)
14:05
the truth about ChatGPT generated code
10:35
Low Level
Рет қаралды 236 М.
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
Build Anything With ChatGPT API, Here’s How
12:11
David Ondrej
Рет қаралды 119 М.
Using Server-Sent Events with PHP to Stream Responses from OpenAI ChatGPT API
38:39
I built a library of code snippets for developers
5:09
Technophile
Рет қаралды 25 М.
Please Master This MAGIC Python Feature... 🪄
25:10
Tech With Tim
Рет қаралды 73 М.
Earn $1,350/Day with ChatGPT & Google Drive for FREE
17:03
Chad Kimball
Рет қаралды 1,1 МЛН
How You Will Lose Your Job To AI
7:25
Lazy Owl
Рет қаралды 425 М.
AI ассистенты разработчика - ChatGPT, Copilot, Jetbrains AI
53:26
IT Ментор | Сергей Жуков
Рет қаралды 99 М.
amazing japanese home gadgets vlog/tiktok china #shorts
0:59
High Tech USA
Рет қаралды 17 МЛН
Массаж головы пранк🤣
0:55
Kirya Kolesnikov
Рет қаралды 5 МЛН
Самые простые строительные леса
0:54
Канал ИДЕЙ
Рет қаралды 1 МЛН
для всей семьи
0:56
Стакановец
Рет қаралды 191 М.