File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 66
77class LLM :
88 def __init__ (self , prompt_list : list [Prompt ]):
9- self .model = "Deepseek-V3.2"
10- self ._api_key = (
11- os .getenv ("DEEPSEEK_API_KEY" ) if load_dotenv (dotenv_path = ".env" ) else None
12- )
139 self .prompt_list = prompt_list
1410 self .history : list [dict [str , str | dict ]] = []
1511
1612 def generate (self ) -> list [dict [str , str | dict ]]:
1713 client = OpenAI (
18- api_key = self ._api_key ,
19- base_url = "https://api.deepseek.com" ,
14+ api_key = os .getenv ("DEEPSEEK_API_KEY" )
15+ if load_dotenv (dotenv_path = ".env" )
16+ else None ,
17+ base_url = os .getenv ("DEEPSEEK_API_BASE_URL" )
18+ if load_dotenv (dotenv_path = ".env" )
19+ else None ,
2020 )
2121 for prompt in self .prompt_list :
2222 response = client .chat .completions .create (
You can’t perform that action at this time.
0 commit comments