mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 01:06:19 +00:00
fix(google-palm-process.py): replace actual API key with placeholder 'S'
fix(docker-compose.yml): add build configuration for botator service feat(docker-compose.yml): add env_file configuration for botator service
This commit is contained in:
@@ -2,7 +2,7 @@ import requests
|
|||||||
|
|
||||||
proxy_url = 'http://64.225.4.12:9991' # Replace with your actual proxy URL and port
|
proxy_url = 'http://64.225.4.12:9991' # Replace with your actual proxy URL and port
|
||||||
|
|
||||||
api_key = 'AIzaSyCqIBAf0STUTVq7pizT3XtMcQQ_zgy9UGU'
|
api_key = 'S'
|
||||||
model_name = 'chat-bison-001'
|
model_name = 'chat-bison-001'
|
||||||
api_url = f'https://autopush-generativelanguage.sandbox.googleapis.com/v1beta2/models/{model_name}:generateMessage?key={api_key}'
|
api_url = f'https://autopush-generativelanguage.sandbox.googleapis.com/v1beta2/models/{model_name}:generateMessage?key={api_key}'
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,9 @@
|
|||||||
version: '3'
|
version: '3'
|
||||||
services:
|
services:
|
||||||
botator:
|
botator:
|
||||||
image: botator/botator:latest
|
build:
|
||||||
container_name: botator
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- ./database:/Botator/database
|
- ./database:/Botator/database
|
||||||
@@ -12,3 +13,5 @@ services:
|
|||||||
- PERSPECTIVE_API_KEY=your_api_key
|
- PERSPECTIVE_API_KEY=your_api_key
|
||||||
- WEBHOOK_URL=https://yourdomain.com/botator
|
- WEBHOOK_URL=https://yourdomain.com/botator
|
||||||
- DISCORD_TOKEN=your_token
|
- DISCORD_TOKEN=your_token
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
Reference in New Issue
Block a user