What's new

Tutorial GPT4Free Tutorial Simplified set up 100% working.

1711191154938.png


Salamat nga pala dito lods di ako nakafeedback, ayos din dahil laging naguupdate maker nito​
 

Attachments

He he. Thanks at sa wakas inulit mo yung iyong dating thread. Ang tagal na nito sa forum, and I endorsed it many times simula ng malaman ko yan sa thread mo, kaya sana pakinabangan na ng marami.

For pc Windows 10 users: (Medyo nabago ng kaunti yung instructions, but the older guides still works if you are following the gpt4free development.)
1. Using docker instruction at You do not have permission to view the full content of this post. Log in or register now.: After installing docker, ang prerequisite dyan, be sure docker is running in the background. Open cmd prompt and execute the 2 launch scripts provided. then open You do not have permission to view the full content of this post. Log in or register now. in your browser. Mataas lang yung memory usage ng docker kaya di ko na masyadong ginagamit itong method dahil may mas OK pa dyan - refer below.
2. The rest of the guide for "web view" and the rest possibly works fine since I trust xtekky, but I use the old methods I learned from their d-cord channel and g4f development I use python most of the time on many projects, para di ma-corrupt yung module installations sa python sa dami ng versions nito.

Ito yung basics na mas preferred ko and recommended even before:
Code:
Be sure you installed Python 3.10 or higher to use this python app, kaya for Win10 only ito.
Create a folder, say G4F at C drive
Open cmd prompt and set path to G4F:
cd G4F
Clone the GitHub repository: (You need to install git for Windows)
git clone https://github.com/xtekky/gpt4free.git
Navigate to the project directory:
cd gpt4free
Create a Python virtual environment: You can follow the Python official documentation for virtual environments.
python -m venv venv
Activate the virtual environment on Windows:
.\venv\Scripts\activate
Install the required Python packages from requirements.txt:
pip install -r requirements.txt
Run the Web GUI for the client:
g4f gui
Or
python -m g4f.gui.run
Open http://127.0.0.1:8080 or http://127.0.0.1:8080/chat/, and you are good to go.

Git for windows is here: You do not have permission to view the full content of this post. Log in or register now.
Kung ayaw ninyong gumamit ng Git, just download the latest main code of gpt4free, extract and set the path at command prompt to that folder, and continue to set the virtual environment and the rest get it running.

Note: Ang alam ko, gpt4free will automatically detect the web app of the free provider if you are logged in with an account using Chrome browser. cøøkíés are needed if you are using different browsers to login on the supported and live free providers that's why they added the cøøkíé tutorial. Binanggit na yan noon sa issues section sa github channel. Kay You do not have permission to view the full content of this post. Log in or register now. ko nalaman yan. Sa'kin, Bing works with just logging sa Chrome.

Gpt4free is a collection of many freely available apis in one GUI. Each provider has its own limits to provide requests to use their LLMs, etc. It is said to be unlimited only because of the many LLM providers as a whole and not GPT4 only. Kapiraso lang yung requests na makukuha nyo dyan sa list ng GPT4 providers and the different GPT4 versions (old and new) - see the chart. Mostly, Bing ang pambato nila for GPT4 which already gives you ~30 requests/day visiting bing.com or copilot.microsoft.com on your own. But overall, it's the best UI to use free GPTs nowadays since it has web search, can view attachments like reading pdfs and talk with it, create images, etc. Bukod yan, you can use its api in other clients.

1711267205679.png

Sana marami pang makagamit nito.

--------------------------------------------------------------------------------------------------------------
PS. Pahabol ko lang, kung papatayin ninyo yung server, best is press CTRL + C, then type .\venv\Scripts\deactivate, then exit cmd prompt if you want to. Maganda kasing masanay sa ganyan dahil magagamit ninyo yan if you want to edit, update g4f or gpt4free continuously without closing cmd prompt display. It applies to all python apps running, stopping, updating and switching sequence using the python virtual environment. Pwede rin naman yung i-exit mo na lang yung cmd display kung gusto mong patayin pero it's much safer to reset the environmental variables to normal before exiting.

Kung babalikan ninyo ulit yung same gpt4free folder with the same code version sa cmd, just type .\venv\Scripts\activate and run the app again. Kung nag-update ulit ng code at requirements be sure to follow the same standard procedures unless you know what you are doing.






 

Attachments

Last edited:
He he. Thanks at sa wakas inulit mo yung iyong dating thread. Ang tagal na nito sa forum, and I endorsed it many times simula ng malaman ko yan sa thread mo, kaya sana pakinabangan na ng marami.

