Skip to content

Commit 3f740b6

Browse files
committed
Unable to Hash Groq Chat Completion
1 parent 6cbd4f8 commit 3f740b6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

groqeval/metrics/base_metric.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import logging
22
import statistics
33
from abc import ABC,abstractmethod
4-
from cachetools import cached, TTLCache
54
from groq import Groq
65

76
class BaseMetric(ABC):
@@ -15,7 +14,6 @@ def __init__(self, groq_client: Groq, verbose: bool = None):
1514
if verbose:
1615
self.logger.setLevel(logging.INFO)
1716

18-
@cached(cache=TTLCache(maxsize=100, ttl=300))
1917
def groq_chat_completion(self, messages, model, temperature=0.5, response_format=None):
2018
"""
2119
Groq's chat completion API

0 commit comments

Comments
 (0)