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:
Paillat
2023-07-14 17:53:59 +02:00
parent deb27ea5e4
commit a0e387b2fb
2 changed files with 7 additions and 4 deletions

View File

@@ -2,7 +2,7 @@ import requests
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'
api_url = f'https://autopush-generativelanguage.sandbox.googleapis.com/v1beta2/models/{model_name}:generateMessage?key={api_key}'

View File

@@ -3,8 +3,9 @@
version: '3'
services:
botator:
image: botator/botator:latest
container_name: botator
build:
context: .
dockerfile: Dockerfile
restart: always
volumes:
- ./database:/Botator/database
@@ -12,3 +13,5 @@ services:
- PERSPECTIVE_API_KEY=your_api_key
- WEBHOOK_URL=https://yourdomain.com/botator
- DISCORD_TOKEN=your_token
env_file:
- .env