For pc Windows 10 users: (Medyo nabago ng kaunti yung instructions, but the older guides still works if you are following the gpt4free development.)
1. Using docker instruction at You do not have permission to view the full content of this post. Log in or register now.: After installing docker, ang prerequisite dyan, be sure docker is running in the background. Open cmd prompt and execute the 2 launch scripts provided. then open You do not have permission to view the full content of this post. Log in or register now. in your browser. Mataas lang yung memory usage ng docker kaya di ko na masyadong ginagamit itong method dahil may mas OK pa dyan - refer below.
2. The rest of the guide for "web view" and the rest possibly works fine since I trust xtekky, but I use the old methods I learned from their d-cord channel and g4f development I use python most of the time on many projects, para di ma-corrupt yung module installations sa python sa dami ng versions nito.

Ito yung basics na mas preferred ko and recommended even before:
Code:
Be sure you installed Python 3.10 or higher to use this python app, kaya for Win10 only ito.
Create a folder, say G4F at C drive
Open cmd prompt and set path to G4F:
cd G4F
Clone the GitHub repository: (You need to install git for Windows)
git clone https://github.com/xtekky/gpt4free.git
Navigate to the project directory:
cd gpt4free
Create a Python virtual environment: You can follow the Python official documentation for virtual environments.
python -m venv venv
Activate the virtual environment on Windows:
.\venv\Scripts\activate
Install the required Python packages from requirements.txt:
pip install -r requirements.txt
Run the Web GUI for the client:
g4f gui
Or
python -m g4f.gui.run
Open http://127.0.0.1:8080 or http://127.0.0.1:8080/chat/, and you are good to go.

Git for windows is here: You do not have permission to view the full content of this post. Log in or register now.
Kung ayaw ninyong gumamit ng Git, just download the latest main code of gpt4free, extract and set the path at command prompt to that folder, and continue to set the virtual environment and the rest get it running.

Note: Ang alam ko, gpt4free will automatically detect the web app of the free provider if you are logged in with an account using Chrome browser. cøøkíés are needed if you are using different browsers to login on the supported and live free providers that's why they added the cøøkíé tutorial. Binanggit na yan noon sa issues section sa github channel. Kay You do not have permission to view the full content of this post. Log in or register now. ko nalaman yan. Sa'kin, Bing works with just logging sa Chrome.

Gpt4free is a collection of many freely available apis in one GUI. Each provider has its own limits to provide requests to use their LLMs, etc. It is said to be unlimited only because of the many LLM providers as a whole and not GPT4 only. Kapiraso lang yung requests na makukuha nyo dyan sa list ng GPT4 providers and the different GPT4 versions (old and new) - see the chart. Mostly, Bing ang pambato nila for GPT4 which already gives you ~30 requests/day visiting bing.com or copilot.microsoft.com on your own. But overall, it's the best UI to use free GPTs nowadays since it has web search, can view attachments like reading pdfs and talk with it, create images, etc. Bukod yan, you can use its api in other clients.

View attachment 2915801

Sana marami pang makagamit nito.








Salamat sa another tut lods matry sa windows less hassle kasi sa linux
 
He he. Thanks at sa wakas inulit mo yung iyong dating thread. Ang tagal na nito sa forum, and I endorsed it many times simula ng malaman ko yan sa thread mo, kaya sana pakinabangan na ng marami.

For pc Windows 10 users: (Medyo nabago ng kaunti yung instructions, but the older guides still works if you are following the gpt4free development.)
1. Using docker instruction at You do not have permission to view the full content of this post. Log in or register now.: After installing docker, ang prerequisite dyan, be sure docker is running in the background. Open cmd prompt and execute the 2 launch scripts provided. then open You do not have permission to view the full content of this post. Log in or register now. in your browser. Mataas lang yung memory usage ng docker kaya di ko na masyadong ginagamit itong method dahil may mas OK pa dyan - refer below.
2. The rest of the guide for "web view" and the rest possibly works fine since I trust xtekky, but I use the old methods I learned from their d-cord channel and g4f development I use python most of the time on many projects, para di ma-corrupt yung module installations sa python sa dami ng versions nito.

