Skip to content

Commit

Permalink
conflict error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
acer-king committed Oct 14, 2024
1 parent 407eafe commit a7974df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validators/services/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def set_cache_in_batch(self, syns: List[StreamPrompting], ttl=3600 * 24):
datas = []
expires_at = time.time() + ttl
for syn in syns:
p_key = self.generate_hash(str(expires_at) + str(syn.messages) + str(syn.provider) + str(syn.model))
p_key = self.generate_hash(str(expires_at) + str(syn.json()))
datas.append((p_key, syn.json(), syn.completion, syn.provider, syn.model, expires_at))

# Insert multiple records
Expand Down

0 comments on commit a7974df

Please sign in to comment.