mirror of
https://github.com/ChinaRan0/DeepSeekSelfTool.git
synced 2025-05-05 18:27:37 +00:00
Update deepseek api response timeout
This commit is contained in:
parent
1e37ab3fd4
commit
f419a54d90
@ -35,7 +35,7 @@ class APIAdapter:
|
||||
"messages": [{"role": "user", "content": prompt}],
|
||||
"temperature": temperature
|
||||
}
|
||||
response = requests.post(self.api_endpoint, headers=headers, json=payload)
|
||||
response = requests.post(self.api_endpoint, headers=headers, json=payload, timeout=60)
|
||||
else: # ollama
|
||||
payload = {
|
||||
"model": self.model,
|
||||
@ -1127,4 +1127,4 @@ if __name__ == '__main__':
|
||||
|
||||
window = CyberSecurityApp()
|
||||
window.show()
|
||||
sys.exit(app.exec_())
|
||||
sys.exit(app.exec_())
|
||||
|
Loading…
x
Reference in New Issue
Block a user