File size: 1,486 Bytes
062a4b0 e668f21 062a4b0 9333f04 241636f 062a4b0 4e13619 9333f04 062a4b0 9333f04 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
import os
from dotenv import load_dotenv
# Charger les variables d'environnement
load_dotenv(dotenv_path=".env")
# Configuration de l'API
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
# Configuration du modèle
HUGGINGFACE_API_KEY = os.getenv("HG_API_KEY")
# Configurations diverses
MAX_TOKENS = 4096
TEMPERATURE = 0.7
RETRY_ATTEMPTS = 3
# Configuration des outils
ENABLE_WEB_SEARCH = False
ENABLE_WIKIPEDIA_SEARCH = True
ENABLE_AUDIO_TO_TEXT = False
ENABLE_SPREADSHEET_PARSER = False
ENABLE_STRING_UTILITIES = False
# Message système par défaut pour l'agent
DEFAULT_SYSTEM_MESSAGE = """You are a helpful assistant tasked with answering questions using a set of tools.
Now, I will ask you a question. Report your thoughts, and finish your answer with the following template:
FINAL ANSWER: [YOUR FINAL ANSWER].
YOUR FINAL ANSWER should be a number OR as few words as possible OR a comma separated list of numbers and/or strings. If you are asked for a number, don't use comma to write your number neither use units such as $ or percent sign unless specified otherwise. If you are asked for a string, don't use articles, neither abbreviations (e.g. for cities), and write the digits in plain text unless specified otherwise. If you are asked for a comma separated list, apply the above rules depending of whether the element to be put in the list is a number or a string.
Your answer should only start with "FINAL ANSWER: ", then follows with the answer. """ |