mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-10-24 00:33:11 +08:00
Update static url
This commit is contained in:
46
README.md
46
README.md
@@ -45,15 +45,15 @@ docker pull hlohaus789/g4f
|
|||||||
Reach out for help in our [Support Group: discord.gg/qXA4Wf4Fsm](https://discord.gg/qXA4Wf4Fsm).
|
Reach out for help in our [Support Group: discord.gg/qXA4Wf4Fsm](https://discord.gg/qXA4Wf4Fsm).
|
||||||
|
|
||||||
- **Read our Documentation** 📖
|
- **Read our Documentation** 📖
|
||||||
Find detailed guidance and resources at [gpt4free.github.io/docs](https://github.com/gpt4free/gpt4free.github.io).
|
Find detailed guidance and resources at [g4f.dev/docs](https://github.com/gpt4free/g4f.dev).
|
||||||
|
|
||||||
## 🔻 Site Takedown
|
## 🔻 Site Takedown
|
||||||
|
|
||||||
Is your site on this repository and you want to take it down? Send an email to takedown@g4f.ai with proof it is yours and it will be removed as fast as possible. To prevent reproduction please secure your API. 😉
|
Is your site on this repository and you want to take it down? Send an email to takedown@g4f.ai with proof it is yours and it will be removed as fast as possible. To prevent reproduction please secure your API. 😉
|
||||||
|
|
||||||
## 🚀 G4F on GitHub Pages [](https://gpt4free.github.io/)
|
## 🚀 G4F on GitHub Pages [](https://g4f.dev/)
|
||||||
|
|
||||||
> Explore the [G4F on GitHub Pages](https://gpt4free.github.io/).
|
> Explore the [G4F on GitHub Pages](https://g4f.dev/).
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -69,12 +69,12 @@ Is your site on this repository and you want to take it down? Send an email to t
|
|||||||
- [📝 Text Generation](#-text-generation)
|
- [📝 Text Generation](#-text-generation)
|
||||||
- [🎨 Image Generation](#-image-generation)
|
- [🎨 Image Generation](#-image-generation)
|
||||||
- [🌐 Web Interface](#-web-interface)
|
- [🌐 Web Interface](#-web-interface)
|
||||||
- [🖥️ Local Inference](https://github.com/gpt4free/gpt4free.github.io/blob/main/docs/local.md)
|
- [🖥️ Local Inference](https://github.com/gpt4free/g4f.dev/blob/main/docs/local.md)
|
||||||
- [🤖 Interference API](#-interference-api)
|
- [🤖 Interference API](#-interference-api)
|
||||||
- [🛠️ Configuration](https://github.com/gpt4free/gpt4free.github.io/blob/main/docs/configuration.md)
|
- [🛠️ Configuration](https://github.com/gpt4free/g4f.dev/blob/main/docs/configuration.md)
|
||||||
- [📱 Run on Smartphone](#-run-on-smartphone)
|
- [📱 Run on Smartphone](#-run-on-smartphone)
|
||||||
- [📘 Full Documentation for Python API](#-full-documentation-for-python-api)
|
- [📘 Full Documentation for Python API](#-full-documentation-for-python-api)
|
||||||
- [🚀 Providers and Models](https://github.com/gpt4free/gpt4free.github.io/blob/main/docs%2Fproviders-and-models.md)
|
- [🚀 Providers and Models](https://github.com/gpt4free/g4f.dev/blob/main/docs%2Fproviders-and-models.md)
|
||||||
- [🔗 Powered by gpt4free](#-powered-by-gpt4free)
|
- [🔗 Powered by gpt4free](#-powered-by-gpt4free)
|
||||||
- [🤝 Contribute](#-contribute)
|
- [🤝 Contribute](#-contribute)
|
||||||
- [How do i create a new Provider?](#guide-how-do-i-create-a-new-provider)
|
- [How do i create a new Provider?](#guide-how-do-i-create-a-new-provider)
|
||||||
@@ -151,7 +151,7 @@ By following these steps, you should be able to successfully install and run the
|
|||||||
pip install -U g4f[all]
|
pip install -U g4f[all]
|
||||||
```
|
```
|
||||||
|
|
||||||
> How do I install only parts or do disable parts? **Use partial requirements:** [/docs/requirements](https://github.com/gpt4free/gpt4free.github.io/blob/main/docs/requirements.md)
|
> How do I install only parts or do disable parts? **Use partial requirements:** [/docs/requirements](https://github.com/gpt4free/g4f.dev/blob/main/docs/requirements.md)
|
||||||
|
|
||||||
#### Install from Source:
|
#### Install from Source:
|
||||||
```bash
|
```bash
|
||||||
@@ -160,7 +160,7 @@ cd gpt4free
|
|||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
```
|
```
|
||||||
|
|
||||||
> How do I load the project using git and installing the project requirements? **Read this tutorial and follow it step by step:** [/docs/git](https://github.com/gpt4free/gpt4free.github.io/blob/main/docs/git.md)
|
> How do I load the project using git and installing the project requirements? **Read this tutorial and follow it step by step:** [/docs/git](https://github.com/gpt4free/g4f.dev/blob/main/docs/git.md)
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -195,7 +195,7 @@ response = client.images.generate(
|
|||||||
|
|
||||||
print(f"Generated image URL: {response.data[0].url}")
|
print(f"Generated image URL: {response.data[0].url}")
|
||||||
```
|
```
|
||||||
[](https://github.com/gpt4free/gpt4free.github.io/blob/main/docs/client.md)
|
[](https://github.com/gpt4free/g4f.dev/blob/main/docs/client.md)
|
||||||
|
|
||||||
### 🌐 Web Interface
|
### 🌐 Web Interface
|
||||||
**Run the GUI using Python:**
|
**Run the GUI using Python:**
|
||||||
@@ -213,7 +213,7 @@ python -m g4f.cli gui --port 8080 --debug
|
|||||||
python -m g4f --port 8080 --debug
|
python -m g4f --port 8080 --debug
|
||||||
```
|
```
|
||||||
|
|
||||||
> **Learn More About the GUI:** For detailed instructions on how to set up, configure, and use the GPT4Free GUI, refer to the [GUI Documentation](https://github.com/gpt4free/gpt4free.github.io/blob/main/docs/gui.md) . This guide includes step-by-step details on provider selection, managing conversations, using advanced features like speech recognition, and more.
|
> **Learn More About the GUI:** For detailed instructions on how to set up, configure, and use the GPT4Free GUI, refer to the [GUI Documentation](https://github.com/gpt4free/g4f.dev/blob/main/docs/gui.md) . This guide includes step-by-step details on provider selection, managing conversations, using advanced features like speech recognition, and more.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -221,28 +221,28 @@ python -m g4f --port 8080 --debug
|
|||||||
|
|
||||||
The **Interference API** enables seamless integration with OpenAI's services through G4F, allowing you to deploy efficient AI solutions.
|
The **Interference API** enables seamless integration with OpenAI's services through G4F, allowing you to deploy efficient AI solutions.
|
||||||
|
|
||||||
- **Documentation**: [Interference API Docs](https://github.com/gpt4free/gpt4free.github.io/blob/main/docs/interference-api.md)
|
- **Documentation**: [Interference API Docs](https://github.com/gpt4free/g4f.dev/blob/main/docs/interference-api.md)
|
||||||
- **Endpoint**: `http://localhost:1337/v1`
|
- **Endpoint**: `http://localhost:1337/v1`
|
||||||
- **Swagger UI**: Explore the OpenAPI documentation via Swagger UI at `http://localhost:1337/docs`
|
- **Swagger UI**: Explore the OpenAPI documentation via Swagger UI at `http://localhost:1337/docs`
|
||||||
- **Provider Selection**: [How to Specify a Provider?](https://github.com/gpt4free/gpt4free.github.io/blob/main/docs/selecting_a_provider.md)
|
- **Provider Selection**: [How to Specify a Provider?](https://github.com/gpt4free/g4f.dev/blob/main/docs/selecting_a_provider.md)
|
||||||
|
|
||||||
This API is designed for straightforward implementation and enhanced compatibility with other OpenAI integrations.
|
This API is designed for straightforward implementation and enhanced compatibility with other OpenAI integrations.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### 📱 Run on Smartphone
|
### 📱 Run on Smartphone
|
||||||
Run the Web UI on your smartphone for easy access on the go. Check out the dedicated guide to learn how to set up and use the GUI on your mobile device: [Run on Smartphone Guide](https://github.com/gpt4free/gpt4free.github.io/blob/main/docs/guides/phone.md)
|
Run the Web UI on your smartphone for easy access on the go. Check out the dedicated guide to learn how to set up and use the GUI on your mobile device: [Run on Smartphone Guide](https://github.com/gpt4free/g4f.dev/blob/main/docs/guides/phone.md)
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
#### **📘 Full Documentation for Python API**
|
#### **📘 Full Documentation for Python API**
|
||||||
- **Client API from G4F:** [/docs/client](https://github.com/gpt4free/gpt4free.github.io/blob/main/docs/client.md)
|
- **Client API from G4F:** [/docs/client](https://github.com/gpt4free/g4f.dev/blob/main/docs/client.md)
|
||||||
- **AsyncClient API from G4F:** [/docs/async_client](https://github.com/gpt4free/gpt4free.github.io/blob/main/docs/async_client.md)
|
- **AsyncClient API from G4F:** [/docs/async_client](https://github.com/gpt4free/g4f.dev/blob/main/docs/async_client.md)
|
||||||
- **Requests API from G4F:** [/docs/requests](https://github.com/gpt4free/gpt4free.github.io/blob/main/docs/requests.md)
|
- **Requests API from G4F:** [/docs/requests](https://github.com/gpt4free/g4f.dev/blob/main/docs/requests.md)
|
||||||
- **File API from G4F:** [/docs/file](https://github.com/gpt4free/gpt4free.github.io/blob/main/docs/file.md)
|
- **File API from G4F:** [/docs/file](https://github.com/gpt4free/g4f.dev/blob/main/docs/file.md)
|
||||||
- **PydanticAI and LangChain Integration for G4F:** [/docs/pydantic_ai](https://github.com/gpt4free/gpt4free.github.io/blob/main/docs/pydantic_ai.md)
|
- **PydanticAI and LangChain Integration for G4F:** [/docs/pydantic_ai](https://github.com/gpt4free/g4f.dev/blob/main/docs/pydantic_ai.md)
|
||||||
- **Legacy API with python modules:** [/docs/legacy](https://github.com/gpt4free/gpt4free.github.io/blob/main/docs/legacy.md)
|
- **Legacy API with python modules:** [/docs/legacy](https://github.com/gpt4free/g4f.dev/blob/main/docs/legacy.md)
|
||||||
- **G4F - Media Documentation (Image, Audio and Video)** [/docs/media](https://github.com/gpt4free/gpt4free.github.io/blob/main/docs/media.md) *(New)*
|
- **G4F - Media Documentation (Image, Audio and Video)** [/docs/media](https://github.com/gpt4free/g4f.dev/blob/main/docs/media.md) *(New)*
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -268,16 +268,16 @@ MoneyPrinter V2 cranks up the automation for making money online. It’s a compl
|
|||||||
|
|
||||||
> [FujiwaraChoki/MoneyPrinterV2 on GitHub](https://github.com/FujiwaraChoki/MoneyPrinterV2)
|
> [FujiwaraChoki/MoneyPrinterV2 on GitHub](https://github.com/FujiwaraChoki/MoneyPrinterV2)
|
||||||
|
|
||||||
> [Full list of GPT4Free powered sites and tools](https://github.com/gpt4free/gpt4free.github.io/blob/main/docs/powered-by.md)
|
> [Full list of GPT4Free powered sites and tools](https://github.com/gpt4free/g4f.dev/blob/main/docs/powered-by.md)
|
||||||
|
|
||||||
## 🤝 Contribute
|
## 🤝 Contribute
|
||||||
We welcome contributions from the community. Whether you're adding new providers or features, or simply fixing typos and making small improvements, your input is valued. Creating a pull request is all it takes – our co-pilot will handle the code review process. Once all changes have been addressed, we'll merge the pull request into the main branch and release the updates at a later time.
|
We welcome contributions from the community. Whether you're adding new providers or features, or simply fixing typos and making small improvements, your input is valued. Creating a pull request is all it takes – our co-pilot will handle the code review process. Once all changes have been addressed, we'll merge the pull request into the main branch and release the updates at a later time.
|
||||||
|
|
||||||
###### Guide: How do i create a new Provider?
|
###### Guide: How do i create a new Provider?
|
||||||
- **Read:** [Create Provider Guide](https://github.com/gpt4free/gpt4free.github.io/blob/main/docs/guides/create_provider.md)
|
- **Read:** [Create Provider Guide](https://github.com/gpt4free/g4f.dev/blob/main/docs/guides/create_provider.md)
|
||||||
|
|
||||||
###### Guide: How can AI help me with writing code?
|
###### Guide: How can AI help me with writing code?
|
||||||
- **Read:** [AI Assistance Guide](https://github.com/gpt4free/gpt4free.github.io/blob/main/docs/guides/help_me.md)
|
- **Read:** [AI Assistance Guide](https://github.com/gpt4free/g4f.dev/blob/main/docs/guides/help_me.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@@ -21,8 +21,9 @@ RUN apt-get update && apt-get upgrade -y \
|
|||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
&& rm --recursive --force /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
&& rm --recursive --force /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||||
|
|
||||||
RUN mkdir -p $G4F_DIR
|
RUN mkdir -p $G4F_DIR && touch /var/log/cron.log
|
||||||
RUN chown "${G4F_USER_ID}:${G4F_USER_ID}" $G4F_DIR
|
RUN chown "${G4F_USER_ID}:${G4F_USER_ID}" $G4F_DIR /var/log/cron.log \
|
||||||
|
&& chmod gu+rw /var/run && chmod gu+s /usr/sbin/cron
|
||||||
|
|
||||||
USER $G4F_USER_ID
|
USER $G4F_USER_ID
|
||||||
WORKDIR $G4F_DIR
|
WORKDIR $G4F_DIR
|
||||||
@@ -30,9 +31,11 @@ WORKDIR $G4F_DIR
|
|||||||
ENV HOME /home/$G4F_USER
|
ENV HOME /home/$G4F_USER
|
||||||
ENV PATH "${HOME}/.local/bin:${PATH}"
|
ENV PATH "${HOME}/.local/bin:${PATH}"
|
||||||
|
|
||||||
RUN git clone https://github.com/xtekky/gpt4free.git $G4F_DIR
|
RUN git clone https://github.com/xtekky/gpt4free.git $G4F_DIR \
|
||||||
RUN printf "0 * * * * python -m etc.tool.update\n" > cronfile
|
&& printf "*/15 * * * * python -m etc.tool.update\n" > cronfile && crontab cronfile \
|
||||||
RUN crontab cronfile
|
&& pip install --no-cache-dir -r requirements-slim.txt
|
||||||
RUN pip install --no-cache-dir -r requirements-slim.txt
|
RUN git clone https://github.com/hlohaus/deepseek4free.git \
|
||||||
|
&& cd deepseek4free && git checkout 21Feb \
|
||||||
|
&& pip install --no-cache-dir . && cd .. && rm -rf deepseek4free
|
||||||
|
|
||||||
CMD python -m g4f --port 8080 --debug --reload
|
CMD cron && tail -f /var/log/cron.log & python -m g4f --port 8080 --debug --reload
|
@@ -374,7 +374,7 @@ class PollinationsAI(AsyncGeneratorProvider, ProviderModelMixin):
|
|||||||
if model == "gptimage":
|
if model == "gptimage":
|
||||||
n = 1
|
n = 1
|
||||||
# Only remote images are supported
|
# Only remote images are supported
|
||||||
image = [item[0] for item in media if isinstance(item[0], str) and item[0].startswith("http")]
|
image = [item[0] for item in media if isinstance(item[0], str) and item[0].startswith("http")] if media else []
|
||||||
params = {
|
params = {
|
||||||
**params,
|
**params,
|
||||||
"image": ",".join(image) if image else "",
|
"image": ",".join(image) if image else "",
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
PACKAGE_NAME = "g4f"
|
PACKAGE_NAME = "g4f"
|
||||||
ORGANIZATION = "gpt4free"
|
ORGANIZATION = "gpt4free"
|
||||||
GITHUB_REPOSITORY = f"xtekky/{ORGANIZATION}"
|
GITHUB_REPOSITORY = f"xtekky/{ORGANIZATION}"
|
||||||
STATIC_DOMAIN = f"{ORGANIZATION}.github.io"
|
STATIC_DOMAIN = f"g4f.dev"
|
||||||
STATIC_URL = f"https://{STATIC_DOMAIN}/"
|
STATIC_URL = f"https://{STATIC_DOMAIN}/"
|
||||||
DIST_DIR = f"./{STATIC_DOMAIN}/dist"
|
DIST_DIR = f"./{STATIC_DOMAIN}/dist"
|
||||||
|
Reference in New Issue
Block a user