Skip to content

Instantly share code, notes, and snippets.

View nerdlab53's full-sized avatar
💭
zzzzz….

retr0sushi nerdlab53

💭
zzzzz….
View GitHub Profile
@nerdlab53
nerdlab53 / recommendation.py
Created May 2, 2025 12:01
groq inference sample code
import os
import json
import re
from django.conf import settings
from scholarships.models import Scholarship
from django.db.models import Q
import groq
# Configure Groq client with the API key
# First try to get it from environment variable, then use the hardcoded value