Ito yung basics na mas preferred ko and recommended even before:
Code:
Be sure you installed Python 3.10 or higher to use this python app, kaya for Win10 only ito.
Create a folder, say G4F at C drive
Open cmd prompt and set path to G4F:
cd G4F
Clone the GitHub repository: (You need to install git for Windows)
git clone https://github.com/xtekky/gpt4free.git
Navigate to the project directory:
cd gpt4free
Create a Python virtual environment: You can follow the Python official documentation for virtual environments.
python -m venv venv
Activate the virtual environment on Windows:
.\venv\Scripts\activate
Install the required Python packages from requirements.txt:
pip install -r requirements.txt
Run the Web GUI for the client:
g4f gui
Or
python -m g4f.gui.run
Open http://127.0.0.1:8080 or http://127.0.0.1:8080/chat/, and you are good to go.

Git for windows is here: You do not have permission to view the full content of this post. Log in or register now.
Kung ayaw ninyong gumamit ng Git, just download the latest main code of gpt4free, extract and set the path at command prompt to that folder, and continue to set the virtual environment and the rest get it running.

Note: Ang alam ko, gpt4free will automatically detect the web app of the free provider if you are logged in with an account using Chrome browser. cøøkíés are needed if you are using different browsers to login on the supported and live free providers that's why they added the cøøkíé tutorial. Binanggit na yan noon sa issues section sa github channel. Kay You do not have permission to view the full content of this post. Log in or register now. ko nalaman yan. Sa'kin, Bing works with just logging sa Chrome.

Gpt4free is a collection of many freely available apis in one GUI. Each provider has its own limits to provide requests to use their LLMs, etc. It is said to be unlimited only because of the many LLM providers as a whole and not GPT4 only. Kapiraso lang yung requests na makukuha nyo dyan sa list ng GPT4 providers and the different GPT4 versions (old and new) - see the chart. Mostly, Bing ang pambato nila for GPT4 which already gives you ~30 requests/day visiting bing.com or copilot.microsoft.com on your own. But overall, it's the best UI to use free GPTs nowadays since it has web search, can view attachments like reading pdfs and talk with it, create images, etc. Bukod yan, you can use its api in other clients.

View attachment 2915801

Sana marami pang makagamit nito.








Mas maganda na ngayon idol marami na providers. At naka port na sa pip easy install nalang hehe
 
Mas maganda na ngayon idol marami na providers. At naka port na sa pip easy install nalang hehe
Oo nga pakner. Sa PYPI module ng g4f lang through pip ay ok na. No need to go to xtekky's gpt4free.
pip install g4f or pip install -U g4f lang yung umpisa sa cmd and the rest is up to you.
Mas stable sa'kin yan. Meron din gpt4free portable sa github na one-click install using bat at auto-update siya kada andar ng user. Yon yung mas madali. Wala ng i-type pa yung user.

Merong connected python app din yan using Bing's GPT4 for unlimited use as stated by aledipa. Di ko lang na-check kung unlimited nga siya pero it runs well. Connected yan sa gpt4free using its api.
Spoiler contents are visible only to Established Members.

Maraming uses ang g4f sa ibang clients or mods. Ang importante is to know how to use it first with provided features in auto or in manual mode.
 
Oo nga pakner. Sa PYPI module ng g4f lang through pip ay ok na. No need to go to xtekky's gpt4free.
pip install g4f or pip install -U g4f lang yung umpisa sa cmd and the rest is up to you.
Mas stable sa'kin yan. Meron din gpt4free portable sa github na one-click install using bat at auto-update siya kada andar ng user. Yon yung mas madali. Wala ng i-type pa yung user.

Merong connected python app din yan using Bing's GPT4 for unlimited use as stated by aledipa. Di ko lang na-check kung unlimited nga siya pero it runs well. Connected yan sa gpt4free using its api.


Maraming uses ang g4f sa ibang clients or mods. Ang importante is to know how to use it first with provided features in auto or in manual mode.
Nice patry neto lods need pa kasi mag type para ma update yung g4f
 
Nice patry neto lods need pa kasi mag type para ma update yung g4f
Check mo yung bat script kung mag-update siya sa latest. Madali Naman mad-edit Nyan kaysa sa python he he. Ang maganda Kasi Dyan, pagkatapos ay mag-open na yung client sa browser. Kahit Naman lumang gpt4free ay umaandar din pero may kulang ng kaunti. Lagi Silang nag-update dahil sa mga updates ng providers at complaints ng users. Pero yang portable parang abandoned na pero di Naman katagalan. Pag Wala kaming lakad ss laot bukas sa laot, edit ko rin yung bat file.

You do not have permission to view the full content of this post. Log in or register now.,
Pakner, kakauwi ko lang at sa latest g4f or gpt4free yung piniga ko 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.
 
