From a0e387b2fb866dc73d33878436e7a0894da59b50 Mon Sep 17 00:00:00 2001 From: Paillat Date: Fri, 14 Jul 2023 17:53:59 +0200 Subject: [PATCH] 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 --- code/google-palm-process.py | 2 +- docker-compose.yml | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/code/google-palm-process.py b/code/google-palm-process.py index 1dacf03..3096a70 100644 --- a/code/google-palm-process.py +++ b/code/google-palm-process.py @@ -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}' diff --git a/docker-compose.yml b/docker-compose.yml index f65a2a9..ef356f7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,12 +3,15 @@ version: '3' services: botator: - image: botator/botator:latest - container_name: botator + build: + context: . + dockerfile: Dockerfile restart: always volumes: - ./database:/Botator/database environment: - PERSPECTIVE_API_KEY=your_api_key - WEBHOOK_URL=https://yourdomain.com/botator - - DISCORD_TOKEN=your_token \ No newline at end of file + - DISCORD_TOKEN=your_token + env_file: + - .env \ No newline at end of file