Skip to content

armgit / dspy

Public Imported from GitHub
0

DSPy: The framework for programming—not prompting—language models

Python

unused imports removed and ruff check fixed

Somesh Fengaded873bd77085f
diff --git a/dsp/modules/groq_client.py b/dsp/modules/groq_client.py
index 14b1b7096..5b6b13734 100644
--- a/dsp/modules/groq_client.py
+++ b/dsp/modules/groq_client.py
@@ -1,18 +1,13 @@
import logging
-import os
-import json
-from typing import Any, Literal, Optional, Required
+from typing import Any
+
import backoff
-from groq import Groq, AsyncGroq
import groq
-import functools
-
+from groq import Groq
import dsp
-from dsp.modules.cache_utils import CacheMemory, NotebookCacheMemory, cache_turn_on
from dsp.modules.lm import LM
-
# Configure logging
logging.basicConfig(
level=logging.INFO,
@@ -165,5 +160,4 @@ class GroqLM(LM):
scored_completions = sorted(scored_completions, reverse=True)
completions = [c for _, c in scored_completions]
- return completions
-
+ return completions
\ No newline at end of file