How to use ChatGPT in Python - Unofficial ChatGPT Python API Guide

preview_player
Показать описание
This ChatGPT Tutorial teaches you how to use ChatGPT in Python on Free Google Colab using pyChatGPT

Links:

❤️ If you want to support what we are doing ❤️
Support here:
Рекомендации по теме
Комментарии
Автор

This basically opens a door to a world of endless possibilities. I'm thinking of making a voice assistant now :))

muhammadrezahaghiri
Автор

awesome video man. thanks a lot for posting. kudos and happy 2023.

alejandrosimkievich
Автор

Thank you for posting this! I was messing around with creating a discord bot before and i couldnt quite figure out how to connect it with the chatbot, but this pretty much solved it for me. Now I've got personal discord bot i can use to connect with instead of going to the website.

edit: well that was shortlived, hopefuily the community gets another solution soon since they added cloudflare.

lqkmgok
Автор

Very nice video, thanks!
A problem I found is that using a for loop of prompts, at some point, the selenium driver is frozen and it can't continue... Any ideas?

AlphaMoury
Автор

Thanks but I am getting this error "ValueError: Headless machine detected. Please install Xvfb to start a virtual display: sudo apt install xvfb"

walidmaly
Автор

Great video, as always. My favorite channel.

stevefox
Автор

For the session token it gave the following error: "Please install Xvfb to start a virtual display by running `sudo apt install xvfb`" eventhough these are installed and updated,
then I used the credentials for the openai account but gave following error: "Please provide either a session token or login credentials"
Any idea why this is happening?

hikoopromnev
Автор

I try this on visual studio code, is there a way to prevent the chrome pop up of the chat gpt and just get the message? Thank you in advance!

vici
Автор

It worked for me before, but now I'm getting "Status code 403". Any suggestions??

sulomo
Автор

Trying to complete the 3rd cell it throws an error:
FileNotFoundError: [Errno 2] No such file or directory: 'Xvfb'

pypypy
Автор

Thanks for sharing man. It's amazing

ah
Автор

Thanks for the tutorial. However, it's not working. It gives the following error

ValueError: Headless machine detected. Please install Xvfb to start a virtual display: sudo apt install xvfb


I have tried to do the
!apt install xvfb but it does not download correctly.

Anyone have any idea way?

oltionpreka
Автор

Thanks for your work and information on this. I was able to run the code on google colab until I tried to do the authentication. When I try to connect I get the error "FileNotFoundError: [Errno 2] No such file or directory: 'Xvfb'". I have tried running from windows 10 and ubuntu with Xvfb intalled. Please let me know if you have any idea what I am doing wrong. Thanks in advance.

DennisMissel-swuh
Автор

First i received the error:

Please install Xvfb to start a virtual display by running `sudo apt install xvfb

So i executed:

!sudo apt install xvfb

but now i keep getting this error:

ValueError: Chrome installation not found


any tips?

philipedesouzasantos
Автор

how to restart runtime while using it with pycharm

Robinbin
Автор

is this still working or deprecated ? given an error __init__() got an unexpected keyword argument 'executable_path'

HazemAzim
Автор

how to make to click the regenerate response option

gunabalang
Автор

browser is still shown. How do I make it headless server? I have followed the instructions given in the official repo but still browser is shown.

doulaishamrashikhasan
Автор

Why this option in python would have more advantages over the original platform itself, if finally it is restricted in extension of answers and you can copy directly the results from the platform, could you please clarify.I hope it is because it provides us the structure in python already accommodated.

jersainpasaran
Автор

Bro, it is opening chrome and then generating it in front of me ! can't it do the work in background and just print the resoonse?

oqvyzbd