Merge cluster to master #3

Merged
cyberes merged 163 commits from cluster into master 2023-10-27 19:19:22 -06:00
3 changed files with 1 additions and 4 deletions
Showing only changes of commit 95d781725e - Show all commits

View File

@ -50,7 +50,7 @@ class RedisPriorityQueue:
b = self.redis.hget('queued_ip_count', item[1])
self.decrement_ip_count(client_ip, 'queued_ip_count')
a = self.redis.hget('queued_ip_count', item[1])
print(item[1], a, b)
return item

View File

@ -52,7 +52,6 @@ def moderation_worker():
_, categories = check_moderation_endpoint(msg)
redis_moderation.rpush('queue:flagged_categories', json.dumps((tag, categories)))
except:
print(result)
traceback.print_exc()
continue

View File

@ -97,8 +97,6 @@ create_db()
@app.route('/api/openai')
@flask_cache.cached(timeout=10)
def home():
print(len(priority_queue))
base_client_api = redis.get('base_client_api', dtype=str)
stats = generate_stats()
model_choices, default_model = get_model_choices()