Update parse.py
Browse files
parse.py
CHANGED
|
@@ -1,7 +1,12 @@
|
|
| 1 |
from groq import Groq # type: ignore
|
| 2 |
|
| 3 |
# Initialize Groq client with the API key directly
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
# Define the template for parsing
|
| 7 |
template = (
|
|
|
|
| 1 |
from groq import Groq # type: ignore
|
| 2 |
|
| 3 |
# Initialize Groq client with the API key directly
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
api_key = os.getenv("GROQ_API_KEY")
|
| 7 |
+
|
| 8 |
+
# Initialize the Groq client with the retrieved API key
|
| 9 |
+
client = Groq(api_key=api_key
|
| 10 |
|
| 11 |
# Define the template for parsing
|
| 12 |
template = (
|