|
import os |
|
from dotenv import load_dotenv |
|
|
|
|
|
load_dotenv(dotenv_path=".env") |
|
|
|
|
|
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space" |
|
|
|
|
|
HUGGINGFACE_API_KEY = os.getenv("HG_API_KEY") |
|
|
|
|
|
MAX_TOKENS = 4096 |
|
TEMPERATURE = 0.7 |
|
RETRY_ATTEMPTS = 3 |
|
|
|
|
|
ENABLE_WEB_SEARCH = False |
|
ENABLE_WIKIPEDIA_SEARCH = True |
|
ENABLE_AUDIO_TO_TEXT = False |
|
ENABLE_SPREADSHEET_PARSER = False |
|
ENABLE_STRING_UTILITIES = False |
|
|
|
|
|
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. """ |