feat: add app GPT4Free

This commit is contained in:
arch3rPro
2025-08-01 15:01:31 +08:00
parent 72e26982c4
commit 0b96ab1668
14 changed files with 304 additions and 0 deletions

View File

@@ -160,6 +160,26 @@
</tr> </tr>
</table> </table>
<table>
<tr>
<td width="100%" align="center">
<a href="./apps/gpt4free/README.md">
<img src="./apps/gpt4free/logo.png" width="60" height="60" alt="GPT4Free">
<br><b>GPT4Free</b>
</a>
🚀 免费的GPT-4和其他大语言模型API接口
<kbd>0.5.7.0</kbd> • [官网链接](https://github.com/xtekky/gpt4free)
</td>
<!-- <td width="33%" align="center"> -->
</td>
<!-- <td width="33%" align="center"> -->
</td>
</tr>
</table>
#### 📝 文档与内容管理 #### 📝 文档与内容管理

View File

@@ -0,0 +1,24 @@
additionalProperties:
formFields:
- default: 8080
envKey: PANEL_APP_PORT_HTTP
labelEn: Web Interface Port
labelZh: Web界面端口
label:
en: Web Interface Port
zh: Web界面端口
zh-Hant: Web界面埠
required: true
rule: paramPort
type: number
- default: 1337
envKey: PANEL_APP_PORT_API
labelEn: API Port
labelZh: API接口端口
label:
en: API Port
zh: API接口端口
zh-Hant: API接口埠
required: true
rule: paramPort
type: number

View File

@@ -0,0 +1,20 @@
services:
gpt4free:
image: hlohaus789/g4f:0.5.7.0-slim
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
volumes:
- ./har_and_cookies:/app/har_and_cookies
- ./generated_media:/app/generated_media
ports:
- ${PANEL_APP_PORT_HTTP}:8080
- ${PANEL_APP_PORT_API}:8080
environment:
- OLLAMA_HOST=host.docker.internal
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true

View File

@@ -0,0 +1,4 @@
#!/bin/bash
chown -R 1000:1000 har_and_cookies
chown -R 1000:1000 generated_media

View File

@@ -0,0 +1,35 @@
additionalProperties:
formFields:
- default: 8080
envKey: PANEL_APP_PORT_HTTP
labelEn: Web Interface Port
labelZh: Web界面端口
label:
en: Web Interface Port
zh: Web界面端口
zh-Hant: Web界面埠
required: true
rule: paramPort
type: number
- default: 1337
envKey: PANEL_APP_PORT_API
labelEn: API Port
labelZh: API接口端口
label:
en: API Port
zh: API接口端口
zh-Hant: API接口埠
required: true
rule: paramPort
type: number
- default: 7900
envKey: PANEL_APP_PORT_REMOTE
labelEn: Remote Desktop Port
labelZh: 远程桌面端口
label:
en: Remote Desktop Port
zh: 远程桌面端口
zh-Hant: 遠程桌面埠
required: true
rule: paramPort
type: number

View File

@@ -0,0 +1,22 @@
services:
gpt4free:
image: hlohaus789/g4f:latest
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
shm_size: 2gb
volumes:
- ./har_and_cookies:/app/har_and_cookies
- ./generated_media:/app/generated_media
ports:
- ${PANEL_APP_PORT_HTTP}:8080
- ${PANEL_APP_PORT_API}:8080
- ${PANEL_APP_PORT_REMOTE}:7900
environment:
- OLLAMA_HOST=host.docker.internal
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true

View File

@@ -0,0 +1,4 @@
#!/bin/bash
chown -R 1200:1201 har_and_cookies
chown -R 1200:1201 generated_media

46
apps/gpt4free/README.md Normal file
View File

@@ -0,0 +1,46 @@
# GPT4Free
GPT4Free是一个开源项目提供免费的GPT-4和其他大语言模型API接口。它支持多种模型如GPT-4、Claude、Gemini等让用户可以免费访问这些强大的AI模型。
![](https://cdn.jsdelivr.net/gh/xiaoY233/PicList@main/public/assets/gpt4free.png)
![](https://cdn.jsdelivr.net/gh/xiaoY233/PicList@main/public/assets/GPT4Free-Model.png)
![](https://img.shields.io/badge/Copyright-arch3rPro-ff9800?style=flat&logo=github&logoColor=white)
## 功能特点
- 支持多种大语言模型包括GPT-4、Claude、Gemini等
- 提供类似OpenAI的API接口
- 支持文本生成和图像生成
- 内置Web界面方便用户直接使用
- 支持本地推理和远程API调用
## 版本区别
- latest最新稳定版
- version当前最新版本号
- version-slim当前最新精简版不包含远程桌面进行模型配置
## 使用方法
安装完成后可以通过以下方式访问GPT4Free
1. Web界面访问 `http://您的IP:8080/chat/` 使用内置的聊天界面
2. API接口使用 `http://您的IP:1337/v1` 作为API基础URL
## 环境变量
- `OLLAMA_HOST`: Ollama服务器地址默认为host.docker.internal
## 端口说明
- 8080: Web界面也可用于API接口
- 1337: API接口
- 7900: 远程桌面(用于提供者登录)
## 更多信息
- 官方网站:[g4f.dev](https://g4f.dev/)
- GitHub仓库[github.com/xtekky/gpt4free](https://github.com/xtekky/gpt4free)
- 文档:[g4f.dev/docs](https://github.com/gpt4free/g4f.dev/blob/main/docs)

View File

@@ -0,0 +1,41 @@
# GPT4Free
GPT4Free is an open-source project that provides free access to GPT-4 and other large language models. It supports various models such as GPT-4, Claude, Gemini, and more, allowing users to access these powerful AI models for free.
![](https://cdn.jsdelivr.net/gh/xiaoY233/PicList@main/public/assets/gpt4free.png)
![](https://cdn.jsdelivr.net/gh/xiaoY233/PicList@main/public/assets/GPT4Free-Model.png)
![](https://img.shields.io/badge/Copyright-arch3rPro-ff9800?style=flat&logo=github&logoColor=white)
## Features
- Support for multiple large language models including GPT-4, Claude, Gemini, and more
- OpenAI-compatible API interface
- Text and image generation capabilities
- Built-in web interface for easy use
- Support for both local inference and remote API calls
## Usage
After installation, you can access GPT4Free through:
1. Web Interface: Visit `http://your-ip:8080/chat/` to use the built-in chat interface
2. API Interface: Use `http://your-ip:1337/v1` as your API base URL
## Environment Variables
- `OLLAMA_HOST`: Ollama server address, defaults to host.docker.internal
## Port Information
- 8080: Web interface and API
- 1337: Alternative API port
- 7900: Remote desktop (for provider login)
## More Information
- Official Website: [g4f.dev](https://g4f.dev/)
- GitHub Repository: [github.com/xtekky/gpt4free](https://github.com/xtekky/gpt4free)
- Documentation: [g4f.dev/docs](https://github.com/gpt4free/g4f.dev/blob/main/docs)

27
apps/gpt4free/data.yml Normal file
View File

@@ -0,0 +1,27 @@
name: GPT4Free
tags:
- AI / 大模型
title: 免费的GPT-4和其他大语言模型API接口
description: GPT4Free是一个开源项目提供免费的GPT-4和其他大语言模型API接口支持多种模型如GPT-4、Claude、Gemini等。
additionalProperties:
key: gpt4free
name: GPT4Free
tags:
- AI
shortDescZh: 免费的GPT-4和其他大语言模型API接口
shortDescEn: Free API for GPT-4 and other large language models
type: website
crossVersionUpdate: true
limit: 0
recommend: 0
website: https://g4f.dev/
github: https://github.com/xtekky/gpt4free
document: https://github.com/gpt4free/g4f.dev/blob/main/docs
description:
en: Free API for GPT-4 and other large language models
zh: 免费的GPT-4和其他大语言模型API接口
zh-Hant: 免費的GPT-4和其他大語言模型API接口
memoryRequired: 2048
architectures:
- amd64
- arm64

View File

@@ -0,0 +1,35 @@
additionalProperties:
formFields:
- default: 8080
envKey: PANEL_APP_PORT_HTTP
labelEn: Web Interface Port
labelZh: Web界面端口
label:
en: Web Interface Port
zh: Web界面端口
zh-Hant: Web界面埠
required: true
rule: paramPort
type: number
- default: 1337
envKey: PANEL_APP_PORT_API
labelEn: API Port
labelZh: API接口端口
label:
en: API Port
zh: API接口端口
zh-Hant: API接口埠
required: true
rule: paramPort
type: number
- default: 7900
envKey: PANEL_APP_PORT_REMOTE
labelEn: Remote Desktop Port
labelZh: 远程桌面端口
label:
en: Remote Desktop Port
zh: 远程桌面端口
zh-Hant: 遠程桌面埠
required: true
rule: paramPort
type: number

View File

@@ -0,0 +1,22 @@
services:
gpt4free:
image: hlohaus789/g4f:latest
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
shm_size: 2gb
volumes:
- ./har_and_cookies:/app/har_and_cookies
- ./generated_media:/app/generated_media
ports:
- ${PANEL_APP_PORT_HTTP}:8080
- ${PANEL_APP_PORT_API}:8080
- ${PANEL_APP_PORT_REMOTE}:7900
environment:
- OLLAMA_HOST=host.docker.internal
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true

View File

@@ -0,0 +1,4 @@
#!/bin/bash
chown -R 1200:1201 har_and_cookies
chown -R 1200:1201 generated_media

BIN
apps/gpt4free/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB