👨‍🏫 Tutorial GPT4Free Tutorial Simplified set up 100% working.

sUFF3R

Elite
1710620227254.png
Tired of bings stupid completions paused when tab was switched?
More info here on gpt4free official repository -> You do not have permission to view the full content of this post. Log in or register now.
Credits to Xtekky

Requirements:
Pc/mobile phone with termux

install python 3.10+



Deployed here: You do not have permission to view the full content of this post. Log in or register now.
Feel free to use.​



Running GPT4FREE GUI

Open CMD
1710620636451.png
run:
pip install -U g4f[all]
Create folder anywhere on your c:/ drive
eg: downloads
1710620824071.png
create [B]main.py[/B] inside it
1710620904127.png
edit main.py
copy, paste the code below and save

Python:
from g4f.gui import run_gui

from g4f.cookies import set_cookies
set_cookies(".bing.com", {
   "_U": "bing cookie"
 })

run_gui()
now run the main.py click directory path
1710621590150.png
type cmd
1710621641067.png
type

python main.py

1710621706889.png
Navigate to your Browser and navigate to the local address server shown in cmd
You do not have permission to view the full content of this post. Log in or register now.
1710621839554.png

Getting cookie value from bing.com or copilot.microsoft.com​

Navigate to copilot.microsoft.com any browser
Sign in your microsoft account, get _U cookie value
Navigate to network Tab
1710622218235.png
look for link with l? url click it
1710622331376.png
go to cookie tab
and copy the value of _U:key
1710622470295.png
paste in you main.py
Python:
set_cookies(".bing.com", {
   "_U": "
1qkKPZlhGJqsCZq5UxxxxxxxxxxxxxxxxxxxxxxXXXXXXXXXXXXXXxxxxxxxxx-"
 })
1710622805678.png




You do not have permission to view the full content of this post. Log in or register now.

1710621550116.png

1710621923600.png
latest g4f or gpt4free, para mapadali sa user using bat files.
1. create a bat file to for venv and activation
2. create bat to install requirements
3. creqte bat to run the gui
4. create bat file to open link in browser Pero para mapadali, ito yung crude run-g4f. bat na simple at ayos naman to execute:
Code:
@echo off :: Create a virtual environment named 'venv' python -m venv venv :: Activate the virtual environment call .\venv\Scripts\activate :: Install requirements from requirements.txt pip install -r requirements.txt :: Run the specified Python module python -m g4f.gui.run
Sorry at hanggang dyan lang muna yung kaya ko't inabot na pala ako ng 1:30AM para magpa-antok. Di ko rin ma-include yung opening the client window to the browser dahil tumitigil siya after 4th step, kaya gawa na lang sila siguro ng isa pang separate open-client.bat using this command:
Code:
start "" http://127.0.0.1:8080/chat/
Sa 2 bat files or 2 clicks to run gpt4free, pwede na yan kaysa mag-type ka pa or copy paste method he he. Improve nyo na lang or hanap kayo ng magagaling sa batch programming.
 
1710641277814.webp
Ano po yung gamit niyong browser? Di ko ma copy _U e
 

Similar threads

About this Thread

  • 107
    Replies
  • 9K
    Views
  • 42
    Participants
Last reply from:
alist1986

Trending Topics

Online now

Members online
637
Guests online
3,353
Total visitors
3,990

Forum statistics

Threads
2,325,775
Posts
29,224,256
Members
1,169,591
Latest member
Testwaters004
Back
Top