Last edited:
Check mo yung bat script kung mag-update siya sa latest. Madali Naman mad-edit Nyan kaysa sa python he he. Ang maganda Kasi Dyan, pagkatapos ay mag-open na yung client sa browser. Kahit Naman lumang gpt4free ay umaandar din pero may kulang ng kaunti. Lagi Silang nag-update dahil sa mga updates ng providers at complaints ng users. Pero yang portable parang abandoned na pero di Naman katagalan. Pag Wala kaming lakad ss laot bukas sa laot, edit ko rin yung bat file.

sUFF3R,
Pakner, kakauwi ko lang at sa latest g4f or gpt4free yung piniga ko 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.
Thanks master try ko to mamaya otw pa ako work hehe.
 
Thanks master try ko to mamaya otw pa ako work hehe.
Sa palagay ko, uubra rin kung ilagay mo sa requirements yung g4f tulad sa portable, at pag gusto mong mag-update, just type pip install -U g4f para sigurado ka na updated yung gpt4free. Common naman ito sa palaging gumagamit ng gpt4free. Beginners will easily be accustomed with this procedure later as they use it constantly.

PS. Kaka-test ko lang, gumagana ito. Open a blank folder at C with a name with no spaces (for beginners) in cmd prompt. Gamit kayo ng free "drop to dos" app or similar software para madaling mag-open ng cmd sa kahit anong folder sa C drive. Include the requirements.txt and the 2 bat bats I mentioned. Edit the txt and add "g4f" requirement. Yon lang.

Now right-click the folder you placed the files and click "Drop to Dos" or open cmd prompt in that folder using cd command. Run the first bat launcher in cmdr, and when server is running, click or run the last bat file to open the client in your browser.

Kung gusto mong balikan, re-check using pip to update g4f. Simpleng-simple!
 
Last edited:
Basta ang process ng gpt4free, g4f gui kung GUI niya yung gagamitin mo at g4f api kung yung api ang gagamitin on your compatible LLM interface. Check nyo na lang sa cmd display yung actual links dahil baka iba yung lumabas kung di nyo binasa yung code for the ports. Maraming cases na ganyan sa open source devs. Pag nagka-conflict sa ports ninyo, either flush dns or internet reset. Kung di mag-work, just edit the ports para maalis yung conflict. Bihira naman mangyari ito kung di kayo palagamit ng similar apps.

Kung gusto ninyo mag-test ng similar apps ng g4f, try thisYou do not have permission to view the full content of this post. Log in or register now.. Medyo inclined ito sa OpenAI GPTs using g4f module. Normal chatting GUI with AI pa lang yang g4f at wala pang support sa vector databases, so if you want to chat with large files, be sure the LLM or GPT you are using has large token limits to get good results or learn to split documents and embed data one at a time. Yung paggamit ng api is one way if you get an interface or app with a vector database feature. Kaya lang, it has to understand how to use the reversed engineered api of gpt4free. I'll test some good free UIs and provide links if they're OK for such use.
 
Basta ang process ng gpt4free, g4f gui kung GUI niya yung gagamitin mo at g4f api kung yung api ang gagamitin on your compatible LLM interface. Check nyo na lang sa cmd display yung actual links dahil baka iba yung lumabas kung di nyo binasa yung code for the ports. Maraming cases na ganyan sa open source devs. Pag nagka-conflict sa ports ninyo, either flush dns or internet reset. Kung di mag-work, just edit the ports para maalis yung conflict. Bihira naman mangyari ito kung di kayo palagamit ng similar apps.

Kung gusto ninyo mag-test ng similar apps ng g4f, try thisYou do not have permission to view the full content of this post. Log in or register now.. Medyo inclined ito sa OpenAI GPTs using g4f module. Normal chatting GUI with AI pa lang yang g4f at wala pang support sa vector databases, so if you want to chat with large files, be sure the LLM or GPT you are using has large token limits to get good results or learn to split documents and embed data one at a time. Yung paggamit ng api is one way if you get an interface or app with a vector database feature. Kaya lang, it has to understand how to use the reversed engineered api of gpt4free. I'll test some good free UIs and provide links if they're OK for such use.
May post akong procedure to use the g4f api before this. Baka di lumusot at inantok na ako noon.
Uulitin ko dahil added feature ito ng gpt4free para magamit ninyo yung g4f or gpt4free api sa ibang GUI like You do not have permission to view the full content of this post. Log in or register now., You do not have permission to view the full content of this post. Log in or register now. o mga browser plugins like You do not have permission to view the full content of this post. Log in or register now., etc. Pasok kasi ito sa tatlo when I tested sa pc ko sa bahay.
The procedure is stated onYou do not have permission to view the full content of this post. Log in or register now. but we'll use the same bat file to run the api.
1. CD or open a cmd prompt to your g4f working folder and use the same code I mentioned. Be sure to read my#70 post. You need to get the requirements.txt from gpt4free folder and add g4f there, then place it in your working folder. So when you install the requirements, g4f will be included inside the venv folder.
NOTE: Ito ay uubra kung ang ginamit ninyong module ay yung You do not have permission to view the full content of this post. Log in or register now. or yung gpt4free sa github.
Kung ang ginamit ninyong package ay yung na kay gpt4free ni xtekky sa github sa first post, ang lalabas na api url ay yung You do not have permission to view the full content of this post. Log in or register now. (as stated there) which will redirect to You do not have permission to view the full content of this post. Log in or register now.. (Sorry talaga, di ko na-verify na iba pala yung url na gamit ng g4f vs gpt4free pack. MY BAD! Medyo nalito na isip/mata ko't laging puyat at nagmamadali sa hiram kong laptop, kaya ang nakagawian ko ay yung g4f folder parati when I did the 2 bat shortcuts, hindi na yung gpt4free folder. Api urls lang naman yung naiba, at malalaman nyo naman yan when api server runs. Ito yung logs sa cmd using gpt4free folder ni xtekky. Nasa baba pa nyan yung cmd display using g4f app when the api server runs.
Just install the missing module when the last line states : ModuleNotFoundError: No module named 'xxxxx' by typing: pip install xxxxx, where xxxx is the missing module. This can happen if you use pip to install g4f and not " pip install -U g4f[all] ".
1711647079433.png


The code below still works using You do not have permission to view the full content of this post. Log in or register now. or You do not have permission to view the full content of this post. Log in or register now. release packs. Nakakalito lang akong mag-explain so please bear with me.
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 using "g4f api" or below
python -m g4f.api.run

1711625062460.png

Your api server is now running, but the problem is, windows does not accept this localhost url, so we use You do not have permission to view the full content of this post. Log in or register now. which will redirect to the api url You do not have permission to view the full content of this post. Log in or register now. which you can use as api url on compatible LLM interfaces.
1711625547581.png

You do not have permission to view the full content of this post. Log in or register now., is the api base url used for chat completions

1711625672753.png

You do not have permission to view the full content of this post. Log in or register now., is for checking available models used by the api

1711625713083.png
A sample way to use the api url that works is using ChatGPTBox chrome addon.
1711626199952.png

Kita nyo, api url lang with no need to place an api key - leave it blank.
1711626456181.png

Using gpt-4-32k it works.

Di ko magamit yung api url sa bagong Nextchat at Chatbox sa ginagamit kong laptop ng kapatid ko. Yung nasa pc ko sa bahay may option sa custom api urls - working sila. Pati yung Harpa.ai, nawala na yung option to use custom apis he he. Mag-downgrade na lang ako bukas to check other compatible GUIs. But the latest issues sa github states na may problema na yung ibang UIs using gpt4free/g4f api. At least may isang kumagat siya para magamit natin.

Kung may problema kayo sa setup ko, just ask and I'll try to explain. Nataon kasi na nakabakasyon ako elsewhere kaya maliit lang ang time to check my app testing. Yung guide naman ni You do not have permission to view the full content of this post. Log in or register now. is as good as mine -medyo clear pa nga kaysa sa'kin he he. Edit ko na lang itong post to make it clearer or You do not have permission to view the full content of this post. Log in or register now. can delete this post if found unuseful.
 

Attachments

Last edited:
paano po ma fix
C:\Users\\Desktop\CHATGPT>main.py
Traceback (most recent call last):
File "C:\Users\\Desktop\CHATGPT\MAIN.PY", line 3, in <module>
from g4f.cøøkíés import set_cookies
ModuleNotFoundError: No module named 'g4f.cøøkíés'



Screenshot (15).png
 

Attachments

Hindi ako Termux user at sa Windows 10 ko lang ginagamit ang gpt4free and/or g4f kung kailangan. I'll provide tips for people having problems using it as a whole - on any method, the same as the first post for mobile devices with Termux. Hindi madaling mag-troubleshoot in all cases.

1. For other issues using gpt4free, download this "Issues page" I saved at present and check if they are similar to yours. The 4-page issues pages might help you find a solution. click ninyo yung mga titles na malapit sa case ninyo. check nyo na lang sa gpt4free issues page kung may nadagdag dyan as members are still active.
1711934214272.png

or You do not have permission to view the full content of this post. Log in or register now.
2. Please read the documentation page in your gpt4free archive folder:
You do not have permission to view the full content of this post. Log in or register now.
Suyurin ninyo yung mga "*.md" text files pati content ng "guides" folder. Mas mapapali kayo sa paggamit with less help.
Usually, yung may mga errors ay maaring related to requirement conflicts, missing modules due to some installation failures that you missed during installation. Sa Windows madaling makita dahil malaki yung screen he he, pero sa mobile ay baka di nyo mapansin. Minsan, aandar yung UI pero walang response or get a lot of errors that you can't seem to find an answer if you are new to this.
Isama nyo na rin yung official documentation page nila You do not have permission to view the full content of this post. Log in or register now.
Supplemented nya yung doc pages sa taas.

Take, for example, issues relating to requirements.md:
Code:
### G4F - Additional Requirements

#### Introduction

You can install requirements partially or completely. So G4F can be used as you wish. You have the following options for this:

#### Options

Install g4f with all possible dependencies:
```
pip install -U g4f[all]
```
Or install only g4f and the required packages for the OpenaiChat provider:
```
pip install -U g4f[openai]
```
Install required packages for the Interference API:
```
pip install -U g4f[api]
```
Install required packages for the Web UI:
```
pip install -U g4f[gui]
```
Install required packages for uploading/generating images:
```
pip install -U g4f[image]
```
Install the required packages for using the web driver:
```
pip install -U g4f[webdriver]
```
Install the required package for proxy support with aiohttp:
```
pip install -U aiohttp_socks
```
Install the required package for loading cøøkíés from the browser:
```
pip install browser_cookie3
```
Install curl_cffi for better protection from being blocked:
```
pip install curl_cffi
```
Install all packages and uninstall this package for disabling the web driver:
```
pip uninstall undetected-chromedriver
```

[Return to Home](/)
Some providers may need live "cøøkíés" to use them in gptfree. But if you are logged in to the supported provider's links, gpt4free was designed to detect them via the web driver. If not, you need to get the required cøøkíé parameters manually as stated sa first post.

Ang gpt4free kasi is either used as your GPT WebUI for all providers, customized to be used for one model/provider, or a selective few if you want to, add your providers (like those who were working in the past but requested to be removed), and as a separate API to be used outside of gpt4free similar to owning an OpenAI account but without using an api key. Depende na lang siguro sa OS platform yung behavior nya in integrating the g4f modules in your preferred browsers and other apps. It's complicated, but you'll get used to it later. Mas preferred gamitin yan using "Web view" dahil incorporated na yung plugins to use web search, read file attachments, automatic/manual use of models/providers, etc.

Use your common sense in using solely a free GPT provider like 1. You do not have permission to view the full content of this post. Log in or register now. or 2. You do not have permission to view the full content of this post. Log in or register now.or You do not have permission to view the full content of this post. Log in or register now. only. Kung sila lang yung pakay ninyo. mas preferable gamitin sa kanilang respective playground kaysa sa gpt4free. the functionalities a better there than using gpt4free if you know what I mean.

Doon sa nakuha yung pag-run ng gpt4free api server. The least I could do right now aside form using ChtGPTBox browser addon is provide a sample python code for it. Kakauwi ko lang sa bahay after my vacation.
Code:
import requests
import json

# Initialize conversation history
conversation_history = []

def save_conversation_to_json(conversation_history, filename="conversation_history.json"):
    with open(filename, 'w') as f:
        json.dump(conversation_history, f)

def start_chat():
    global conversation_history
    while True:
        try:
            message = input("You: ")
            if message.lower() == "exit":
                break
            url = "http://localhost:1337/v1/chat/completions"
            body = {
                "model": "gpt-3.5-turbo-16k",
                "stream": False,
                "messages": conversation_history + [{"role": "user", "content": message}]
            }
            response = requests.post(url, json=body)
            response.raise_for_status() # Raises an HTTPError if the status is 4xx, 5xx
            json_response = response.json().get('choices', [])
            for choice in json_response:
                print("Bot:", choice.get('message', {}).get('content', ''))
                conversation_history.append({"role": "assistant", "content": choice.get('message', {}).get('content', '')})
            save_conversation_to_json(conversation_history)
        except requests.exceptions.HTTPError as errh:
            print ("HTTP Error:", errh)
        except requests.exceptions.ConnectionError as errc:
            print ("Error Connecting:", errc)
        except requests.exceptions.Timeout as errt:
            print ("Timeout Error:", errt)
        except requests.exceptions.RequestException as err:
            print ("Something went wrong", err)

# Start the chat
start_chat()
Ginawan ko lang ng continuous conversation, error checking, history list ng conversations that saves automatically. Just a basic working chatbot using gpt4free api. Ang supported lang nya is the OpenAI models na nakalagay sa You do not have permission to view the full content of this post. Log in or register now. page. This is just a small revision sa Interference api page ng gpt4free. Pwede nyo pa yang ma-improve like make it read documents, adding vector database, etc.

Ang isang magandang option to use the g4f api na na-test ko is using it in You do not have permission to view the full content of this post. Log in or register now.(similar to OpenAI's Code Interpreter) dahil supported nya ang You do not have permission to view the full content of this post. Log in or register now.though pwede rin hindi dahil may ibang free options din. it's just one example to do it since maraming ganitong apps that uses custom apis like gorilla, desktop-copilot, etc...by just running their code. You don't need to be a programmer, but just learn how to run python and other code languages in your device.

Ang pansin ko sa gpt4free sa ngayon, kung kumpleto yung modules mo sa system Python sa Windows, may mga features na na either make your apps fail or make you apps function better, so best is create a virtual environment for each app to be sure that it uses the specified python requirements, etc.

Good Luck na lang sa inyo.
 

Attachments

paano po ma fix
C:\Users\\Desktop\CHATGPT>main.py
Traceback (most recent call last):
File "C:\Users\\Desktop\CHATGPT\MAIN.PY", line 3, in <module>
from g4f.cøøkíés import set_cookies
ModuleNotFoundError: No module named 'g4f.cøøkíés'



View attachment 2922007
Dyan sa manual guide sa first post, kung "copy-paste" mo eksakto yung 2 codes, missing module at syntax error ang lalabas dyan.
Ex. Mali ang spelling ng 'cøøkíés' sa first code at i-backspace mo yung 3rd line ng 2nd code sa iyong editor.
Kung lumitaw yung " No module named 'flask' ", install mo na lang separately using pip at ok na yan he he.

Parang ganito ang magiging version ng main.py mo:
Code:
from g4f.gui import run_gui

from g4f.cøøkíés import set_cookies
set_cookies(".bing.com", {
   "_U": "bing cøøkíé"
 })

run_gui()

set_cookies(".bing.com", {
   "_U": "<place you cøøkíé here!>"
 })
This is used when gpt4free could not detect cøøkíés automatically by web driver for the GUI.
Edit mo na lang kung binago ng PHC yung prohibited texts!
 
Last edited:
Doon sa hindi marunong mag-setup sa python, may released na portable na ngayon sa Windows users: You do not have permission to view the full content of this post. Log in or register now.
Monitor the development para malaman ninyo yung iba pang paggamit nyan.
1712465909426.png

This is just a multi-LLM chatbot, with no extra features yet kaya sa matagalan bibigay yan lalo pa kung you run it locally on minimum hardware. Hanapin ninyo yung safe usage nya.
 

Attachments

Last edited:
Ha? Na-WOW Mali ka yata he he. Multi-models app yan at kasama rin dyan yung ilang versions ng GPT4 - from Bing's tuned GPT-4-turbo (32k), GPT-4 (na old 8K), GPT-4-32k, standard GPT-4-turbo by OpenAI, atbp. Maraming klaseng GPT-4, kaya kung yan yung hanap mo, switch to manual sa Model and Provider and choose the gpt-4 version you want to use. Mamili ka. Yan yung purpose ni gpt4free, kasama pa yung option to use the other free LLM providers. Kaya nga "GPT for Free" interface yan.

Kung gpt4free git yung ginamit ninyo at lumabas na yung client link, check ninyo yung present available models dito: You do not have permission to view the full content of this post. Log in or register now. . Nandyan lahat ng available models, but access to them depends on model availability sa site provider.

Tandaan mo, pag naka-auto mode kasi, yung UI ang hahanap ng model para sa iyo. It will not choose GPT4 by default. It depends on the best available models sa default providers sa settings,
Check mo sa github yung kanilang chart ng GPT-4 providers para alam mo rin kung alin ang pwedeng gagamitin sa UI, at yung live or dead. Kakaunti di ba?
You do not have permission to view the full content of this post. Log in or register now.

Since parang software h@ck yan to use a collection of freely available LLM and GPT4 models, may time na madaling mawala yung access sa GPT4 kaya ang bagsak nyan parati ay using Bing (Microsoft Copilot) since GPT4 din ang gamit nyan. Providers are revising their web apps which makes it difficult for gpt4free web drivers to detect. Kaya you need to provide cøøkíés for the providers. An example was given by sUFF3R to add Bing cøøkíés before you run the GUI. Lately, yung Bing, napilitan na rin akong gumamit ng cøøkíé to check if it works in gpt4free - and it did. Latest issue ngayon yan sa gpt4free development dahil sa pagbabago ng Microsoft. Pati nga image generation nawala. (Yan yung limits to use GPT-4-xx models dyan sa gpt4free at yung main feature nya ay paggamit ng lamang ng maraming free LLMs/GPTs - not specifically GPT4 he he.)

Medyo nakakalitong gamitin yan if you're new to it kaya I advice users to read the documentations before using, and always visits the issue section sa github dahil parating may mga bugs na lumalabas para i-fix ng developers. Magandang training ground yan to use other apps you may run locally.

Kung gusto ninyong maghanap ng possible free GPT4+ model chat links na pandagdag dyan, check nyo na lang itong You do not have permission to view the full content of this post. Log in or register now. link. Sa dami ng listahan na yan malamang may ilan na papasok sa taste ninyo he he.
 
Last edited:
Ha? Na-WOW Mali ka yata he he. Multi-models app yan at kasama rin dyan yung ilang versions ng GPT4 - from Bing's tuned GPT-4-turbo (32k), GPT-4 (na old 8K), GPT-4-32k, standard GPT-4-turbo by OpenAI, atbp. Maraming klaseng GPT-4, kaya kung yan yung hanap mo, switch to manual sa Model and Provider and choose the gpt-4 version you want to use. Mamili ka. Yan yung purpose ni gpt4free, kasama pa yung option to use the other free LLM providers. Kaya nga "GPT for Free" interface yan.

Kung gpt4free git yung ginamit ninyo at lumabas na yung client link, check ninyo yung present available models dito: You do not have permission to view the full content of this post. Log in or register now. . Nandyan lahat ng available models, but access to them depends on model availability sa site provider.

Tandaan mo, pag naka-auto mode kasi, yung UI ang hahanap ng model para sa iyo. It will not choose GPT4 by default. It depends on the best available models sa default providers sa settings,
Check mo sa github yung kanilang chart ng GPT-4 providers para alam mo rin kung alin ang pwedeng gagamitin sa UI, at yung live or dead. Kakaunti di ba?
You do not have permission to view the full content of this post. Log in or register now.

Since parang software h@ck yan to use a collection of freely available LLM and GPT4 models, may time na madaling mawala yung access sa GPT4 kaya ang bagsak nyan parati ay using Bing (Microsoft Copilot) since GPT4 din ang gamit nyan. Providers are revising their web apps which makes it difficult for gpt4free web drivers to detect. Kaya you need to provide cøøkíés for the providers. An example was given by sUFF3R to add Bing cøøkíés before you run the GUI. Lately, yung Bing, napilitan na rin akong gumamit ng cøøkíé to check if it works in gpt4free - and it did. Latest issue ngayon yan sa gpt4free development dahil sa pagbabago ng Microsoft. Pati nga image generation nawala. (Yan yung limits to use GPT-4-xx models dyan sa gpt4free at yung main feature nya ay paggamit ng lamang ng maraming free LLMs/GPTs - not specifically GPT4 he he.)

Medyo nakakalitong gamitin yan if you're new to it kaya I advice users to read the documentations before using, and always visits the issue section sa github dahil parating may mga bugs na lumalabas para i-fix ng developers. Magandang training ground yan to use other apps you may run locally.

Kung gusto ninyong maghanap ng possible free GPT4+ model chat links na pandagdag dyan, check nyo na lang itong You do not have permission to view the full content of this post. Log in or register now. link. Sa dami ng listahan na yan malamang may ilan na papasok sa taste ninyo he he.
nays napaka active mo boss alist1986
 

Users search this thread by keywords

  1. Gpt4
  2. chatbot ai latest
  3. Cheat gpt
  4. chatgpt
  5. gpt4 prompt
  6. Poe bypass
  7. gpt cøøkíés
Back
Top