fix: 将调试代码注释

This commit is contained in:
2026-04-24 15:30:39 +08:00
parent 17c27372b0
commit 0f2ae54984
2 changed files with 12 additions and 10 deletions

View File

@@ -31,8 +31,10 @@ class DeepSeek:
def chat(self, question_json: dict) -> str: def chat(self, question_json: dict) -> str:
response = self.client.chat.completions.create( response = self.client.chat.completions.create(
model="deepseek-chat", # model="deepseek-chat",
# model="deepseek-reasoner", # model="deepseek-reasoner",
# model="deepseek-v4-pro",
model="deepseek-v4-flash",
messages=[ messages=[
{"role": "system", "content": self.system_prompt}, {"role": "system", "content": self.system_prompt},
{"role": "user", "content": json.dumps(question_json)}, {"role": "user", "content": json.dumps(question_json)},

18
main.py
View File

@@ -113,13 +113,13 @@ class CKWK:
adapter = HTTPAdapter(max_retries=retry_strategy) adapter = HTTPAdapter(max_retries=retry_strategy)
self.session.mount("http://", adapter) self.session.mount("http://", adapter)
self.session.mount("https://", adapter) self.session.mount("https://", adapter)
self.session.verify = False # self.session.verify = False
self.session.proxies.update( # self.session.proxies.update(
{ # {
"http": "http://127.0.0.1:9000", # "http": "http://127.0.0.1:9000",
"https": "http://127.0.0.1:9000", # "https": "http://127.0.0.1:9000",
} # }
) # )
self.username = un self.username = un
self.host = host self.host = host
self.password = pw self.password = pw
@@ -841,7 +841,7 @@ if __name__ == "__main__":
# CKWK(f"{u}", f"{p}", host_server[c][0]).run() # CKWK(f"{u}", f"{p}", host_server[c][0]).run()
# 刷作业,不需要用的时候可以直接注释 # 刷作业,不需要用的时候可以直接注释
CKWK(f"{u}", f"{p}", host_server[c][0]).work() # CKWK(f"{u}", f"{p}", host_server[c][0]).work()
# 考试,不需要用的时候可以直接注释 # 考试,不需要用的时候可以直接注释
# CKWK(f"{u}", f"{p}", host_server[c][0]).exam() CKWK(f"{u}", f"{p}", host_server[c][0]).exam()