mirror of
https://github.com/ChinaRan0/DeepSeekSelfTool.git
synced 2025-11-15 15:26:31 +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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user