Skip to content

GeekChat - ChatGPT With Support For Text、Voice、Image And Translate

geekr-dev/geekchat

Repository files navigation

GeekChat - A ChatGPT clone

This is a simple clone of ChatGPT made with Laravel using the OpenAI API as well as Vue3 + Tailwind CSS.

这是使用 Laravel 10 + Inertia + Vue3 + Tailwind + OpenAI API 实现的 ChatGPT 网页版,在文字基础上增加了对语音的支持(基于 Whisper):

image

本地启动:

1、方式1 —— PHP HTTP 服务器(需要本地安装 PHP)

php artisan serve npm run dev

2、方式2 —— Docker(无需额外依赖)

git clone https://github.com/geekr-dev/geekchat.git cd geekchat cp .env.example .env # 设置 OPENAI_API_KEY docker-compose up -d docker exec -it geekchat_laravel.test_1 bash cd /var/www/html composer install # 未使用 Octane 不需要执行以下操作 ./vendor/bin/rr get-binary exit ./vendor/bin/sail artisan sail:publish # 调整 context/supervisord.conf 中 http 服务器启动配置 chmod +x ./rr ./vendor/bin/sail build --no-cache ./vendor/bin/sail up -d

启动成功后,就可以通过 http://localhost 在浏览器访问 GeekChat 了。

开发流程详细文档在这里:https://geekr.dev/posts/chatgpt-website-by-laravel-10