deutschland15
Addict
Thank you for sharing, TS. Will try this later.
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.
Salamat sa another tut lods matry sa windows less hassle kasi sa linuxHe 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 heheHe 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.
Oo nga pakner. Sa PYPI module ng g4f lang through pip ay ok na. No need to go to xtekky's gpt4free.Mas maganda na ngayon idol marami na providers. At naka port na sa pip easy install nalang hehe
Nice patry neto lods need pa kasi mag type para ma update yung g4fOo 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.
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.Nice patry neto lods need pa kasi mag type para ma update yung g4f
@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
start "" http://127.0.0.1:8080/chat/
Thanks master try ko to mamaya otw pa ako work hehe.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:
Sorry at hanggang dyan lang muna yung kaya ko't inabot na pala ako ng 1:30AM para magpa-antok.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
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:
Sa 2 bat files or 2 clicks to run gpt4free, pwede na yan kaysa mag-type ka pa or copy paste method he he.Code:start "" http://127.0.0.1:8080/chat/
Improve nyo na lang or hanap kayo ng magagaling sa batch programming.
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.Thanks master try ko to mamaya otw pa ako work hehe.
May post akong procedure to use the g4f api before this. Baka di lumusot at inantok na ako noon.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.
@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
### 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](/)
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()
Dyan sa manual guide sa first post, kung "copy-paste" mo eksakto yung 2 codes, missing module at syntax error ang lalabas dyan.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
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!>"
})
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.
nays napaka active mo boss alist1986Ha? 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.