Files
manual_slop/reproduce_delay.py

19 lines
616 B
Python

import time
from ai_client import get_gemini_cache_stats
def reproduce_delay():
print("Starting reproduction of Gemini cache list delay...")
start_time = time.time()
try:
stats = get_gemini_cache_stats()
elapsed = (time.time() - start_time) * 1000.0
print(f"get_gemini_cache_stats() took {elapsed:.2f}ms")
print(f"Stats: {stats}")
except Exception as e:
print(f"Error calling get_gemini_cache_stats: {e}")
print("Note: This might fail if no valid credentials.toml exists or API key is invalid.")
if __name__ == "__main__":
reproduce_delay()