The main update of GeekAI-PLUS-v4.2.1 is the launch of KeLing's text-to-video and image-to-video features.
Update Content
- Feature Optimization: Optimized system configuration, removed deprecated configuration items
- Feature Optimization: GPT-O1 model now supports streaming output
- Feature Optimization: Optimized code reference styles, supporting theme switching
- Feature Optimization: Login and registration pages now allow users to replace their own Logo and Title
- Bug Fix: Fixed the issue where OpenAI real-time voice calls did not detect insufficient user computing power
- New Feature: Added computing power log query functionality in the admin backend, supporting queries by user, model, date, and type
- Feature Optimization: Supports binding Dalle and chat-type API KEYS for models
- New Feature: Supports setting ICP filing number in the admin backend
1. Database Update
This version upgrade includes adjustments to the database structure, mainly changing the length of some fields. You need to connect to the database and execute the following SQL statements:
ALTER TABLE `chatgpt_video_jobs` CHANGE `prompt` `prompt` TEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '提示词';
ALTER TABLE `chatgpt_video_jobs` CHANGE `prompt_ext` `prompt_ext` TEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '优化后提示词';
ALTER TABLE `chatgpt_mj_jobs` CHANGE `prompt` `prompt` TEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '会话提示词';
ALTER TABLE `chatgpt_sd_jobs` CHANGE `prompt` `prompt` TEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '会话提示词';
ALTER TABLE `chatgpt_dall_jobs` CHANGE `prompt` `prompt` TEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '提示词';
ALTER TABLE `chatgpt_files` CHANGE `name` `name` VARCHAR(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '文件名';
ALTER TABLE `chatgpt_chat_models` CHANGE `name` `name` VARCHAR(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '模型名称';
ALTER TABLE `chatgpt_api_keys` CHANGE `value` `value` VARCHAR(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'API KEY value';
2. Update Image Version
Edit docker-compose.yaml and change the image versions of geekai-api and geekai-web to v4.2.1.
# Backend API Application
geekai-api:
image: registry.cn-shenzhen.aliyuncs.com/geekmaster/geekai-plus-api:v4.2.1-amd64
container_name: geekai-api
restart: always
ports:
- '5678:5678'
- '6012:6012'
volumes:
- /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime
- ./conf/config.toml:/var/www/app/config.toml
- ./logs:/var/www/app/logs
- ./static:/var/www/app/static
- ./res/sd:/var/www/app/res/sd
- ./certs:/var/www/app/certs
- ./data:/var/www/app/data
environment:
- APP_DEBUG=false
- LOG_LEVEL=info
- CONFIG_FILE=config.toml
# Frontend Application
geekai-web:
image: registry.cn-shenzhen.aliyuncs.com/geekmaster/geekai-plus-web:v4.2.1-amd64
container_name: geekai-web
restart: always
ports:
- '9004:8080'
volumes:
- ./logs/nginx:/var/log/nginx
- ./conf/nginx/conf.d:/etc/nginx/conf.d
- ./conf/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./ssl:/etc/nginx/ssl
3. Restart Containers
docker-compose down
docker-compose up -d
4. System Management Configuration
Next, we need to log in to the GeekAI admin backend to make some configurations.
- Set the maximum upload file size for the system. This is a new configuration to limit the size of files uploaded by users. The setting path is: System Settings -> Basic Configuration
- Configure the computing power for KeLing videos. The computing power configuration path for KeLing videos is: System Settings -> Computing Power Configuration. Since different models, qualities, and durations of KeLing videos consume different amounts of computing power, this time we allow setting different prices for different parameter combinations.
For specific price settings, you can refer to the page https://api.aiggr.com/models. You can set it as 1$ => 1000 computing power.
- Add a new menu for KeLing videos. The path is: System Settings -> Menu Configuration. Just add a new menu.
- Add API KEY configuration for KeLing videos. The path is: API-KEY Management -> Add API-KEY. Select the category "KeLing Videos".
After configuration, you can access the KeLing videos page on the frontend to generate videos.