Sborole commited on
Commit
d684283
·
verified ·
1 Parent(s): 3f069c1

Update src/settings.py

Browse files
Files changed (1) hide show
  1. src/settings.py +4 -4
src/settings.py CHANGED
@@ -1,7 +1,7 @@
1
  import os
2
- from pydantic import BaseModel
3
 
4
  class Settings(BaseModel):
5
- llm_mode_id = "HuggingFaceH4/zephyr-7b-beta"
6
- llm_api_key = os.getenv("HF_API_TOKEN", "")
7
- system_prompt = "You are a general AI assistant. 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."
 
1
  import os
2
+ from pydantic import BaseModel, Field
3
 
4
  class Settings(BaseModel):
5
+ llm_mode_id: str = Field(default="HuggingFaceH4/zephyr-7b-beta")
6
+ llm_api_key: str = Field(default=os.getenv("HF_API_TOKEN", ""))
7
+ system_prompt: str = Field(default="""You are a general AI assistant. 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.""")