Skip to content

Commit

Permalink
Unable to Hash Groq Chat Completion
Browse files Browse the repository at this point in the history
  • Loading branch information
djokester committed Jul 10, 2024
1 parent 6cbd4f8 commit 3f740b6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions groqeval/metrics/base_metric.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import logging
import statistics
from abc import ABC,abstractmethod
from cachetools import cached, TTLCache
from groq import Groq

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

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

0 comments on commit 3f740b6

Please sign in to comment.