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 a7974df commit 91fef76
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 @@ -54,7 +54,7 @@ def set_cache_in_batch(self, syns: List[StreamPrompting], ttl=3600 * 24):
# Insert multiple records
cursor = self.conn.cursor()
cursor.executemany('''
INSERT INTO cache (p_key, question, answer, provider, model, timestamp)
INSERT OR IGNORE INTO cache (p_key, question, answer, provider, model, timestamp)
VALUES (?, ?, ?, ?, ?, ?)
''', datas)

Expand Down

0 comments on commit 91fef76

Please sign in to comment.