added some guards to llm chat and an llmcfg.json example
This commit is contained in:
+1
-1
@@ -105,7 +105,7 @@ class LLMChat:
|
||||
sleeptime = float(re.search(r'\d+\.\d+', restext).group(0))
|
||||
except:
|
||||
pass
|
||||
time.sleep(sleeptime)
|
||||
time.sleep(sleeptime + 0.1)
|
||||
return self.guarded_post(url, headers, payload)
|
||||
else:
|
||||
data = response.json()
|
||||
|
||||
Reference in New Issue
Block a user